]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res/res_monitor: Reset in/out sample counts on Monitor start
authorMatthew Jordan <mjordan@digium.com>
Sat, 6 Dec 2014 18:15:20 +0000 (18:15 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 6 Dec 2014 18:15:20 +0000 (18:15 +0000)
commit1a934e007f1b295bf71ca3fa7e6af287d8c2bf18
tree756c71e073edadfc370f00a82980f1aced06fb41
parentc02beb1097eab43bbcc4160c49176b121a5ca2a3
res/res_monitor: Reset in/out sample counts on Monitor start

When repeatedly starting/stopping a Monitor on a channel, the accumulated
in/out sample counts are never reset to 0. This can cause inadvertent jumps
in the recordings, as the code in the channel core will determine incorrectly
that a jump in the recorded file position should occur. Setting the sample
counts to 0 simply reflects the initial state a Monitor should be in when it
is started, as this is the initial count that would be on the channels at that
time.

ASTERISK-24573 #close
Reported by: Nuno Borges
patches:
  24573.patch uploaded by Nuno Borges (License 6116)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@429031 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_monitor.c