Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (14440 => 14441)
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-07-31 19:29:39 UTC (rev 14440)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c 2009-07-31 21:21:33 UTC (rev 14441)
@@ -1455,7 +1455,7 @@
gateway->register_url = switch_core_sprintf(gateway->pool, "sip:%s", proxy);
gateway->register_from = switch_core_sprintf(gateway->pool, "<sip:%s@%s;transport=%s>",
- from_user, from_domain ? from_domain : proxy, register_transport);
+ from_user, !switch_strlen_zero(from_domain) ? from_domain : proxy, register_transport);
sipip = contact_host ? contact_host : profile->extsipip ? profile->extsipip : profile->sipip;