[asterisk-users] Problems with ChanIsAvail always return status 0
Alvaro Parres
aparres at gmail.com
Mon Jun 25 16:41:48 CDT 2007
Hi list:
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.
I add my dialplan and the output to the cli.
THanks.
In the example i'm dialing from extension SIP/112
My DialPlan Secction:
[macro-callonlyiffree]
exten => s,1,ChanIsAvail(${ARG1}|s)
exten => s,n,NoOp(${AVAILCHAN})
exten => s,n,NoOp(${AVAILORIGCHAN})
exten => s,n,NoOp(${AVAILSTATUS})
exten => s,n,GoToIf($[${AVAILSTATUS} < 1]?autoanswer:fail)
exten => s,n,NoOp()
exten => s,n(autoanswer),Dial(${ARG1}||)
exten => s,102(fail),Hangup
[pruebas]
exten => *99,1,Dial(Local/111 at inpuerta&Local/112 at inpuerta||r)
[inpuerta]
exten => _1XX,1,Macro(callonlyiffree,SIP/${EXTEN})
The Log:
-- Executing [*99 at home:1] Dial("SIP/112-08236be8",
"Local/111 at inpuerta&Local/112 at inpuerta||r")
in new stack
-- Called 111 at inpuerta
-- Called 112 at inpuerta
-- Executing [111 at inpuerta:1] Macro("Local/111 at inpuerta-b7a9,2",
"callonlyiffree|SIP/111") in new stack
-- Executing [s at macro-callonlyiffree:1] ChanIsAvail("
Local/111 at inpuerta-b7a9,2", "SIP/111|s") in new stack
-- Executing [112 at inpuerta:1] Macro("Local/112 at inpuerta-cfe3,2",
"callonlyiffree|SIP/112") in new stack
-- Executing [s at macro-callonlyiffree:1] ChanIsAvail("
Local/112 at inpuerta-cfe3,2", "SIP/112|s") in new stack
-- Executing [s at macro-callonlyiffree:2] NoOp("Local/111 at inpuerta-b7a9,2",
"SIP/111-081f7d18") in new stack
-- Executing [s at macro-callonlyiffree:3] NoOp("Local/111 at inpuerta-b7a9,2",
"SIP/111") in new stack
-- Executing [s at macro-callonlyiffree:4] NoOp("Local/111 at inpuerta-b7a9,2",
"0") in new stack
-- Executing [s at macro-callonlyiffree:5] GotoIf("Local/111 at inpuerta-b7a9,2",
"1?autoanswer:fail") in new stack
-- Goto (macro-callonlyiffree,s,7)
-- Executing [s at macro-callonlyiffree:7] Dial("Local/111 at inpuerta-b7a9,2",
"SIP/111||") in new stack
-- Called 111
-- Executing [s at macro-callonlyiffree:2] NoOp("Local/112 at inpuerta-cfe3,2",
"SIP/112-0822a4b8") in new stack
-- Executing [s at macro-callonlyiffree:3] NoOp("Local/112 at inpuerta-cfe3,2",
"SIP/112") in new stack
-- Executing [s at macro-callonlyiffree:4] NoOp("Local/112 at inpuerta-cfe3,2",
"0") in new stack
-- Executing [s at macro-callonlyiffree:5] GotoIf("Local/112 at inpuerta-cfe3,2",
"1?autoanswer:fail") in new stack
-- Goto (macro-callonlyiffree,s,7)
-- Executing [s at macro-callonlyiffree:7] Dial("Local/112 at inpuerta-cfe3,2",
"SIP/112||") in new stack
-- Called 112
-- SIP/111-08342ec0 is ringing
-- Local/111 at inpuerta-b7a9,1 is ringing
-- SIP/112-08346e28 is ringing
-- Local/112 at inpuerta-cfe3,1 is ringing
--
Alvaro I. Parres Peredo
Director de IT
Grupo Xmarts SA de CV
Tel: +52 (33) 35 63 6261 Ext. 112
01 800 087 2260
Cel: +52 (33) 33 68 1087
alvaro.parres at xmarts.com.mx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070625/b4f09413/attachment.htm
More information about the asterisk-users
mailing list