contact_str = profile->tcp_public_contact;
break;
case SOFIA_TRANSPORT_TCP_TLS:
- contact_str = profile->tls_public_contact;
+ contact_str = sofia_test_pflag(profile, PFLAG_TLS) ?
+ profile->tls_public_contact : profile->tcp_public_contact;
break;
default:
contact_str = profile->public_url;
contact_str = profile->tcp_contact;
break;
case SOFIA_TRANSPORT_TCP_TLS:
- contact_str = profile->tls_contact;
+ contact_str = sofia_test_pflag(profile, PFLAG_TLS) ?
+ profile->tls_contact : profile->tcp_contact;
break;
default:
contact_str = profile->url;
contact_str = profile->tcp_public_contact;
break;
case SOFIA_TRANSPORT_TCP_TLS:
- contact_str = profile->tls_public_contact;
+ contact_str = sofia_test_pflag(profile, PFLAG_TLS) ?
+ profile->tls_public_contact : profile->tcp_public_contact;
break;
default:
contact_str = profile->public_url;
contact_str = profile->tcp_contact;
break;
case SOFIA_TRANSPORT_TCP_TLS:
- contact_str = profile->tls_contact;
+ contact_str = sofia_test_pflag(profile, PFLAG_TLS) ?
+ profile->tls_contact : profile->tcp_contact;
break;
default:
contact_str = profile->url;
contact_str = profile->tcp_public_contact;
break;
case SOFIA_TRANSPORT_TCP_TLS:
- contact_str = profile->tls_public_contact;
+ contact_str = sofia_test_pflag(profile, PFLAG_TLS) ?
+ profile->tls_public_contact : profile->tcp_public_contact;
break;
default:
contact_str = profile->public_url;
contact_str = profile->tcp_contact;
break;
case SOFIA_TRANSPORT_TCP_TLS:
- contact_str = profile->tls_contact;
+ contact_str = sofia_test_pflag(profile, PFLAG_TLS) ?
+ profile->tls_contact : profile->tcp_contact;
break;
default:
contact_str = profile->url;
}
} else if (switch_stristr("port=tls", contact->m_url->url_params)) {
if (np.is_auto_nat) {
- cs = profile->tls_public_contact;
+ cs = sofia_test_pflag(profile, PFLAG_TLS) ?
+ profile->tls_public_contact : profile->tcp_public_contact;
} else {
- cs = profile->tls_contact;
+ cs = sofia_test_pflag(profile, PFLAG_TLS) ?
+ profile->tls_contact : profile->tcp_contact;
}
}