]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
move code
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 28 Oct 2008 16:31:01 +0000 (16:31 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 28 Oct 2008 16:31:01 +0000 (16:31 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10180 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index cc68a60a3d3c10b17f4beb28ad8c160f1ae5a9ca..ffdf824c97d17ab5b89e9e40d0693ebf037ba465 100644 (file)
@@ -1988,6 +1988,10 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
 
                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 @@ static switch_call_cause_t sofia_outgoing_channel(switch_core_session_t *session
                        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, '%'))) {