]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add some vars
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 6 Nov 2008 03:36:15 +0000 (03:36 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 6 Nov 2008 03:36:15 +0000 (03:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10264 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_session.c

index 275a54b759a7daeed73516f25f42fb41b64a9088..efdc24ce61c9dd4c0b9e14a688504161b20ed4e5 100644 (file)
@@ -1241,6 +1241,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_exec(switch_core_session_t *
        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 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_exec(switch_core_session_t *
                        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);