From 4f6f7d285bb42ded49cd954c4e1ded70a340e17d Mon Sep 17 00:00:00 2001 From: Brian West Date: Mon, 6 Jul 2009 22:04:09 +0000 Subject: [PATCH] mod_sofia: Have I said how dumb sip is sometimes? git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14142 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 15632287d7..e1dedb33bd 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -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, "", from_user, from_domain, register_transport); sipip = contact_host ? contact_host : profile->extsipip ? profile->extsipip : profile->sipip;