transfers: Fix bug setting both BLINDTRANSFER and ATTENDEDTRANSFER
authorJonathan Rose <jrose@digium.com>
Mon, 16 Dec 2013 18:31:12 +0000 (18:31 +0000)
committerJonathan Rose <jrose@digium.com>
Mon, 16 Dec 2013 18:31:12 +0000 (18:31 +0000)
The ast_bridge_set_transfer_variables function is supposed to wipe whichever
variable isn't being set. Instead it was setting both to the new value.  Oops.

(issue AFS-24)
........

Merged revisions 403957 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403958 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/bridge.c

index c64a879..e2c46ac 100644 (file)
@@ -3969,7 +3969,7 @@ void ast_bridge_set_transfer_variables(struct ast_channel *chan, const char *val
        }
 
        pbx_builtin_setvar_helper(chan, writevar, value);
-       pbx_builtin_setvar_helper(chan, erasevar, value);
+       pbx_builtin_setvar_helper(chan, erasevar, NULL);
 }
 
 /*!