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

Freeswitch SVN mikej at freeswitch.org
Tue Jun 5 14:22:16 EDT 2007


Author: mikej
Date: Tue Jun  5 14:22:16 2007
New Revision: 5271

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

Log:
fix to not unintentionally use to in 200 contact

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	Tue Jun  5 14:22:16 2007
@@ -1844,11 +1844,10 @@
 			if (profile->ndlb & PFLAG_NDLB_TO_IN_200_CONTACT) {
 				tech_pvt->reply_contact = tech_pvt->to_uri;
 			} else {
-				tech_pvt->to_uri = switch_core_session_strdup(session, profile->url);
+				tech_pvt->reply_contact = switch_core_session_strdup(session, profile->url);
 			}
 		} else {
-			tech_pvt->to_uri = switch_core_session_strdup(session, profile->url);
-			tech_pvt->reply_contact = tech_pvt->to_uri;
+			tech_pvt->reply_contact = switch_core_session_strdup(session, profile->url);
 		}
 	}
 



More information about the Freeswitch-svn mailing list