]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: make it possible to remove SOFTWARE attribute
authorJeremy Lainé <jeremy.laine@m4x.org>
Wed, 19 May 2021 18:13:36 +0000 (20:13 +0200)
committerJeremy Lainé <jeremy.laine@m4x.org>
Fri, 21 May 2021 15:37:23 +0000 (10:37 -0500)
commitd162789c4d221446e07f9156e8ba51d62d5dab6c
treebcf2a6155ac8a0a7e135f7e6722ed35ca0717ec7
parent9cc1d6fc2260e9033cb7c080255987c6b2a4e343
res_rtp_asterisk: make it possible to remove SOFTWARE attribute

By default Asterisk reports the PJSIP version in a SOFTWARE attribute
of every STUN packet it sends. This may not be desired in a production
environment, and RFC5389 recommends making the use of the SOFTWARE
attribute a configurable option:

https://datatracker.ietf.org/doc/html/rfc5389#section-16.1.2

This patch adds a `stun_software_attribute` yes/no option to make it
possible to omit the SOFTWARE attribute from STUN packets.

ASTERISK-29434

Change-Id: Id3f2b1dd9584536ebb3a1d7e8395fd8b3e46860b
configs/samples/rtp.conf.sample
doc/CHANGES-staging/res_rtp_asterisk_stun_software_attribute.txt [new file with mode: 0644]
res/res_rtp_asterisk.c