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

Freeswitch SVN brian at freeswitch.org
Sat Dec 22 15:51:58 EST 2007


Author: brian
Date: Sat Dec 22 15:51:57 2007
New Revision: 6959

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

Log:
add user_agent channel var so we can cdr it if we needed

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	Sat Dec 22 15:51:57 2007
@@ -2276,6 +2276,10 @@
 	if (sip->sip_subject && sip->sip_subject->g_string) {
 		switch_channel_set_variable(channel, "sip_subject", sip->sip_subject->g_string);
 	}
+	
+	if (sip->sip_user_agent && !switch_strlen_zero(sip->sip_user_agent->g_string)){
+		switch_channel_set_variable(channel, "sip_user_agent", sip->sip_user_agent->g_string);
+	}
 
 	if (sip->sip_via) {
 		if (sip->sip_via->v_host) {



More information about the Freeswitch-svn mailing list