fix regression in commit 19f441c6f4

This commit is contained in:
Anthony Minessale 2012-04-18 08:24:15 -05:00
parent 675bf4f546
commit 2fc4960f97
1 changed files with 7 additions and 0 deletions

View File

@ -963,9 +963,16 @@ static switch_call_cause_t channel_outgoing_channel(switch_core_session_t *sessi
}
switch_channel_set_variable(channel, "loopback_app", app);
if (clone) {
switch_event_add_header(clone, SWITCH_STACK_BOTTOM, "loopback_app", app);
}
if (arg) {
switch_channel_set_variable(channel, "loopback_app_arg", arg);
if (clone) {
switch_event_add_header(clone, SWITCH_STACK_BOTTOM, "loopback_app_arg", arg);
}
}
switch_set_flag(tech_pvt, TFLAG_APP);