]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4363 try this
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 28 Jun 2012 15:21:08 +0000 (10:21 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 28 Jun 2012 15:21:08 +0000 (10:21 -0500)
src/switch_ivr.c

index 8f50fe125733d5de96474b04e7c1278a32202a6c..cac064b544f57b84e74779aafa20383aeeef4cee 100644 (file)
@@ -1734,7 +1734,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_session_transfer(switch_core_session_
                                                                                                                   (long) switch_epoch_time_now(NULL), new_profile->uuid_str,
                                                                                                                   extension, use_context, use_dialplan);
                switch_channel_add_variable_var_check(channel, SWITCH_TRANSFER_HISTORY_VARIABLE, new_profile->transfer_source, SWITCH_FALSE, SWITCH_STACK_PUSH);
-               switch_channel_set_variable(channel, SWITCH_TRANSFER_SOURCE_VARIABLE, new_profile->transfer_source);
+               switch_channel_set_variable_var_check(channel, SWITCH_TRANSFER_SOURCE_VARIABLE, new_profile->transfer_source, SWITCH_FALSE);
                return SWITCH_STATUS_SUCCESS;
        }