profile->sip_force_expires = 0;
profile->sip_expires_max_deviation = 0;
profile->sip_subscription_max_deviation = 0;
- profile->tls_version = 0;
+ profile->tls_version = SOFIA_TLS_VERSION_TLSv1;
+ profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_1;
+ profile->tls_version |= SOFIA_TLS_VERSION_TLSv1_2;
profile->tls_timeout = 300;
profile->mflags = MFLAG_REFER | MFLAG_REGISTER;
profile->server_rport_level = 1;
profile->tls_verify_in_subjects_str = switch_core_strdup(profile->pool, val);
} else if (!strcasecmp(var, "tls-version")) {
char *ps = val, *pe;
+ profile->tls_version = 0;
while (1) {
int n;
pe = strchr(ps,',');