<html>
 <body>
  <div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
   <table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
    <tr>
     <td>
      This is an automatically generated e-mail. To reply, visit:
      <a href="https://reviewboard.asterisk.org/r/1919/">https://reviewboard.asterisk.org/r/1919/</a>
     </td>
    </tr>
   </table>
   <br />


<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://reviewboard.asterisk.org/media/rb/images/review_request_box_top_bg.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
 <tr>
  <td>

<div>Review request for Asterisk Developers, Mark Michelson, irroot, and Matt Jordan.</div>
<div>By jrose.</div>


<p style="color: grey;"><i>Updated May 18, 2012, 2:06 p.m.</i></p>



<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Changes</h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">Splits parameter and member parsing of a queue on load/reload as suggested.

Tested it and it works as expected.</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">The bug was simply the catalyst for this patch. There was another patch that actually resolved this bug...

Here&#39;s the summary:
First, only the member setting for ringinuse is checked when determining whether to call the busy member or not.
The default for this value is now determined by the queue&#39;s ringinuse option rather than being standalone.

additions
Adds the ability to specify member ringinuse value as an argument
Adds &#39;queue set ringinuse&#39; CLI command for setting ringinuse for a member on the fly
Adds AMI command QueueRingInUse for setting ringinuse for a member on the fly via AMI

changes
&#39;ignorebusy&#39; is now called &#39;ringinuse&#39;
Legacy support for old dialplans/scripts/etc will still be matched via the QUEUE_MEMBER function argument &#39;ignorebusy&#39;, but &#39;ringinuse&#39; works as well and is the documented argument name.
Legacy support for realtime &#39;ignorebusy&#39; is in place, but at startup of the module if no instances of its use are present in the database or if a use of the &#39;ringinuse&#39; field is detected, that will be used exclusively instead.</pre>
  </td>
 </tr>
</table>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
 <tr>
  <td>
   <pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">I tested a number of configurations of ringinuse for queues and members both realtime and otherwise to make sure the setting went in correctly under each case.

There is an odd quirk though for realtime in that if all the values of a field for every entry are NULL, then it will be as though that field doesn&#39;t exist at all, so if ignorebusy is present without any deliberately entered values, ringinuse will still become the defacto field name in use.  I worked at it for a while but couldn&#39;t find a workaround that didn&#39;t involve having to change every single realtime database driver.  It&#39;s not that big of a deal since if a user isn&#39;t actually using that field at all, it&#39;s unlikely they ever intended to.</pre>
  </td>
 </tr>
</table>



<div style="margin-top: 1.5em;">
 <b style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Bugs: </b>


 <a href="https://issues.asterisk.org/jira/browse/ASTERISK-19536">ASTERISK-19536</a>


</div>


<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> (updated)</h1>
<ul style="margin-left: 3em; padding-left: 0;">

 <li>/trunk/CHANGES <span style="color: grey">(366295)</span></li>

 <li>/trunk/apps/app_queue.c <span style="color: grey">(366295)</span></li>

 <li>/trunk/configs/queues.conf.sample <span style="color: grey">(366295)</span></li>

</ul>

<p><a href="https://reviewboard.asterisk.org/r/1919/diff/" style="margin-left: 3em;">View Diff</a></p>




  </td>
 </tr>
</table>




  </div>
 </body>
</html>