[asterisk-dev] pjsip asterisk 13.24: sips / srtp and Deutsche Telekom doesn't work because of missing mediasec parameters

Michael Maier m1278468 at mailbox.org
Mon Oct 21 10:23:02 CDT 2019


Hi!

Meanwhile, there is an improved version of the mediasec patch, which adds a switch to enable mediasec headers for each endpoint individually. This patch is thankfully
provided by André Valentin (avalentin at marcant.net / https://www.marcant.net/en/). It's the patch "2-add-mediasec-switches.patch" contained in the patchset.tar.gz container.
The "3-reduced-mediasec-switches.patch" mainly removed an unnecessary switch (aor) introduced by "2-add-mediasec-switches.patch".

This is how the patches in the container should be used (tested against asterisk 16.6.x):
You may apply the patches 1-mediasec-no-initial-reInvite.patch, 2-add-mediasec-switches.patch and 3-reduced-mediasec-switches.patch in the given order or you may only apply
the last patch (mediasec-all-in-one.patch), which combines the first 3 patches in one patch.


How should it all be used now?
If you want to use SIPS and SRTP with Deutsche Telekom AllIP, you have to be sure to enable the following features in the pjsip trunk (endpoint):

- transport: tls (TLS 1.2)
- enable SRTP for this trunk
- endpoint: support_mediasec=1
- registration: support_mediasec=1



If you are using FreePBX, you have to add the support_mediasec switches to
pjsip.endpoint_custom_post.conf and
pjsip.registration_custom_post.conf.

This is done like this:

File pjsip.endpoint_custom_post.conf:
[your name of the trunk](+type=endpoint)
support_mediasec=1

File pjsip.registration_custom_post.conf:
[your name of the trunk](+type=registration)
support_mediasec=true



Thanks
Regards
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mediasec-patchset.tar.gz
Type: application/gzip
Size: 6987 bytes
Desc: not available
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20191021/a449709c/attachment.gz>


More information about the asterisk-dev mailing list