add calls to execute_on_post_originate for a leg too

This commit is contained in:
Anthony Minessale 2012-10-30 09:05:41 -05:00
parent 29628007f4
commit c9d6b801ab
1 changed files with 4 additions and 0 deletions

View File

@ -3727,6 +3727,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
switch_safe_free(fail_on_single_reject_var);
if (caller_channel) {
switch_channel_execute_on(caller_channel, SWITCH_CHANNEL_EXECUTE_ON_POST_ORIGINATE_VARIABLE);
switch_channel_api_on(caller_channel, SWITCH_CHANNEL_API_ON_POST_ORIGINATE_VARIABLE);
switch_channel_clear_flag(caller_channel, CF_ORIGINATOR);
switch_channel_clear_flag(caller_channel, CF_XFER_ZOMBIE);
}