Revision
14740
Author
anthm
Date
2009-09-02 11:34:49 -0500 (Wed, 02 Sep 2009)

Log Message

add more stuff to event in hangup hook api

Modified Paths

Diff

Modified: freeswitch/trunk/src/switch_core_state_machine.c (14739 => 14740)


--- freeswitch/trunk/src/switch_core_state_machine.c	2009-09-02 16:24:00 UTC (rev 14739)
+++ freeswitch/trunk/src/switch_core_state_machine.c	2009-09-02 16:34:49 UTC (rev 14740)
@@ -454,10 +454,13 @@
 						}
 
 						SWITCH_STANDARD_STREAM(stream);
+						
 						switch_channel_get_variables(session->channel, &stream.param_event);
+						switch_channel_event_set_data(session->channel, stream.param_event);
 						expanded = switch_channel_expand_variables(session->channel, arg);
+
+						switch_api_execute(cmd, expanded, use_session, &stream);
 						
-						switch_api_execute(cmd, expanded, use_session, &stream);
 						switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Hangup Command %s(%s):\n%s\n", cmd, switch_str_nil(expanded),
 										  switch_str_nil((char *) stream.data));