[Freeswitch-svn] [commit] r10264 - freeswitch/trunk/src
Freeswitch SVN
anthm at freeswitch.org
Wed Nov 5 19:36:15 PST 2008
Author: anthm
Date: Wed Nov 5 22:36:15 2008
New Revision: 10264
Modified:
freeswitch/trunk/src/switch_core_session.c
Log:
add some vars
Modified: freeswitch/trunk/src/switch_core_session.c
==============================================================================
--- freeswitch/trunk/src/switch_core_session.c (original)
+++ freeswitch/trunk/src/switch_core_session.c Wed Nov 5 22:36:15 2008
@@ -1241,6 +1241,7 @@
switch_app_log_t *log, *lp;
switch_event_t *event;
const char *var;
+ switch_channel_t *channel = switch_core_session_get_channel(session);
if (!arg) {
arg = "";
@@ -1260,6 +1261,9 @@
session->app_log = log;
}
}
+
+ switch_channel_set_variable(channel, "current_application", application_interface->interface_name);
+ switch_channel_set_variable(channel, "current_application_data", arg);
if (switch_event_create(&event, SWITCH_EVENT_CHANNEL_EXECUTE) == SWITCH_STATUS_SUCCESS) {
switch_channel_event_set_data(session->channel, event);
More information about the Freeswitch-svn
mailing list