add 'blindtransfer' variable to chan iax2 like chan_sip and res_features bug note...
authorMatt O'Gorman <mogorman@digium.com>
Thu, 16 Feb 2006 23:44:09 +0000 (23:44 +0000)
committerMatt O'Gorman <mogorman@digium.com>
Thu, 16 Feb 2006 23:44:09 +0000 (23:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10354 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 094a6ab..9a663b4 100644 (file)
@@ -6970,6 +6970,9 @@ retryowner:
                                break;
                        case IAX_COMMAND_TRANSFER:
                                if (iaxs[fr.callno]->owner && ast_bridged_channel(iaxs[fr.callno]->owner) && ies.called_number) {
+                                       /* Set BLINDTRANSFER channel variables */
+                                       pbx_builtin_setvar_helper(iaxs[fr.callno]->owner, "BLINDTRANSFER", ast_bridged_channel(iaxs[fr.callno]->owner)->name);
+                                       pbx_builtin_setvar_helper(ast_bridged_channel(iaxs[fr.callno]->owner), "BLINDTRANSFER", iaxs[fr.callno]->owner->name);
                                        if (!strcmp(ies.called_number, ast_parking_ext())) {
                                                if (iax_park(ast_bridged_channel(iaxs[fr.callno]->owner), iaxs[fr.callno]->owner)) {
                                                        ast_log(LOG_WARNING, "Failed to park call on '%s'\n", ast_bridged_channel(iaxs[fr.callno]->owner)->name);