<div dir="ltr">In most cases, flushing an audiohook is not a bad thing, nor is it something to be worried about. That's why it's a debug message. If you want it in your logs, then set the core debug level to 1 so it shows up. You will get more messages than you are used to seeing, but by only setting the core debug level to 1, you will not get as badly flooded as you might if you were to set the level higher.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 29, 2016 at 4:15 AM, Tomec Martin <span dir="ltr"><<a href="mailto:tomec@ipex.cz" target="_blank">tomec@ipex.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="CS" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">we are solving issue with mixmonitor – in production asterisk, there are sometimes gaps in recordings (missing syllables), but we cannot reproduce it in test enviroment.<u></u><u></u></p>
<p class="MsoNormal">I suppose it is caused by frames flushing in audiohook.c:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
</span><b><span style="font-size:10.0pt;font-family:Consolas;color:#7f0055">if</span></b><span style="font-size:10.0pt;font-family:Consolas;color:black"> (<u>ast_test_flag(audiohook,
</u></span><i><u><span style="font-size:10.0pt;font-family:Consolas;color:#0000c0">AST_AUDIOHOOK_TRIGGER_SYNC</span></u></i><u><span style="font-size:10.0pt;font-family:Consolas;color:black">)</span></u><span style="font-size:10.0pt;font-family:Consolas;color:black">
&& other_factory_samples && (our_factory_ms - other_factory_ms > AST_AUDIOHOOK_SYNC_TOLERANCE)) {</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black">
<u>ast_debug(1, </u></span><u><span style="font-size:10.0pt;font-family:Consolas;color:#2a00ff">"Flushing audiohook %p so it remains in sync\n"</span></u><u><span style="font-size:10.0pt;font-family:Consolas;color:black">, audiohook)</span></u><span style="font-size:10.0pt;font-family:Consolas;color:black">;</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black"> ast_slinfactory_flush(factory);</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:Consolas;color:black"> ast_slinfactory_flush(other_factory);</span><span style="font-size:10.0pt;font-family:Consolas"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"> }<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">My question is, why it is not logged as a warning. I think that warning could help to diagnose the problem in production enviroment. Am I missing some „rules“ for log levels,
or am I right?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">Thanks for any hint<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">Martin Tomec<u></u><u></u></span></p>
</font></span></div>
</div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br></blockquote></div><br></div>