提交 185fa599 authored 作者: Brian West's avatar Brian West

these two cases do not need to be on IF the flag is set otherwise you can't LIE…

 these two cases do not need to be on IF the flag is set otherwise you can't LIE about the contact dyanmically.  These are the TWO cases that had a not PFLAG_AUTO_NAT else do the right thing in this case.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15870 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 dedb9e4d
...@@ -3074,6 +3074,7 @@ switch_status_t config_sofia(int reload, char *profile_name) ...@@ -3074,6 +3074,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
if (!profile->sipdomain) { if (!profile->sipdomain) {
profile->sipdomain = switch_core_strdup(profile->pool, profile->sipip); profile->sipdomain = switch_core_strdup(profile->pool, profile->sipip);
} }
if (profile->extsipip) { if (profile->extsipip) {
char *ipv6 = strchr(profile->extsipip, ':'); char *ipv6 = strchr(profile->extsipip, ':');
profile->public_url = switch_core_sprintf(profile->pool, profile->public_url = switch_core_sprintf(profile->pool,
...@@ -3085,7 +3086,7 @@ switch_status_t config_sofia(int reload, char *profile_name) ...@@ -3085,7 +3086,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
profile->sip_port); profile->sip_port);
} }
if (profile->extsipip) { if (profile->extsipip && !sofia_test_pflag(profile, PFLAG_AUTO_NAT)) {
char *ipv6 = strchr(profile->extsipip, ':'); char *ipv6 = strchr(profile->extsipip, ':');
profile->url = switch_core_sprintf(profile->pool, profile->url = switch_core_sprintf(profile->pool,
"sip:%s@%s%s%s:%d", "sip:%s@%s%s%s:%d",
...@@ -3137,7 +3138,7 @@ switch_status_t config_sofia(int reload, char *profile_name) ...@@ -3137,7 +3138,7 @@ switch_status_t config_sofia(int reload, char *profile_name)
profile->tls_sip_port); profile->tls_sip_port);
} }
if (profile->extsipip) { if (profile->extsipip && !sofia_test_pflag(profile, PFLAG_AUTO_NAT)) {
char *ipv6 = strchr(profile->extsipip, ':'); char *ipv6 = strchr(profile->extsipip, ':');
profile->tls_url = profile->tls_url =
switch_core_sprintf(profile->pool, switch_core_sprintf(profile->pool,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论