Hi list:<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; I&#39;m having the next problem, it appear that the application ChanIsAvail is not working on Asterisk 1.4.5 always return me 0 in AVAILSTATUS.<br>I add my dialplan and the output to the cli.<br><br>THanks.
<br><br><br>&nbsp;&nbsp;&nbsp; In the example i&#39;m dialing from extension SIP/112 <br><br><br>My DialPlan Secction:<br><br>[macro-callonlyiffree]<br>exten =&gt; s,1,ChanIsAvail(${ARG1}|s)<br>exten =&gt; s,n,NoOp(${AVAILCHAN})<br>exten =&gt; s,n,NoOp(${AVAILORIGCHAN})
<br>exten =&gt; s,n,NoOp(${AVAILSTATUS})<br>exten =&gt; s,n,GoToIf($[${AVAILSTATUS} &lt; 1]?autoanswer:fail)<br>exten =&gt; s,n,NoOp()<br>exten =&gt; s,n(autoanswer),Dial(${ARG1}||)<br>exten =&gt; s,102(fail),Hangup<br><br>
[pruebas]<br>exten =&gt; *99,1,Dial(Local/111@inpuerta&amp;Local/112@inpuerta||r)<br><br>[inpuerta]<br>exten =&gt; _1XX,1,Macro(callonlyiffree,SIP/${EXTEN})<br><br><br>The Log:<br><br>&nbsp;&nbsp;&nbsp; -- Executing [*99@home:1] Dial(&quot;SIP/112-08236be8&quot;, &quot;
Local/111@inpuerta&amp;Local/112@inpuerta||r&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Called 111@inpuerta<br>&nbsp;&nbsp;&nbsp; -- Called 112@inpuerta<br>&nbsp;&nbsp;&nbsp; -- Executing [111@inpuerta:1] Macro(&quot;Local/111@inpuerta-b7a9,2&quot;, &quot;callonlyiffree|SIP/111&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-callonlyiffree:1] ChanIsAvail(&quot;Local/111@inpuerta-b7a9,2&quot;, &quot;SIP/111|s&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [112@inpuerta:1] Macro(&quot;Local/112@inpuerta-cfe3,2&quot;, &quot;callonlyiffree|SIP/112&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-callonlyiffree:1] ChanIsAvail(&quot;Local/112@inpuerta-cfe3,2&quot;, &quot;SIP/112|s&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-callonlyiffree:2] NoOp(&quot;Local/111@inpuerta-b7a9,2&quot;, &quot;SIP/111-081f7d18&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-callonlyiffree:3] NoOp(&quot;Local/111@inpuerta-b7a9,2&quot;, &quot;SIP/111&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-callonlyiffree:4] NoOp(&quot;Local/111@inpuerta-b7a9,2&quot;, &quot;0&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-callonlyiffree:5] GotoIf(&quot;Local/111@inpuerta-b7a9,2&quot;, &quot;1?autoanswer:fail&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-callonlyiffree,s,7)<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-callonlyiffree
:7] Dial(&quot;Local/111@inpuerta-b7a9,2&quot;, &quot;SIP/111||&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Called 111<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-callonlyiffree:2] NoOp(&quot;Local/112@inpuerta-cfe3,2&quot;, &quot;SIP/112-0822a4b8&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-callonlyiffree:3] NoOp(&quot;Local/112@inpuerta-cfe3,2&quot;, &quot;SIP/112&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-callonlyiffree:4] NoOp(&quot;Local/112@inpuerta-cfe3,2&quot;, &quot;0&quot;) in new stack
<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-callonlyiffree:5] GotoIf(&quot;Local/112@inpuerta-cfe3,2&quot;, &quot;1?autoanswer:fail&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Goto (macro-callonlyiffree,s,7)<br>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-callonlyiffree
:7] Dial(&quot;Local/112@inpuerta-cfe3,2&quot;, &quot;SIP/112||&quot;) in new stack<br>&nbsp;&nbsp;&nbsp; -- Called 112<br>&nbsp;&nbsp;&nbsp; -- SIP/111-08342ec0 is ringing<br>&nbsp;&nbsp;&nbsp; -- Local/111@inpuerta-b7a9,1 is ringing<br>&nbsp;&nbsp;&nbsp; -- SIP/112-08346e28 is ringing
<br>&nbsp;&nbsp;&nbsp; -- Local/112@inpuerta-cfe3,1 is ringing<br><br><br><br><br clear="all"><br>-- <br>Alvaro I. Parres Peredo<br> Director de IT<br> Grupo Xmarts SA de CV<br> Tel: +52 (33) 35 63 6261 Ext. 112<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;01 800&nbsp;&nbsp;087 2260 
<br> Cel: +52 (33) 33 68 1087<br> <a href="mailto:alvaro.parres@xmarts.com.mx">alvaro.parres@xmarts.com.mx</a>