Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (14141 => 14142)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-07-06 22:02:30 UTC (rev 14141)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-07-06 22:04:09 UTC (rev 14142)
@@ -1411,7 +1411,7 @@
params = switch_core_sprintf(gateway->pool, ";transport=%s", register_transport);
}
- gateway->register_url = switch_core_sprintf(gateway->pool, "sip:%s;transport=%s", register_proxy ? register_proxy : proxy, register_transport);
+ gateway->register_url = switch_core_sprintf(gateway->pool, "sip:%s", from_domain ? from_domain : register_proxy ? register_proxy : proxy);
gateway->register_from = switch_core_sprintf(gateway->pool, "<sip:%s@%s;transport=%s>", from_user, from_domain, register_transport);
sipip = contact_host ? contact_host : profile->extsipip ? profile->extsipip : profile->sipip;