]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix The Payload Being Set On CN Packets And Do Not Set Marker Bit
authorMichael L. Young <elgueromexicano@gmail.com>
Thu, 9 May 2013 04:11:59 +0000 (04:11 +0000)
committerMichael L. Young <elgueromexicano@gmail.com>
Thu, 9 May 2013 04:11:59 +0000 (04:11 +0000)
commitf758885546e9d7860c971c887d4cae1e8d1117bf
treeadd4be66bc091261f3bf215f6040d223ee285530
parentbb52414990e302b794b4b82d86df3bfa35d38e1f
Fix The Payload Being Set On CN Packets And Do Not Set Marker Bit

When we send out a CN packet (for instance, in the case of using rtpkeepalives),
we are not setting the payload code properly.  Also, we are setting the marker
bit when we shouldn't be according to RFC 3389, section 4.

AST_RTP_CN is not defined by AST_FORMAT codes.  Therefore, we should be using
ast_rtp_codecs_payload_code() rather than ast_rtp_codecs_payload_lookup().

11 and trunk already use the appropriate function.

* In 1.8, use ast_rtp_codecs_payload_code()

* Remove the setting of the marker bit

* Fix the debug message by incrementing the seqno after the debug message is set
  in order to display the correct seqno that was sent out

(closes issue ASTERISK-21246)
Reported by: Peter Katzmann
Tested by: Peter Katzmann, Michael L. Young
Patches:
    asterisk-21246-rtp-cng-payload-error_1.8_v2.diff
                                     uploaded by Michael L. Young (license 5026)

Review: https://reviewboard.asterisk.org/r/2500/
........

Merged revisions 388111 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 388112 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388113 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_rtp_asterisk.c