diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-09-25 14:00:53 -0400 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-09-25 13:11:47 -0500 |
commit | 721947ebae1961c1f765eaeb60abb1a71cf97ce0 (patch) | |
tree | c25819595487beecd0a62b70e55b6e886b919e42 /res/res_pjsip | |
parent | 0133d29c8300376229e3a7e9b9b05e2daa705809 (diff) |
webrtc: Allow 'webrtc' to be set on endpoints without dtls_ca_file
If using a legitimate certificate from a trusted certificate authority,
you don't need to provide CA file.
Change-Id: I8623973b4209b44889243716d7880274caed8a6d
Diffstat (limited to 'res/res_pjsip')
-rw-r--r-- | res/res_pjsip/pjsip_configuration.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/res/res_pjsip/pjsip_configuration.c b/res/res_pjsip/pjsip_configuration.c index cba8a7e7f..3a752c90d 100644 --- a/res/res_pjsip/pjsip_configuration.c +++ b/res/res_pjsip/pjsip_configuration.c @@ -1363,10 +1363,9 @@ static int sip_endpoint_apply_handler(const struct ast_sorcery *sorcery, void *o endpoint->media.rtp.dtls_cfg.default_setup = AST_RTP_DTLS_SETUP_ACTPASS; endpoint->media.rtp.dtls_cfg.verify = AST_RTP_DTLS_VERIFY_FINGERPRINT; - if (ast_strlen_zero(endpoint->media.rtp.dtls_cfg.certfile) || - (ast_strlen_zero(endpoint->media.rtp.dtls_cfg.cafile))) { + if (ast_strlen_zero(endpoint->media.rtp.dtls_cfg.certfile)) { ast_log(LOG_ERROR, "WebRTC can't be enabled on endpoint '%s' - a DTLS cert " - "or ca file has not been specified", ast_sorcery_object_get_id(endpoint)); + "has not been specified", ast_sorcery_object_get_id(endpoint)); return -1; } } |