[asterisk-dev] [RTP] Detecting that a packet is SRTP

Yousf Ateya y.ateya at starkbits.com
Wed Apr 29 10:20:50 CDT 2015


In res_rtp_asterisk.c, to detect that a packet is SRTP (not RTP), this
check is done (link to gitweb
<http://git.asterisk.org/gitweb/?p=asterisk/asterisk.git;a=blob;f=res/res_rtp_asterisk.c;h=62601dcadaaf011a692a247d66ec590b3b47edfa;hb=refs/heads/master#l2019>
):

if ((*in >= 20) && (*in <= 64)) {

Although in the Datagram Transport Layer Security (DTLS) Extension to
Establish Keys for the Secure Real-time Transport Protocol (SRTP), section
5.1.2 <https://tools.ietf.org/html/rfc5764#section-5.1.2> it is stated that
it should be between 20 and 63 (not 64).

Is this a bug?

-- 


This e-mail message is intended only for the use of the intended recipient(s).
The information contained therein may be confidential or privileged,
and its disclosure or reproduction is strictly prohibited.
If you are not the intended recipient, please return it immediately to its sender 
at the above address and destroy it. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20150429/3f168a88/attachment.html>


More information about the asterisk-dev mailing list