提交 75c97881 authored 作者: Anthony Minessale's avatar Anthony Minessale

do not auto-set from-domain

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14304 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 406fbfde
...@@ -1377,10 +1377,6 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag) ...@@ -1377,10 +1377,6 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
gateway->status = SOFIA_GATEWAY_UP; gateway->status = SOFIA_GATEWAY_UP;
} }
if (switch_strlen_zero(from_domain)) {
from_domain = realm;
}
if (switch_strlen_zero(auth_username)) { if (switch_strlen_zero(auth_username)) {
auth_username = username; auth_username = username;
} }
...@@ -1437,7 +1433,8 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag) ...@@ -1437,7 +1433,8 @@ 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_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, register_transport); gateway->register_from = switch_core_sprintf(gateway->pool, "<sip:%s@%s;transport=%s>",
from_user, from_domain ? from_domain : proxy, register_transport);
sipip = contact_host ? contact_host : profile->extsipip ? profile->extsipip : profile->sipip; sipip = contact_host ? contact_host : profile->extsipip ? profile->extsipip : profile->sipip;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论