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

Kevin Harwell asteriskteam at digium.com
Tue Jul 11 10:31:16 CDT 2017


Kevin Harwell 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;
              : 			}
              : 		}
> Any reason to not just go ahead and explicitly set these regardless?
My initial thought was this way it would allow people to specify other options for those values, but if DTLS is currently the only encryption allowed/used it probably doesn't really matter.



-- 
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:31:16 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20170711/6b3a3b3c/attachment.html>


More information about the asterisk-code-review mailing list