<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks for the review and the issue already pointed out. It brought up additional issues so I have attached two new patches for 1.4 and trunk. I made the following comment in the ticket: https://issues.asterisk.org/view.php?id=15057<br><br>TICKET COMMENT:<br><br>There were some issues pointed out in the review which uncovered some
more in further testing, so attaching two new patches that should now
exhibit the following behavior:<br>
<br>
BUSY &amp; ONHOLD =&gt; BUSY<br>
INUSE &amp; ONHOLD =&gt; INUSE<br>
ONHOLD &amp; RINGING =&gt; RINGINUSE<br>
<br>
this opens up a question, should the last return RINGINUSE or is a new
state required to return RINGONHOLD? (and if we have
ONHOLD&amp;RINGING&amp;INUSE do we return all three?)<br>
<br>
My opinion would be RINGINUSE is appropriate...        <br><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div class="plainMail"><br><br>Message: 1<br>Date: Tue, 26 May 2009 17:55:57 -0000<br>From: "David Vossel" &lt;<a ymailto="mailto:dvossel@digium.com" href="/mc/compose?to=dvossel@digium.com">dvossel@digium.com</a>&gt;<br>Subject: [asterisk-dev] [Code Review] hints with 2+ devices that<br>&nbsp;&nbsp;&nbsp; include&nbsp;&nbsp;&nbsp; ONHOLD<br>To: "David Vossel" &lt;<a ymailto="mailto:dvossel@digium.com" href="/mc/compose?to=dvossel@digium.com">dvossel@digium.com</a>&gt;,&nbsp;&nbsp;&nbsp; "Asterisk Developers"<br>&nbsp;&nbsp;&nbsp; &lt;<a ymailto="mailto:asterisk-dev@lists.digium.com" href="/mc/compose?to=asterisk-dev@lists.digium.com">asterisk-dev@lists.digium.com</a>&gt;<br>Message-ID: &lt;<a ymailto="mailto:20090526175557.7403.22626@hotblack.digium.internal"
 href="/mc/compose?to=20090526175557.7403.22626@hotblack.digium.internal">20090526175557.7403.22626@hotblack.digium.internal</a>&gt;<br>Content-Type: text/plain; charset="utf-8"<br><br><br>-----------------------------------------------------------<br>This is an automatically generated e-mail. To reply, visit:<br><a href="http://reviewboard.digium.com/r/254/" target="_blank">http://reviewboard.digium.com/r/254/</a><br>-----------------------------------------------------------<br><br>Review request for Asterisk Developers.<br><br><br>Summary<br>-------<br><br>This is a community patch I cleaned up and tested.&nbsp; Below is the reporter's, p_lidheimer, description of the issue pulled directly from issue #15057.<br><br>----------------------------<br>If you have a hint with two (or more) devices or a device and a custom devstate that includes ONHOLD, you get unexpected results. Two examples:<br><br>exten =&gt; 222,hint,SIP/222&amp;SIP/211<br>exten =&gt;
 333,hint,Custom:DND333&amp;SIP/333<br><br>The following results are inconsistent as they should all return ONHOLD:<br><br>ONHOLD &amp; IDLE = IDLE<br>ONHOLD &amp; UNAVAILABLE =&gt; UNAVAILABLE<br>ONHOLD &amp; UNKNOWN =&gt; IDLE<br>ONHOLD &amp; INVALID =&gt; IDLE<br><br>Per Russell Bryant's response on the mailing list:<br><br>"I would agree that this is a bug. I would expect that combination of<br>states to result in an OnHold state."<br><br><br>This addresses bug 15057.<br>&nbsp; &nbsp; <a href="https://issues.asterisk.org/view.php?id=15057" target="_blank">https://issues.asterisk.org/view.php?id=15057</a><br><br><br>Diffs<br>-----<br><br>&nbsp; /trunk/include/asterisk/devicestate.h 196415 <br>&nbsp; /trunk/main/devicestate.c 196415 <br><br>Diff: <a href="http://reviewboard.digium.com/r/254/diff" target="_blank">http://reviewboard.digium.com/r/254/diff</a><br><br><br>Testing<br>-------<br><br>I have tested the patch and can verify the situations in the
 description all result in ONHOLD.<br><br><br>Thanks,<br><br>David<br><br><br><br><br>*****************************<br></div></blockquote></td></tr></table><br>