From: Michael Jerris Date: Sun, 15 Jun 2008 07:52:31 +0000 (+0000) Subject: add variable expansion to on execute vars.(FSCORE-114) X-Git-Tag: v1.0.1~362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fc37d43c31d490ad83500fc63d2fd4aeb0caa5d;p=thirdparty%2Ffreeswitch.git add variable expansion to on execute vars.(FSCORE-114) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8801 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_ivr_bridge.c b/src/switch_ivr_bridge.c index bf25504d2d..8eff873fa2 100644 --- a/src/switch_ivr_bridge.c +++ b/src/switch_ivr_bridge.c @@ -682,7 +682,6 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses if (switch_channel_test_flag(peer_channel, CF_ANSWERED) || switch_channel_test_flag(peer_channel, CF_EARLY_MEDIA) || switch_channel_test_flag(peer_channel, CF_RING_READY)) { switch_core_session_message_t msg = { 0 }; - const switch_application_interface_t *application_interface; const char *app, *data; switch_channel_set_state(peer_channel, CS_CONSUME_MEDIA); @@ -748,16 +747,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_multi_threaded_bridge(switch_core_ses if ((app = switch_channel_get_variable(caller_channel, "bridge_pre_execute_aleg_app"))) { data = switch_channel_get_variable(caller_channel, "bridge_pre_execute_aleg_data"); - if ((application_interface = switch_loadable_module_get_application_interface(app))) { - switch_core_session_exec(session, application_interface, data); - } + switch_core_session_execute_application(session, app, data); } if ((app = switch_channel_get_variable(caller_channel, "bridge_pre_execute_bleg_app"))) { data = switch_channel_get_variable(caller_channel, "bridge_pre_execute_bleg_data"); - if ((application_interface = switch_loadable_module_get_application_interface(app))) { - switch_core_session_exec(peer_session, application_interface, data); - } + switch_core_session_execute_application(peer_session, app, data); } switch_channel_set_private(peer_channel, "_bridge_", b_leg);