]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Fix placement of txcount increment 95/2495/1
authorGeorge Joseph <george.joseph@fairview5.com>
Wed, 30 Mar 2016 14:46:32 +0000 (08:46 -0600)
committerGeorge Joseph <george.joseph@fairview5.com>
Wed, 30 Mar 2016 14:52:47 +0000 (09:52 -0500)
commit724b9ab28fecd06b0a1c13e0b71024728336bfe8
treeb2e888a8c627486589cb8abd6ab84c3028ccae74
parentc4064727d208d61dc29721c52f450f67eb22a445
res_rtp_asterisk:  Fix placement of txcount increment

Commit 1bce690ccb36a4744a327c07af23a9a3a0fa20cd was incrementing txcount
for rtcp packets as well as rtp packets and that was causing sender reports
to be generated instead of receiver reports in cases where no rtp was actually
being sent.

Moved the txcount increment from __rtp_sento, which handles both rtp and rtcp,
to rtp_sento which only handles rtp packets.

Discovered by the hep/rtcp-receiver test.

Change-Id: Ie442e4bb947a68847a676497021ba10ffaf376d5
res/res_rtp_asterisk.c