}
profile->tcp_contact = switch_core_sprintf(profile->pool, "%s;transport=tcp", profile->url);
- profile->tls_contact = switch_core_sprintf(profile->pool, "%s;transport=tls", profile->url);
-
if (profile->bind_params) {
char *bindurl = profile->bindurl;
if (!profile->tls_cert_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);
}
}
if (profile) {
if (status < 200) {
char *sticky = NULL;
- char *contact_str = profile->url;
+ char *contactstr = profile->url;
if (is_nat) {
char params[128] = "";
}
if (switch_stristr("port=tcp", contact->m_url->url_params)) {
- contact_str = profile->tcp_contact;
+ contactstr = profile->tcp_contact;
} else if (switch_stristr("port=tls", contact->m_url->url_params)) {
- contact_str = profile->tls_contact;
+ contactstr = profile->tls_contact;
}