[Freeswitch-svn] [commit] r8763 - freeswitch/trunk/src/mod/endpoints/mod_sofia

Freeswitch SVN brian at freeswitch.org
Thu Jun 5 11:34:15 EDT 2008


Author: brian
Date: Thu Jun  5 11:34:14 2008
New Revision: 8763

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

Log:
add var

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Thu Jun  5 11:34:14 2008
@@ -2103,6 +2103,9 @@
 						switch_channel_set_variable(channel, "sip_term_status", st);
 						switch_snprintf(st, sizeof(st), "sip:%d", status);
 						switch_channel_set_variable_partner(channel, SWITCH_PROTO_SPECIFIC_HANGUP_CAUSE_VARIABLE, st);
+						if (phrase) {
+							switch_channel_set_variable_partner(channel, "sip_hangup_phrase", phrase);
+						}
 					}
 					switch_snprintf(st, sizeof(st), "%d", cause);
 					switch_channel_set_variable(channel, "sip_term_cause", st);



More information about the Freeswitch-svn mailing list