<div>
<style type="text/css">
.successful a, .successful a:visited, .successful a:link, .successful a:hover,.successful  a:active {color:#393}
.failed a, .failed a:visited, .failed a:link, .failed a:hover,.failed  a:active {color:#d62829}
.notexecuted a, .notexecuted a:visited, .notexecuted a:link, .notexecuted a:hover,.notexecuted  a:active {color:#ffcc66}
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:#e4f5e3;border-top:1px solid #b4e2b4;border-bottom:1px solid #b4e2b4;color:#393;">
                        <tr>
                                <td width="20" style="vertical-align:top;padding:5px 0 5px 10px">
                                        <img src="http://bamboo.asterisk.org/images/iconsv3/plan_successful_16.png" width="15" height="15">
                                </td>
                                <td width="100%" style="font-family: Arial, sans-serif; font-size: 13px; color:#393;padding:5px 10px">
      <a href="http://bamboo.asterisk.org/browse/AST18/" style="font-family: Arial, sans-serif; font-size: 15px; font-weight:bold; color:#393">Asterisk - 1.8</a> &gt;
      <a href="http://bamboo.asterisk.org/browse/AST18-SNOWLEOPARD/" style="font-family: Arial, sans-serif; font-size: 15px; font-weight:bold; color:#393">Mac OS X Snow Leopard (10.6)</a> &gt;
      <a href="http://bamboo.asterisk.org/browse/AST18-SNOWLEOPARD-332/" style="font-family: Arial, sans-serif; font-size: 15px; font-weight:bold; color:#393">#332</a>
                                        <span class="successful" style="font-family: Arial, sans-serif; font-size: 14px;"> was successful.</span>
                    <span class="successful" style="font-family: Arial, sans-serif; font-size: 13px;">
                    <br/>    This build occurred because it is a dependant of <a href="http://bamboo.asterisk.org/browse/AST18-LUCID-885">AST18-LUCID-885</a>.
                          <br/><strong>64</strong> tests in total.
                    </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-SNOWLEOPARD-332/commit/" 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">
                <a href="http://bamboo.asterisk.org/browse/AST18-SNOWLEOPARD-332/commit/" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">View all 6 code changes</a><img src="http://bamboo.asterisk.org/images/icons/more.gif" width="15" height="15" style="vertical-align:middle;padding:2px">
            </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/user/twilson" style="font-family: Arial, sans-serif; font-size: 13px; font-weight:bold; color:#000">
                           Terry Wilson</a><br>
                        Simplify queue membercount code<br/>
<br/>
Despite an ominous sounding comment stating that membercount was for &quot;logged<br/>
in&quot; members only and thus we couldn't use ao2_container_count(), I could not<br/>
find a single place in the code where that seemed to be accurate. The only time<br/>
we decremented membercount was when we were marking something dead or actually<br/>
removing it. The only places we incremented it were either after ao2_link(), or<br/>
trying to correct for having set it to 0 during a reload. In every case where<br/>
we were correcting the value, it seemed that we were trying to make the count<br/>
actually match what ao2_container_count() would return. The only place I could<br/>
find where we made a determination about something being &quot;logged in&quot; or not, we<br/>
didn't trust the membercount, but instead looked at devicestate, paused, etc.<br/>
<br/>
This patch removes membercount, replaces its use with ao2_container_count, and<br/>
manually adds the results of ao2_container_count to a &quot;membercount&quot; field for<br/>
ast_data queue query results. This patch also would fix AST-676, but as it is<br/>
slightly riskier than the previously committed fix, the two commits have been<br/>
made separately.<br/>
<br/>
Reivew: <a href="https://reviewboard.asterisk.org/r/1541/">https://reviewboard.asterisk.org/r/1541/</a><br/>

                    </td>
                    <td width="60" style="font-family: Arial, sans-serif; font-size: 13px; ;color:#036;vertical-align:top;padding:10px 10px 0px 10px">
                         (342383)
                    </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/user/twilson" style="font-family: Arial, sans-serif; font-size: 13px; font-weight:bold; color:#000">
                           Terry Wilson</a><br>
                        Use int for storing ao2_container_count instad of size_t<br/>
<br/>
AST-676<br/>

                    </td>
                    <td width="60" style="font-family: Arial, sans-serif; font-size: 13px; ;color:#036;vertical-align:top;padding:10px 10px 0px 10px">
                         (342435)
                    </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/rmudgett" style="font-family: Arial, sans-serif; font-size: 13px; font-weight:bold; color:#000">
                           rmudgett</a><br>
                        Check fopen return value for ao2 reference debug output.<br/>
<br/>
Reported by: wdoekes<br/>
Patched by: wdoekes<br/>
<br/>
Review: <a href="https://reviewboard.asterisk.org/r/1539/">https://reviewboard.asterisk.org/r/1539/</a><br/>

                    </td>
                    <td width="60" style="font-family: Arial, sans-serif; font-size: 13px; ;color:#036;vertical-align:top;padding:10px 10px 0px 10px">
                         (342487)
                    </td></tr>
            <tr><td colspan="3">
                <br/><a href="http://bamboo.asterisk.org/browse/AST18-SNOWLEOPARD-332/commit" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">3 more changes...</a>
            </td></tr>
    </table><br>

    </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-SNOWLEOPARD-332" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">View Online</a>
    <br>
    <a href="http://bamboo.asterisk.org/browse/AST18-SNOWLEOPARD-332?commentMode=true" style="font-family: Arial, sans-serif; font-size: 13px; color:#036">Add Comments</a>
    <br>
            </td>
        </tr>
    </table>
    </td>
</tr>
<tr>
    <td>
<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>
</tr>
</table>
</font>
</div>