]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
stupid stupid stupid stupid stupid
authorBrian West <brian@freeswitch.org>
Fri, 31 Jul 2009 21:21:33 +0000 (21:21 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 31 Jul 2009 21:21:33 +0000 (21:21 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14441 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 0c539f27f8c629bb9df2c19b4abe383cda51426f..ccd8f43da3d79c1ff27d4b5a1d380a94b64b5081 100644 (file)
@@ -1455,7 +1455,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
 
                        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;