]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add calls to execute_on_post_originate for a leg too
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 30 Oct 2012 14:05:41 +0000 (09:05 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 30 Oct 2012 14:05:41 +0000 (09:05 -0500)
src/switch_ivr_originate.c

index ed8534cfc7a66490eeb40fc048c59dab83e444b3..ffdb890de3321a64087c1f8405d6b5227528b000 100644 (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);
        }