From: Brett Bryant Date: Fri, 18 Jul 2008 15:34:42 +0000 (+0000) Subject: Fix a bug in blind transfers where the BLINDTRANSFER variable isn't always set to... X-Git-Tag: 1.4.22-rc1~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d4058b41a6587dc76798d8e24a704dab3164a00;p=thirdparty%2Fasterisk.git Fix a bug in blind transfers where the BLINDTRANSFER variable isn't always set to the other end of the blind transfer. (closes issue #12586) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@131915 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_features.c b/res/res_features.c index 5c68c78b51..d1a481eeec 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -735,8 +735,8 @@ static int builtin_blindtransfer(struct ast_channel *chan, struct ast_channel *p } /*! \todo XXX Maybe we should have another message here instead of invalid extension XXX */ } else if (ast_exists_extension(transferee, transferer_real_context, xferto, 1, transferer->cid.cid_num)) { - pbx_builtin_setvar_helper(peer, "BLINDTRANSFER", transferee->name); - pbx_builtin_setvar_helper(chan, "BLINDTRANSFER", peer->name); + pbx_builtin_setvar_helper(transferer, "BLINDTRANSFER", transferee->name); + pbx_builtin_setvar_helper(transferee, "BLINDTRANSFER", transferer->name); res=finishup(transferee); if (!transferer->cdr) { transferer->cdr=ast_cdr_alloc();