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
Change extex in the first line to exten -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Guy C. Guckenberger Sent: Tuesday, March 08, 2005 2:46 PM To: asterisk-users@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
That is just a typeO in the email: Just to be clear...Im trying to pull to extension off the IP phone and evaluate it against 2006. Is EXTEN the correct variable? exten => 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) ________________________________ From: asterisk-users-bounces@lists.digium.com on behalf of John Fullington Sent: Tue 3/8/2005 2:55 PM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: RE: [Asterisk-Users] GotoIf with Authenticate Change extex in the first line to exten -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com]On Behalf Of Guy C. Guckenberger Sent: Tuesday, March 08, 2005 2:46 PM To: asterisk-users@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 -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050308/e2b4094a/attachment.htm