[Asterisk-code-review] res pjsip: Add "webrtc" configuration option (asterisk[master])

Joshua Colp asteriskteam at digium.com
Tue Jul 11 10:39:19 CDT 2017


Joshua Colp has posted comments on this change. ( https://gerrit.asterisk.org/5988 )

Change subject: res_pjsip: Add "webrtc" configuration option
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.asterisk.org/#/c/5988/1/res/res_pjsip/pjsip_configuration.c
File res/res_pjsip/pjsip_configuration.c:

https://gerrit.asterisk.org/#/c/5988/1/res/res_pjsip/pjsip_configuration.c@1345
PS1, Line 1345: 		if (endpoint->media.rtp.encryption == AST_SIP_MEDIA_ENCRYPT_NONE) {
              : 			endpoint->media.rtp.encryption = AST_SIP_MEDIA_ENCRYPT_DTLS;
              : 			endpoint->media.rtp.dtls_cfg.enabled = 1;
              : 		}
              : 		if (endpoint->media.rtp.dtls_cfg.enabled) {
              : 			endpoint->media.rtp.dtls_cfg.default_setup = AST_RTP_DTLS_SETUP_ACTPASS;
              : 			if (endpoint->media.rtp.dtls_cfg.verify == AST_RTP_DTLS_VERIFY_NONE) {
              : 				endpoint->media.rtp.dtls_cfg.verify = AST_RTP_DTLS_VERIFY_FINGERPRINT;
              : 			}
              : 		}
> My initial thought was this way it would allow people to specify other opti
DTLS is what the specs require currently so I think enforcing that is good. It'd probably also be good to do a check here for certificates being configured (not empty) and error if they aren't.



-- 
To view, visit https://gerrit.asterisk.org/5988
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I5ec02e07c5d5b9ad86a34fdf31bf2f9da9aac6fd
Gerrit-Change-Number: 5988
Gerrit-PatchSet: 1
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Comment-Date: Tue, 11 Jul 2017 15:39:19 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170711/172eaa69/attachment.html>


More information about the asterisk-code-review mailing list