From: Anthony Minessale Date: Tue, 26 Feb 2013 05:12:05 +0000 (-0600) Subject: fix cert dir specification when tls is not configured (note, you probably need to... X-Git-Tag: v1.5.1~341 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4e0bae4c7be8eeffef026a0d43878c87cd1bf03;p=thirdparty%2Ffreeswitch.git fix cert dir specification when tls is not configured (note, you probably need to move your certs for wss after this commit) --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 9c292024d9..c543bb8314 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -2430,7 +2430,7 @@ void *SWITCH_THREAD_FUNC sofia_profile_thread_run(switch_thread_t *thread, void NUTAG_WS_URL(profile->ws_bindurl)), TAG_IF(profile->wss_bindurl, NUTAG_WSS_URL(profile->wss_bindurl)), - TAG_IF(sofia_test_pflag(profile, PFLAG_TLS), + TAG_IF(profile->tls_cert_dir, NUTAG_CERTIFICATE_DIR(profile->tls_cert_dir)), TAG_IF(sofia_test_pflag(profile, PFLAG_TLS) && profile->tls_passphrase, TPTAG_TLS_PASSPHRASE(profile->tls_passphrase)), @@ -4671,7 +4671,7 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name) config_sofia_profile_urls(profile); - if (sofia_test_pflag(profile, PFLAG_TLS) && !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); }