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
This commit is contained in:
Brian West 2010-01-08 01:05:05 +00:00
parent e26f141bf8
commit a67645a4bc
1 changed files with 4 additions and 4 deletions

View File

@ -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)
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);
} }
} }
} }