Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify whether to pad crypto properties when creating an outbound sip gateway using SRTP #320

Closed
davehorton opened this issue Sep 15, 2023 · 2 comments
Assignees

Comments

@davehorton
Copy link
Contributor

An area of confusion in the industry is whether or not to apply base64 padding (ie 0, 1, or 2 "equals" signs) to inline crypto attributes in the SDP. Example with no padding:

a=crypto:1 AEAD_AES_256_GCM inline:UjbSu5pCEPs/D7UtQWl2R+Nd7YnXoiGU6+THDz58hyXTtt94HiGM8YgCgU0
a=crypto:2 AEAD_AES_128_GCM inline:6Y7fx0D8q3OZxwKqOmQg0uD/ubV0mtgHSoj2wQ
a=crypto:3 AES_CM_128_HMAC_SHA1_80 inline:QEg6UozMTrNtbMEWLMEHvIuQ4hQSQ/UHkJm9b6sd

Example with padding:

a=crypto:1 AEAD_AES_256_GCM inline:UKQQltkBs5PsDa37SL7uEgYG3BFXDIIqYeorn76ERCcNk4poY02D/fWU74E=
a=crypto:2 AEAD_AES_128_GCM inline:hI8twp7i82SjaofbxTw7XNyrvOmqvx3A50Y4QA==
a=crypto:3 AES_CM_128_HMAC_SHA1_80 inline:ONE4xh9E7LfpxCoORp1awnUI3+IZdftiGbDQNwRK

Currently, we have an env var in SBC outbound, PAD_CRYPTO, that globally sets which way to do it. However, we should be able to set this on a sip gateway level. When the user selects "TLS/SRTP" for the protocol for an outbound SIP gateway there should appear a checkbox labeled "Pad crypto attributes". By default it should be unchecked. This setting should define whether or not for any outbound calls made through to gateway padding should be added.

@davehorton
Copy link
Contributor Author

Below is a wireframe showing the new property, which is only visible for outbound gateways where TLS/SRTP is selected

image

@xquanluu
Copy link
Contributor

closing this as PRs merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants