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

FreeSWITCH SVN brian at freeswitch.org
Thu Jun 25 08:40:38 PDT 2009


Author: brian
Date: Thu Jun 25 10:40:38 2009
New Revision: 13948

Log:
mod_sofia: preserve transport on route (SFSIP-157)

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

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_glue.c	Thu Jun 25 10:40:38 2009
@@ -1454,7 +1454,7 @@
 				tech_pvt->transport = SOFIA_TRANSPORT_UDP;
 			}
 		}
-		
+
 		if (sofia_glue_check_nat(tech_pvt->profile, tech_pvt->remote_ip)) {
 			tech_pvt->user_via = sofia_glue_create_external_via(session, tech_pvt->profile, tech_pvt->transport);
 		}
@@ -1671,7 +1671,7 @@
 		dst = sofia_glue_get_destination(tech_pvt->dest);
 
 		if (dst->route_uri) {
-			route_uri = sofia_overcome_sip_uri_weakness(tech_pvt->session, dst->route_uri, 0, SWITCH_TRUE, NULL);
+			route_uri = sofia_overcome_sip_uri_weakness(tech_pvt->session, dst->route_uri, tech_pvt->transport, SWITCH_TRUE, NULL);
 		}
 	
 		if (dst->route) {



More information about the Freeswitch-svn mailing list