[Asterisk-Users] GotoIf with Authenticate
Guy C. Guckenberger
guy at gcans.com
Tue Mar 8 12:46:14 MST 2005
Quick question...Im authenticate all exten except this one(2006). If I call from ext 2006 I still have to authenticate. If I call form any other ext I have to authenticate. Any suggestions?
Thanks
extex => s,1,GotoIf($[${EXTEN} = "2006"]?3)
exten => s,2,Authenticate(731)
exten => s,3,GotoIf($[foo${ECID${CALLERIDNUM}} = foo]?4)
exten => s,4,SetCallerID(${ECID${CALLERIDNUM}})
exten => s,5,Goto(6)
exten => s,6,GotoIf($[foo${OUTCID_${ARG1}} = foo]?6)
exten => s,7,SetCallerID(${OUTCID_${ARG1}})
exten => s,8,SetVar(length=${LEN(${DIAL_OUT_${ARG1}})})
exten => s,9,Dial(${OUT_${ARG1}}/w${ARG2:${length}})
exten => s,10,Congestion
exten => s,108,Macro(outisbusy)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050308/26df53c3/attachment.htm
More information about the asterisk-users
mailing list