]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
don't nuke proxy
authorBrian West <brian@freeswitch.org>
Mon, 13 Jul 2009 16:37:00 +0000 (16:37 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 13 Jul 2009 16:37:00 +0000 (16:37 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14221 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 2a3cdf033c8cb081c968179529a1a7ff6362b882..3dadf0dcd6eee1d059963ea77bfb2bbea8ae5ae4 100644 (file)
@@ -1438,10 +1438,10 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
                        
                        
                        if (!strncasecmp(proxy, "sip:", 4)) {
-                               gateway->register_proxy = switch_core_strdup(gateway->pool, register_proxy ? register_proxy : proxy);
+                               gateway->register_proxy = switch_core_strdup(gateway->pool, proxy);
                                gateway->register_to = switch_core_sprintf(gateway->pool, "sip:%s@%s", username, register_proxy ? register_proxy + 4 : proxy + 4);
                        } else {
-                               gateway->register_proxy = switch_core_sprintf(gateway->pool, "sip:%s", register_proxy ? register_proxy : proxy);
+                               gateway->register_proxy = switch_core_sprintf(gateway->pool, "sip:%s", proxy);
                                gateway->register_to = switch_core_sprintf(gateway->pool, "sip:%s@%s", username, register_proxy ? register_proxy : proxy);
                        }