]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_sofia: Have I said how dumb sip is sometimes?
authorBrian West <brian@freeswitch.org>
Mon, 6 Jul 2009 22:04:09 +0000 (22:04 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 6 Jul 2009 22:04:09 +0000 (22:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14142 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index 15632287d73b0b39f6573013264b20176923807e..e1dedb33bd9d5e3402480b6a53a432c55846b30a 100644 (file)
@@ -1411,7 +1411,7 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
                                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;