]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Fix packet stats on bridged connection 79/2479/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:48 +0000 (12:23 -0500)
commit44ffb5105a7d6ff04ecd699b228614d0ac8b4466
tree38b237e3f8e0693765ba4968e4146ba903bb4496
parent77a9272431296772f5930301175bc0832076ac3e
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