add exec_after_bridge_app and exec_after_bridge_arg and fix the hangup command in event parse

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5545 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2007-07-26 00:49:02 +00:00
1 parent d571f9020e
commit 189802c555
4 files changed
+37 -4

No files matched your search

+8
View File
@@ -120,6 +120,9 @@ static void switch_core_standard_on_execute(switch_core_session_t *session)
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Standard EXECUTE\n");
top:
switch_channel_clear_flag(session->channel, CF_RESET);
if ((extension = switch_channel_get_caller_extension(session->channel)) == 0) {
switch_channel_hangup(session->channel, SWITCH_CAUSE_NORMAL_CLEARING);
return;
@@ -169,6 +172,11 @@ static void switch_core_standard_on_execute(switch_core_session_t *session)
if (expanded != extension->current_application->application_data) {
switch_safe_free(expanded);
}
if (switch_channel_test_flag(session->channel, CF_RESET)) {
goto top;
}
extension->current_application = extension->current_application->next;
}