<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<blockquote type="cite" class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Another thing you can do is to not set a breakpoint, but to just get a backtrace</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">of the SIP monitor thread when you have it in this state.  Then, you can see if</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">it's somewhere where it makes sense to still be holding a channel lock.</div></blockquote><div><br class="webkit-block-placeholder"></div><div>I did that and it seemed OK.</div><div><br class="webkit-block-placeholder"></div><div>Further searching in the logs, I found this:</div><div><br class="webkit-block-placeholder"></div><div><div>[Jan 31 14:39:06] ERROR[29511]: /usr/src/asterisk-1.4.17/include/asterisk/lock.h:271 __ast_pthread_mutex_destroy: channel.c line 1248 (ast_channel_free): Error: attempt to destroy locked mutex '&amp;chan-&gt;lock'.</div><div>[Jan 31 14:39:06] ERROR[29511]: /usr/src/asterisk-1.4.17/include/asterisk/lock.h:274 __ast_pthread_mutex_destroy: channel.c line 5012 (ast_channel_trylock): Error: '&amp;chan-&gt;lock' was locked here.</div><div>[Jan 31 14:39:06] ERROR[29511]: /usr/src/asterisk-1.4.17/include/asterisk/lock.h:281 __ast_pthread_mutex_destroy: channel.c line 1248 (ast_channel_free): Error destroying mutex &amp;chan-&gt;lock: Device or resource busy</div><div><br class="webkit-block-placeholder"></div><div><blockquote type="cite" class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">However, I know that there have been multiple related fixes since 1.4.17, so I</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">would encourage you to go ahead and update to the latest release candidate for</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1.4.18 and see if you still have a problem.</div></blockquote></div></div><div><br class="webkit-block-placeholder"></div><div>OK, I've upgraded and we'll see how this goes today.</div><br><div> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div>Norman Franke</div><div>Answering Service for Directors, Inc.</div><div>www.myasd.com</div></div></span></span></span> </div><br></body></html>