[Freeswitch-svn] [commit] r13163 - freeswitch/trunk/src

FreeSWITCH SVN mrene at freeswitch.org
Mon Apr 27 08:51:19 PDT 2009


Author: mrene
Date: Mon Apr 27 10:51:19 2009
New Revision: 13163

Log:
FSCORE-356

Modified:
   freeswitch/trunk/src/switch_core_state_machine.c

Modified: freeswitch/trunk/src/switch_core_state_machine.c
==============================================================================
--- freeswitch/trunk/src/switch_core_state_machine.c	(original)
+++ freeswitch/trunk/src/switch_core_state_machine.c	Mon Apr 27 10:51:19 2009
@@ -432,6 +432,7 @@
 					const char *hook_var;
 					switch_core_session_t *use_session = NULL;
 					switch_call_cause_t cause = switch_channel_get_cause(session->channel);
+					switch_call_cause_t cause_q850 = switch_channel_get_cause_q850(session->channel);
 					switch_event_t *event;
 		
 					switch_channel_set_hangup_time(session->channel);
@@ -441,6 +442,7 @@
 					switch_channel_stop_broadcast(session->channel);
 					
 					switch_channel_set_variable(session->channel, "hangup_cause", switch_channel_cause2str(cause));
+					switch_channel_set_variable_printf(session->channel, "hangup_cause_q850", "%d", cause_q850);
 					switch_channel_presence(session->channel, "unavailable", switch_channel_cause2str(cause), NULL);
 					
 					switch_channel_set_timestamps(session->channel);



More information about the Freeswitch-svn mailing list