Hi list:<br> <br> I'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> In the example i'm dialing from extension SIP/112 <br><br><br>My DialPlan Secction:<br><br>[macro-callonlyiffree]<br>exten => s,1,ChanIsAvail(${ARG1}|s)<br>exten => s,n,NoOp(${AVAILCHAN})<br>exten => s,n,NoOp(${AVAILORIGCHAN})
<br>exten => s,n,NoOp(${AVAILSTATUS})<br>exten => s,n,GoToIf($[${AVAILSTATUS} < 1]?autoanswer:fail)<br>exten => s,n,NoOp()<br>exten => s,n(autoanswer),Dial(${ARG1}||)<br>exten => s,102(fail),Hangup<br><br>
[pruebas]<br>exten => *99,1,Dial(Local/111@inpuerta&Local/112@inpuerta||r)<br><br>[inpuerta]<br>exten => _1XX,1,Macro(callonlyiffree,SIP/${EXTEN})<br><br><br>The Log:<br><br> -- Executing [*99@home:1] Dial("SIP/112-08236be8", "
Local/111@inpuerta&Local/112@inpuerta||r") in new stack<br> -- Called 111@inpuerta<br> -- Called 112@inpuerta<br> -- Executing [111@inpuerta:1] Macro("Local/111@inpuerta-b7a9,2", "callonlyiffree|SIP/111") in new stack
<br> -- Executing [s@macro-callonlyiffree:1] ChanIsAvail("Local/111@inpuerta-b7a9,2", "SIP/111|s") in new stack<br> -- Executing [112@inpuerta:1] Macro("Local/112@inpuerta-cfe3,2", "callonlyiffree|SIP/112") in new stack
<br> -- Executing [s@macro-callonlyiffree:1] ChanIsAvail("Local/112@inpuerta-cfe3,2", "SIP/112|s") in new stack<br> -- Executing [s@macro-callonlyiffree:2] NoOp("Local/111@inpuerta-b7a9,2", "SIP/111-081f7d18") in new stack
<br> -- Executing [s@macro-callonlyiffree:3] NoOp("Local/111@inpuerta-b7a9,2", "SIP/111") in new stack<br> -- Executing [s@macro-callonlyiffree:4] NoOp("Local/111@inpuerta-b7a9,2", "0") in new stack
<br> -- Executing [s@macro-callonlyiffree:5] GotoIf("Local/111@inpuerta-b7a9,2", "1?autoanswer:fail") in new stack<br> -- Goto (macro-callonlyiffree,s,7)<br> -- Executing [s@macro-callonlyiffree
:7] Dial("Local/111@inpuerta-b7a9,2", "SIP/111||") in new stack<br> -- Called 111<br> -- Executing [s@macro-callonlyiffree:2] NoOp("Local/112@inpuerta-cfe3,2", "SIP/112-0822a4b8") in new stack
<br> -- Executing [s@macro-callonlyiffree:3] NoOp("Local/112@inpuerta-cfe3,2", "SIP/112") in new stack<br> -- Executing [s@macro-callonlyiffree:4] NoOp("Local/112@inpuerta-cfe3,2", "0") in new stack
<br> -- Executing [s@macro-callonlyiffree:5] GotoIf("Local/112@inpuerta-cfe3,2", "1?autoanswer:fail") in new stack<br> -- Goto (macro-callonlyiffree,s,7)<br> -- Executing [s@macro-callonlyiffree
:7] Dial("Local/112@inpuerta-cfe3,2", "SIP/112||") in new stack<br> -- Called 112<br> -- SIP/111-08342ec0 is ringing<br> -- Local/111@inpuerta-b7a9,1 is ringing<br> -- SIP/112-08346e28 is ringing
<br> -- 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> 01 800 087 2260
<br> Cel: +52 (33) 33 68 1087<br> <a href="mailto:alvaro.parres@xmarts.com.mx">alvaro.parres@xmarts.com.mx</a>