提交 a67645a4 authored 作者: Brian West's avatar Brian West

use brackets to put params in the right place in contact strs

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16208 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 e26f141b
...@@ -3148,10 +3148,10 @@ switch_status_t config_sofia(int reload, char *profile_name) ...@@ -3148,10 +3148,10 @@ switch_status_t config_sofia(int reload, char *profile_name)
profile->bindurl = profile->url; profile->bindurl = profile->url;
} }
profile->tcp_contact = switch_core_sprintf(profile->pool, "%s;transport=tcp", profile->url); profile->tcp_contact = switch_core_sprintf(profile->pool, "<%s;transport=tcp>", profile->url);
if (profile->public_url) { if (profile->public_url) {
profile->tcp_public_contact = switch_core_sprintf(profile->pool, "%s;transport=tcp", profile->public_url); profile->tcp_public_contact = switch_core_sprintf(profile->pool, "<%s;transport=tcp>", profile->public_url);
} }
if (profile->bind_params) { if (profile->bind_params) {
...@@ -3224,9 +3224,9 @@ switch_status_t config_sofia(int reload, char *profile_name) ...@@ -3224,9 +3224,9 @@ switch_status_t config_sofia(int reload, char *profile_name)
if (!profile->tls_cert_dir) { if (!profile->tls_cert_dir) {
profile->tls_cert_dir = switch_core_sprintf(profile->pool, "%s/ssl", SWITCH_GLOBAL_dirs.conf_dir); profile->tls_cert_dir = switch_core_sprintf(profile->pool, "%s/ssl", SWITCH_GLOBAL_dirs.conf_dir);
} }
profile->tls_contact = switch_core_sprintf(profile->pool, "%s;transport=tls", profile->tls_url); profile->tls_contact = switch_core_sprintf(profile->pool, "<%s;transport=tls>", profile->tls_url);
if (profile->tls_public_url) { if (profile->tls_public_url) {
profile->tls_public_contact = switch_core_sprintf(profile->pool, "%s;transport=tls", profile->tls_public_url); profile->tls_public_contact = switch_core_sprintf(profile->pool, "<%s;transport=tls>", profile->tls_public_url);
} }
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论