<div dir="ltr">Thanks Jim.  Searched through the change log for &quot;deadlock&quot; but nothing really stuck out.  I&#39;ll upgrade to 11.3 and see if that makes a difference.</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Apr 4, 2013 at 10:59 AM, Jim Lucas <span dir="ltr">&lt;<a href="mailto:lists@cmsws.com" target="_blank">lists@cmsws.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 04/03/2013 08:15 PM, Duane Larson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So it just happened again on both machines at the same time and I was<br>
running debug on both servers.  I am running OpenSIPS and load balancing<br>
between both servers so I am guessing when the invite was sent to the first<br>
server it was frozen for some reason and then OpenSIPS sent the invite to<br>
the second server and that server was also frozen/deadlocked because of the<br>
SIP message.  I noticed on both servers the last log that was posted with<br>
Asterisk deadlocked was the following<br>
<br>
<br>
Asterisk version 11.0.1<br>
[Apr  3 21:39:42] DEBUG[12984] res_timing_timerfd.c: Expected to<br>
acknowledge 1 ticks but got 11805 instead<br>
<br>
Asterisk version 11.2.1<br>
[Apr  3 21:39:50] DEBUG[1854] res_timing_timerfd.c: Expected to acknowledge<br>
1 ticks but got 12423 instead<br>
<br>
<br>
In my last email I posted the debug from the Asterisk server with 11.0.1<br>
version of code.  Here is a post of the debug for the Asterisk server with<br>
version 11.2.1<br>
<br>
<a href="http://pastebin.com/mbjSSAWM" target="_blank">http://pastebin.com/mbjSSAWM</a><br>
<br>
<br>
This has to be a bug right?  I am thinking of opening an issue on the<br>
Asterisk JIRA system<br>
<br>
</blockquote>
<br></div>
A number of deadlocks were fixed in the current release of 11.3.  Please read the change log to see if any fit your issue.<br>
<br>
<a href="http://downloads.asterisk.org/pub/telephony/asterisk/ChangeLog-11-current" target="_blank">http://downloads.asterisk.org/<u></u>pub/telephony/asterisk/<u></u>ChangeLog-11-current</a><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<br>
<br>
On Wed, Apr 3, 2013 at 4:45 PM, Duane Larson &lt;<a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It just happened again on the 11.0.1 box and I was able to grab a debug.<br>
  I am hoping someone can tell me if this is a bug or something wrong with<br>
my config.<br>
<br>
gdb asterisk-bin/sbin/asterisk 29048<br>
<br>
Go here for the debug output<br>
<a href="http://pastebin.com/DGXx0BSk" target="_blank">http://pastebin.com/DGXx0BSk</a><br>
<br>
<br>
On Tue, Apr 2, 2013 at 7:42 PM, Duane Larson &lt;<a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a>&gt;wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am currently running two different versions of Asterisk<br>
<br>
11.0.1<br>
11.2.1<br>
<br>
I have noticed the bug occur on both servers.<br>
<br>
The issue is that when I try to dial a phone number sometimes the call<br>
will never go out.  I will check the Asterisk server with NGREP and see<br>
that the SIP messages are making it to Asterisk but Asterisk isn&#39;t<br>
responding.<br>
<br>
I do the following command &quot;netstat -nap |grep 5060&quot; and see that<br>
Asterisk has a lot under the &quot;Recv-Q&quot; column.<br>
<br>
It usually takes about 10 minutes before Asterisk becomes responsive<br>
again or else before 10 minutes is up I could restart Asterisk and<br>
everything will be back to normal.<br>
<br>
I see in the message logs the following errors<br>
<br>
On the 11.0.1 Asterisk server<br>
WARNING[23723][C-00000010] chan_sip.c: Unable to cancel schedule ID<br>
11473.  This is probably a bug (chan_sip.c: update_provisional_keepalive,<br>
line 4406).<br>
<br>
On the 11.2.1 Asterisk server<br>
WARNING[3493][C-0000001f] chan_sip.c: Unable to cancel schedule ID 30810.<br>
  This is probably a bug (chan_sip.c: update_provisional_keepalive, line<br>
4683).<br>
<br>
<br>
When I look in chan_sip.c on both servers I see that they are the same<br>
line of code<br>
<br>
AST_SCHED_DEL_UNREF(sched, pvt-&gt;provisional_keepalive_<u></u>sched_id,<br>
dialog_unref(pvt, &quot;when you delete the provisional_keepalive_sched_<u></u>id, you<br>
should dec the refcount for the stored dialog ptr&quot;));<br>
<br>
<br>
<br>
What could be causing this because it seems to happen at least once a day.<br>
<br>
</blockquote>
<br>
<br>
<br>
--<br>
--<br>
*--*--*--*--*--*<br>
Duane<br>
*--*--*--*--*--*<br>
--<br>
<br>
</blockquote>
<br>
<br>
<br>
<br>
<br>
--<br></div></div>
______________________________<u></u>______________________________<u></u>_________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
                <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
    <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/<u></u>mailman/listinfo/asterisk-<u></u>users</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Jim Lucas<br>
<br>
<a href="http://www.cmsws.com/" target="_blank">http://www.cmsws.com/</a><br>
<a href="http://www.cmsws.com/examples/" target="_blank">http://www.cmsws.com/examples/</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--
</div>