add some more nifty stuff and fix a bug or 2

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3134 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2006-10-21 04:58:15 +00:00
1 parent 7e61bcf9bb
commit 1f29ce2749
4 files changed
+148 -4

No files matched your search

+10
View File
@@ -2536,6 +2536,16 @@ static void switch_core_standard_on_execute(switch_core_session_t *session)
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Application-Data", "%s", expanded);
switch_event_fire(&event);
}
if (switch_channel_get_variable(session->channel, "presence_id")) {
char *arg = switch_mprintf("%s(%s)", extension->current_application->application_name, expanded);
if (arg) {
switch_channel_presence(session->channel, "unknown", arg);
switch_safe_free(arg);
}
}
application_interface->application_function(session, expanded);
if (expanded != extension->current_application->application_data) {