[prev in list] [next in list] [prev in thread] [next in thread] 

List:       asterisk-dev
Subject:    Re: [asterisk-dev] Mixmonitor omits some frames
From:       Mark Michelson <mmichelson () digium ! com>
Date:       2016-01-29 21:55:52
Message-ID: CAL8+F6kXW6YKCoRKwxiFQi9rVjkmdE5XbUK+7dyKa5k03NmMKg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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.

On Fri, Jan 29, 2016 at 4:15 AM, Tomec Martin <tomec@ipex.cz> wrote:

> Hi all,
>
>
>
> 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.
>
> I suppose it is caused by frames flushing in audiohook.c:
>
>
>
>        *if* (*ast_test_flag(audiohook, **AST_AUDIOHOOK_TRIGGER_SYNC**)*
> && other_factory_samples && (our_factory_ms - other_factory_ms >
> AST_AUDIOHOOK_SYNC_TOLERANCE)) {
>
>              *ast_debug(1, **"Flushing audiohook %p so it remains in
> sync\n"**, audiohook)*;
>
>              ast_slinfactory_flush(factory);
>
>              ast_slinfactory_flush(other_factory);
>
>        }
>
>
>
> 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?
>
>
>
> Thanks for any hint
>
> Martin Tomec
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>

[Attachment #5 (text/html)]

<div dir="ltr">In most cases, flushing an audiohook is not a bad thing, nor is it \
something to be worried about. That&#39;s why it&#39;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">&lt;<a href="mailto:tomec@ipex.cz" \
target="_blank">tomec@ipex.cz</a>&gt;</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">  &amp;&amp; \
other_factory_samples &amp;&amp; (our_factory_ms - other_factory_ms &gt; \
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">&quot;Flushing audiohook \
%p so it remains in sync\n&quot;</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>




-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic