Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/switch_ivr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2361,9 +2361,13 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_session_transfer(switch_core_session_
switch_channel_add_variable_var_check(channel, SWITCH_TRANSFER_HISTORY_VARIABLE, new_profile->transfer_source, SWITCH_FALSE, SWITCH_STACK_PUSH);
switch_channel_set_variable_var_check(channel, SWITCH_TRANSFER_SOURCE_VARIABLE, new_profile->transfer_source, SWITCH_FALSE);

/* Set flag to indicate transfer is in progress and store transfer details */
/* Set flag to indicate transfer is in progress and store transfer details.
* Use SWITCH_FALSE for var_check since these values are stored as-is for
* transfer event tracking. The extension may legitimately contain unexpanded
* variable references (e.g. from ESL uuid_transfer commands) which would
* otherwise trigger CRIT logs at switch_channel.c:1580 . */
switch_channel_set_variable(channel, "transfer_in_progress", "true");
switch_channel_set_variable(channel, "transfer_extension", extension);
switch_channel_set_variable_var_check(channel, "transfer_extension", extension, SWITCH_FALSE);
switch_channel_set_variable(channel, "transfer_dialplan", use_dialplan);
switch_channel_set_variable(channel, "transfer_context", use_context);

Expand Down
Loading