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

Freeswitch SVN mikej at freeswitch.org
Fri May 4 18:38:24 EDT 2007


Author: mikej
Date: Fri May  4 18:38:24 2007
New Revision: 5089

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

Log:
add sip_subject channel var when header is there.

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	Fri May  4 18:38:24 2007
@@ -1820,6 +1820,10 @@
 		switch_channel_set_variable(channel, "sip_call_id", tech_pvt->call_id);
 	}
 
+	if (sip->sip_subject && sip->sip_subject->g_string) {
+		switch_channel_set_variable(channel, "sip_subject", sip->sip_subject->g_string);
+	}
+
 	if (sip->sip_via) {
 		if (sip->sip_via->v_host) {
 			switch_channel_set_variable(channel, "sip_via_host", sip->sip_via->v_host);



More information about the Freeswitch-svn mailing list