[Freeswitch-svn] [commit] r9166 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Thu Jul 24 07:28:49 EDT 2008
Author: anthm
Date: Thu Jul 24 07:28:49 2008
New Revision: 9166
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:28:49 2008
@@ -2140,7 +2140,7 @@
if (sip && channel && (status == 180 || status == 183 || status == 200) && switch_channel_test_flag(channel, CF_OUTBOUND)) {
if (sip->sip_user_agent && 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 && sip->sip_server->g_string) {
+ } else if (sip->sip_server && 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