git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14441
d0543943-73ff-0310-b7d9-
9358b9ac24b2
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;