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

Freeswitch SVN anthm at freeswitch.org
Tue Oct 28 12:31:01 EDT 2008


Author: anthm
Date: Tue Oct 28 12:31:01 2008
New Revision: 10180

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

Log:
move code

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Tue Oct 28 12:31:01 2008
@@ -1988,6 +1988,10 @@
 
 		tech_pvt->transport = gateway_ptr->register_transport;
 
+		if ((dest_to = strchr(dest, '^'))) {
+			*dest_to++ = '\0';
+		}
+
 		/*
 		 * Handle params, strip them off the destination and add them to the
 		 * invite contact.
@@ -2064,10 +2068,6 @@
 			profile_name = profile->domain_name;
 		}
 
-		if ((dest_to = strchr(dest, '^'))) {
-			*dest_to++ = '\0';
-		}
-
 		if (!strncasecmp(dest, "sip:", 4) || !strncasecmp(dest, "sips:", 5)) {
 			tech_pvt->dest = switch_core_session_strdup(nsession, dest);
 		} else if ((host = strchr(dest, '%'))) {



More information about the Freeswitch-svn mailing list