]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4859 correction
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 21 Nov 2012 17:49:35 +0000 (11:49 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 21 Nov 2012 17:49:35 +0000 (11:49 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index ab45ed78b334706dc729fbb6c4a95fd75d1cd8e2..092b1dca27dedbb38c9d37745aeb9366bb91979c 100644 (file)
@@ -4672,6 +4672,11 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
                                        }
 
                                        if (profile->sipip) {
+
+                                               if (!profile->extsipport) {
+                                                       profile->extsipport = profile->sip_port;
+                                               }
+
                                                launch_sofia_profile_thread(profile);
                                                if (profile->odbc_dsn) {
                                                        switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Connecting ODBC Profile %s [%s]\n", profile->name, url);
@@ -4693,10 +4698,6 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
        }
   done:
 
-       if (!profile->extsipport) {
-               profile->extsipport = profile->sip_port;
-       }
-
        if (profile_already_started) {
                sofia_glue_release_profile(profile_already_started);
        }