Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (14220 => 14221)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-07-13 15:50:05 UTC (rev 14220)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-07-13 16:37:00 UTC (rev 14221)
@@ -1438,10 +1438,10 @@
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);
}