<div>
<style type="text/css">
td a, td a:link, td a:visited, td a:hover, td a:active {background:transparent;font-family: Arial, sans-serif;text-decoration:underline;}
td a:link {color:#369;}
td a:visited {color:#444;}
td a:hover, td a:active {color:#036;}
td a:hover {text-decoration:none;}
</style>
<font size="2" color="black" face="Arial, Helvetica, sans-serif" style="font-family: Arial, sans-serif;font-size: 13px;color:#000">

    <table align="center" border="0" cellpadding="5" cellspacing="0" width="98%">
        <tr>
            <td style="vertical-align:top">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#f2f2f2;border-top:1px solid #d9d9d9;border-bottom:1px solid #d9d9d9;color:#000;">
            <tr>
                <td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#000;padding:5px 10px">
                    <a href="http://bamboo.asterisk.org/browse/AST18-CENTOS55-I386/log" style="font-family: Arial, sans-serif; font-size: 15px; font-weight:bold; color:#000">AST18-CENTOS55-I386-107</a>
                    <span style="font-family: Arial, sans-serif; font-size: 14px;"> has been queued, but there's no agent capable of building it.</span>
                </td>
            </tr>
            </table>
            <br>

  <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-color:#ecf1f7;border-top:1px solid #bbd0e5;border-bottom:1px solid #bbd0e5;color:#036;">
        <tr>
            <td width="60%" style="font-family: Arial, sans-serif;text-align:left;font-size:16px;font-weight:bold;color:#036;padding:5px 10px">
                <a href="http://bamboo.asterisk.org/browse/AST18-CENTOS55-I386/log" style="text-decoration: none; font-family: Arial, sans-serif;text-align:left;font-size:16px;font-weight:bold;color:#036" >Code Changes</a>
            </td>
            <td width="40%" style="font-family: Arial, sans-serif;text-align:right;font-size:13px;color:#036;padding:5px 10px">
            </td>
        </tr>
   </table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr><td width="20" style="vertical-align:top;padding:10px 0 0px 10px">
                    <img src="http://bamboo.asterisk.org/images/icons/businessman.gif" width="15" height="15">
                </td>
                <td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#000;vertical-align:top;padding:10px 10px 0px 10px">
                    <a href="http://bamboo.asterisk.org/browse/author/jpeeler" style="font-family: Arial, sans-serif; font-size: 13px; font-weight:bold; color:#000">
                       jpeeler</a><br>
                    Merged revisions 302265 via svnmerge from <br/>
<a href="https://origsvn.digium.com/svn/asterisk/branches/1.6.2">https://origsvn.digium.com/svn/asterisk/branches/1.6.2</a><br/>
<br/>
........<br/>
&nbsp;&nbsp;r302265 | jpeeler | 2011-01-18 14:13:52 -0600 (Tue, 18 Jan 2011) | 27 lines<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Convert device state callbacks to ao2 objects to fix a deadlock in chan_sip.<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Lock scenario presented here:<br/>
&nbsp;&nbsp;Thread 1<br/>
&nbsp;&nbsp;&nbsp;holds ast_rdlock_contexts &amp;conlock<br/>
&nbsp;&nbsp;&nbsp;holds handle_statechange hints<br/>
&nbsp;&nbsp;&nbsp;holds handle_statechange hint<br/>
&nbsp;&nbsp;&nbsp;&nbsp;waiting for cb_extensionstate<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locked Here: chan_sip.c line 7428 (find_call)<br/>
&nbsp;&nbsp;Thread 2<br/>
&nbsp;&nbsp;&nbsp;holds handle_request_do &amp;netlock<br/>
&nbsp;&nbsp;&nbsp;holds find_call sip_pvt_ptr<br/>
&nbsp;&nbsp;&nbsp;&nbsp;waiting for ast_rdlock_contexts &amp;conlock<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Locked Here: pbx.c line 9911 (ast_rdlock_contexts)<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Chan_sip has an established locking order of locking the sip_pvt and then<br/>
&nbsp;&nbsp;getting the context lock. So the as stated by the summary, the operations in<br/>
&nbsp;&nbsp;thread 2 have been modified to no longer require the context lock.<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;(closes issue #18310)<br/>
&nbsp;&nbsp;Reported by: one47<br/>
&nbsp;&nbsp;Patches: <br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;statecbs_ao2.mk2.patch uploaded by one47 (license 23),<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;modified by me<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Review: <a href="https://reviewboard.asterisk.org/r/1072/">https://reviewboard.asterisk.org/r/1072/</a><br/>
........<br/>

                </td>
                <td width="60" style="font-family: Arial, sans-serif; font-size: 13px; ;color:#036;vertical-align:top;padding:10px 10px 0px 10px">
                     (302266)
                </td></tr>
            <tr><td width="20" style="vertical-align:top;padding:10px 0 0px 10px">
                    <img src="http://bamboo.asterisk.org/images/icons/businessman.gif" width="15" height="15">
                </td>
                <td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#000;vertical-align:top;padding:10px 10px 0px 10px">
                    <a href="http://bamboo.asterisk.org/browse/author/russell" style="font-family: Arial, sans-serif; font-size: 13px; font-weight:bold; color:#000">
                       russell</a><br>
                    Don't enable AO2_DEBUG by default if AST_DEVMODE is on.<br/>
<br/>
AO2_DEBUG is not important and is causing a false compiler warning to be<br/>
generated on my Ubuntu Natty dev box.<br/>

                </td>
                <td width="60" style="font-family: Arial, sans-serif; font-size: 13px; ;color:#036;vertical-align:top;padding:10px 10px 0px 10px">
                     (302267)
                </td></tr>
            <tr><td width="20" style="vertical-align:top;padding:10px 0 0px 10px">
                    <img src="http://bamboo.asterisk.org/images/icons/businessman.gif" width="15" height="15">
                </td>
                <td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#000;vertical-align:top;padding:10px 10px 0px 10px">
                    <a href="http://bamboo.asterisk.org/browse/author/mnicholson" style="font-family: Arial, sans-serif; font-size: 13px; font-weight:bold; color:#000">
                       mnicholson</a><br>
                    Merged revisions 302313 via svnmerge from <br/>
<a href="https://origsvn.digium.com/svn/asterisk/branches/1.6.2">https://origsvn.digium.com/svn/asterisk/branches/1.6.2</a><br/>
<br/>
................<br/>
&nbsp;&nbsp;r302313 | mnicholson | 2011-01-18 15:40:03 -0600 (Tue, 18 Jan 2011) | 11 lines<br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;Merged revisions 302311 via svnmerge from <br/>
&nbsp;&nbsp;<a href="https://origsvn.digium.com/svn/asterisk/branches/1.4">https://origsvn.digium.com/svn/asterisk/branches/1.4</a><br/>
&nbsp;&nbsp;<br/>
&nbsp;&nbsp;........<br/>
&nbsp;&nbsp;&nbsp;&nbsp;r302311 | mnicholson | 2011-01-18 15:35:03 -0600 (Tue, 18 Jan 2011) | 4 lines<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;URI encode the user part of the contact header.<br/>
&nbsp;&nbsp;&nbsp;&nbsp;<br/>
&nbsp;&nbsp;&nbsp;&nbsp;ABE-2705<br/>
&nbsp;&nbsp;........<br/>
................<br/>

                </td>
                <td width="60" style="font-family: Arial, sans-serif; font-size: 13px; ;color:#036;vertical-align:top;padding:10px 10px 0px 10px">
                     (302314)
                </td></tr>
</table><br>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr><td colspan="2" align="center" style="font-family: Arial, sans-serif;text-align:center;font-size:11px;font-weight:bold;color:#999;vertical-align:top;padding:20px">
        Email generated by <a href="http://bamboo.asterisk.org" style="font-family: Arial, sans-serif; font-size: 11px; color:#999">Atlassian Bamboo</a> - if you wish to stop receiving these emails edit your  <a href="http://bamboo.asterisk.org/profile/userNotifications.action" style="font-family: Arial, sans-serif; font-size: 11px; color:#999">user profile</a> or <a href="http://bamboo.asterisk.org/viewAdministrators.action" style="font-family: Arial, sans-serif; font-size: 11px; color:#999">notify your administrator</a>
    </td>
    </tr>
</table>

            </td>
            <td width="150" style="vertical-align:top">
    <table width="150" border="0" cellpadding="0" cellspacing="0" style="background-color:#ecf1f7;border-top:1px solid #bbd0e5;border-bottom:1px solid #bbd0e5;color:#036;">
        <tr>
            <td style="font-family: Arial, sans-serif;text-align:left;font-size:16px;font-weight:bold;color:#036;vertical-align:top;padding:5px 10px">
                Actions
            </td>
        </tr>
    </table>
    <table width="150" border="0" cellpadding="0" cellspacing="0" style="background-color:#f5f9fc;border-bottom:1px solid #bbd0e5;">
        <tr>
            <td style="font-family: Ariel, sans-serif; font-size: 13px; color:#036;vertical-align:top;padding:5px 10px;line-height:1.7">
    <a href="http://bamboo.asterisk.org/browse/AST18-CENTOS55-I386/log" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">View Online</a>
    <br>
    <a href="http://bamboo.asterisk.org/build/admin/stopPlan.action?planKey=AST18-CENTOS55-I386" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">Stop Build</a>
    <br>
            </td>
        </tr>
    </table>
            </td>
        <tr>
    </table>
</font>
</div>