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

Freeswitch SVN anthm at freeswitch.org
Thu Jul 24 07:31:46 EDT 2008


Author: anthm
Date: Thu Jul 24 07:31:46 2008
New Revision: 9167

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

Log:
whoops

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 Jul 24 07:31:46 2008
@@ -137,7 +137,7 @@
 
 	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);
-	} else if (sip->sip_user_agent && !switch_strlen_zero(sip->sip_server->g_string)) {
+	} else if (sip->sip_server && !switch_strlen_zero(sip->sip_server->g_string)) {
 		switch_channel_set_variable(channel, "sip_user_agent", sip->sip_server->g_string);
 	}
 



More information about the Freeswitch-svn mailing list