<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
As described in the issue <a
href="https://issues.asterisk.org/jira/browse/ASTERISK-25866">ASTERISK-25866</a>,
it appears that ChanSpy is randomly loosing audio frames, because it
sets the flags AST_AUDIOHOOK_TRIGGER_SYNC and
AST_AUDIOHOOK_SMALL_QUEUE when creating the audiohook: these option
cause the audiohook's queue to be flushed of "old" frames at very
short intervals.<br>
<br>
I have submitted a patch on gerrit which does two things :<br>
1- do not set the flag AST_AUDIOHOOK_TRIGGER_SYNC if ChanSpy has
been called with the option "o": in this case we only listen to the
audio coming from this channel so this flag is useless<br>
2- create a new option "l" which prevents the flag
AST_AUDIOHOOK_SMALL_QUEUE from being set. I find it better than just
removing the flag in all cases, because this may introduce some
delay in the audio, which may not be acceptable for many ChanSpy
users.<br>
<br>
What do you think of the idea ?<br>
<br>
Best regards,<br>
<br>
Jean Aunis
</body>
</html>