]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Fix packet stats on bridged connection 78/2478/3
authorGeorge Joseph <george.joseph@fairview5.com>
Sun, 27 Mar 2016 17:53:16 +0000 (11:53 -0600)
committerGeorge Joseph <george.joseph@fairview5.com>
Mon, 28 Mar 2016 17:23:08 +0000 (11:23 -0600)
commit1bce690ccb36a4744a327c07af23a9a3a0fa20cd
tree5a3081d5d815baf4c47644abf96e8b2b454a7b0f
parentc88c09a9204544c8d903ef333ba9bbeb3c8cd692
res_rtp_asterisk:  Fix packet stats on bridged connection

rxcount, txcount, rxoctetcount and txoctetcount weren't being calculated
for bridged streams because the calulations were being done after the
bridged short-circuit.  Actually, rxoctetcount wasn't ever being calculated.

Moved the calculations so they occur for all valid received packets and
all transmitted packets.  Also added rxoctetcount and txoctetcount to
ast_rtp_instance_stat.

Change-Id: I08fb06011a82d38c3b4068867a615068fbe59cbb
include/asterisk/rtp_engine.h
res/res_rtp_asterisk.c