[Asterisk-Users] GotoIf with Authenticate

John Fullington fje at fullnet.com
Tue Mar 8 12:55:26 MST 2005


Change extex in the first line to exten
 
 -----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Guy C.
Guckenberger
Sent: Tuesday, March 08, 2005 2:46 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] GotoIf with Authenticate



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 --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3548 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050308/47d60d21/winmail.bin


More information about the asterisk-users mailing list