]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add chan vars to param event during hangup hook
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 18 Nov 2008 15:24:52 +0000 (15:24 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 18 Nov 2008 15:24:52 +0000 (15:24 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10439 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_state_machine.c

index 35e7219d2f288247a8ede844d7102106cf458f0e..16442f402fac0f02c5d23a2e370a2a842ed629e3 100644 (file)
@@ -412,6 +412,7 @@ SWITCH_DECLARE(void) switch_core_session_run(switch_core_session_t *session)
                                                        *arg++ = '\0';
                                                }
                                                SWITCH_STANDARD_STREAM(stream);
+                                               switch_channel_get_variables(session->channel, &stream.param_event);
                                                switch_api_execute(cmd, arg, NULL, &stream);
                                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Hangup Command %s(%s):\n%s\n", cmd, arg,
                                                                                  switch_str_nil((char *) stream.data));