mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-31 15:44:21 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7779 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
552d9c2d7e
commit
7088c57a25
5 files changed
+46
-43
No files matched your search
@@ -137,8 +137,7 @@ static void switch_core_standard_on_execute(switch_core_session_t *session)
|
||||
|
||||
while (switch_channel_get_state(session->channel) == CS_EXECUTE && extension->current_application) {
|
||||
char *expanded = NULL;
|
||||
int nomedia = 0;
|
||||
|
||||
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "%s Execute %s(%s)\n", switch_channel_get_name(session->channel),
|
||||
extension->current_application->application_name, switch_str_nil(extension->current_application->application_data));
|
||||
if ((application_interface = switch_loadable_module_get_application_interface(extension->current_application->application_name)) == 0) {
|
||||
@@ -155,7 +154,6 @@ static void switch_core_standard_on_execute(switch_core_session_t *session)
|
||||
|
||||
if (switch_channel_test_flag(session->channel, CF_PROXY_MODE) && !switch_test_flag(application_interface, SAF_SUPPORT_NOMEDIA)) {
|
||||
switch_ivr_media(session->uuid_str, SMF_NONE);
|
||||
nomedia++;
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Application %s Requires media on channel %s!\n",
|
||||
extension->current_application->application_name, switch_channel_get_name(session->channel));
|
||||
} else if (!switch_test_flag(application_interface, SAF_SUPPORT_NOMEDIA) && !switch_channel_media_ready(session->channel)) {
|
||||
@@ -189,12 +187,6 @@ static void switch_core_standard_on_execute(switch_core_session_t *session)
|
||||
goto top;
|
||||
}
|
||||
|
||||
if (nomedia) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Application %s Releasing media\n",
|
||||
extension->current_application->application_name);
|
||||
switch_ivr_nomedia(session->uuid_str, SMF_NONE);
|
||||
}
|
||||
|
||||
extension->current_application = extension->current_application->next;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user