]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Fix placement of txcount increment 94/2494/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:46:32 +0000 (08:46 -0600)
commit8dc8d6ceb8539ab6bb025f9a2172f5fe594329d5
treea3fbcb6b331c09f5fae70297df70d1c4260b670b
parentc7eb18d8655272c7e1bdecce176891e99c140795
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