[asterisk-users] GotoIf Problem

2008-07-18 Thread Doug Lytle
Everybody, I have a fall though context that, among other things, tests to see if someone it trying to pick up a non-existent parked call (Defined from 90 to 99). I have the following: [not-in-service] exten = _X.,1,Wait(1) exten = _X.,n,ResetCDR() ;

Re: [asterisk-users] GotoIf Problem

2008-07-18 Thread Eric ManxPower Wieling
How about: exten = _9X,n,Goto(not-parked,s,1) Doug Lytle wrote: Everybody, I have a fall though context that, among other things, tests to see if someone it trying to pick up a non-existent parked call (Defined from 90 to 99). I have the following: [not-in-service] exten =

Re: [asterisk-users] GotoIf Problem

2008-07-18 Thread Richard Lyman
Doug Lytle wrote: *snipped exten = _X.,n,GotoIf($[${EXTEN:1} = 9]?not-parked,s,1) ___ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net

Re: [asterisk-users] GotoIf Problem

2008-07-18 Thread Doug Lytle
Richard Lyman wrote: Doug Lytle wrote: *snipped exten = _X.,n,GotoIf($[${EXTEN:1} = 9]?not-parked,s,1) Close: exten = _X.,n,GotoIf($[${EXTEN:0:1} = 9]?not-parked,s,1) Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety,

Re: [asterisk-users] GotoIf Problem

2008-07-18 Thread Dave Fullerton
Doug Lytle wrote: Everybody, I have a fall though context that, among other things, tests to see if someone it trying to pick up a non-existent parked call (Defined from 90 to 99). I have the following: [not-in-service] exten = _X.,1,Wait(1) exten = _X.,n,ResetCDR() ;

Re: [asterisk-users] GotoIf Problem

2008-07-18 Thread Doug Lytle
Eric ManxPower Wieling wrote: How about: exten = _9X,n,Goto(not-parked,s,1) This works quite well, thank you! Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety.

SV: [Asterisk-Users] GotoIf problem

2005-03-12 Thread Thorben Jensen
-Oprindelig meddelelse- Fra: [EMAIL PROTECTED] [mailto:asterisk-users- [EMAIL PROTECTED] På vegne af kurt x Sendt: 9. marts 2005 20:57 Til: Chris Wade Cc: Asterisk Users Mailing List - Non-Commercial Discussion Emne: Re: [Asterisk-Users] GotoIf problem I,ve gotten the GotoIf

Re: [Asterisk-Users] GotoIf problem

2005-03-09 Thread kurt x
Removing the quotes and eliminating s,3,gotoif did work but its not what I am looking for. What I want to do is the following: If a ani that comes in has 10 digits I want to change the ${CALLERIDNUM} to unknown. If the ani is 10 digits just goto voicemail. When I set up my [vmail] to look like

Re: [Asterisk-Users] GotoIf problem

2005-03-09 Thread Chris Wade
kurt x wrote: [globals] Setvar(DIGITS=10) Try this instead... [globals] DIGITS=10 -Chris ___ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit:

Re: [Asterisk-Users] GotoIf problem

2005-03-09 Thread kurt x
To me it looks like the $LEN function is not working. When I do verbose start to * I see that it walks right through every step whether or not the ani is 10 digits or something else. Would it be better to write an AGI script? Kurt On Wed, 09 Mar 2005 11:41:50 -0600, Chris Wade [EMAIL

Re: [Asterisk-Users] GotoIf problem

2005-03-09 Thread Chris Wade
kurt x wrote: To me it looks like the $LEN function is not working. When I do verbose start to * I see that it walks right through every step whether or not the ani is 10 digits or something else. Would it be better to write an AGI script? Kurt I use LEN quite a lot, works perfectly. Go back

Re: [Asterisk-Users] GotoIf problem

2005-03-09 Thread Chris Wade
kurt x wrote: [globals] Setvar(DIGITS=10) [vmail] exten = s,1,Answer exten = s,2,NoOp(${ext}) exten = s,3,GotoIf($[${LEN(${CALLERIDNUM})} != $DIGITS}]?4:5) exten = s,4,Setvar(${CALLERIDNUM}=Unknown) exten = s,5,Voicemail(u${ext}) exten = s,6,Hangup Oh, and it should be exten =

Re: [Asterisk-Users] GotoIf problem

2005-03-09 Thread kurt x
I,ve gotten the GotoIf statement working now. I hard coded the value 10 in place of the ${DIGITS} varible. Worked like a charm. Thanks to everyone who helped. Kurt On Wed, 09 Mar 2005 12:07:51 -0600, Chris Wade [EMAIL PROTECTED] wrote: kurt x wrote: [globals] Setvar(DIGITS=10)

[Asterisk-Users] GotoIf problem

2005-03-08 Thread kurt x
I am trying to test how the GotoIf and $LEN functions work but am not succeeding is this venture. When I dial and access voicemail with an ani of 3000 the gotoif statement does not push the call to s|6. Its goes through each line( 1,2,3,4,5,6,7) . In additon when I dial with a 10 digit ani the

Re: [Asterisk-Users] GotoIf problem

2005-03-08 Thread Dennis Webb
Can you post your dialplan for that extension. Also, NoOp works great for debugging these issues. On Tue, 2005-03-08 at 12:29, kurt x wrote: I am trying to test how the GotoIf and $LEN functions work but am not succeeding is this venture. When I dial and access voicemail with an ani of

Re: [Asterisk-Users] GotoIf problem

2005-03-08 Thread kurt x
Will this do. [general] static=yes writeprotect=no [globals] ${ext}=0 SetGlobalVar(DIGITS=4) [attendant] ;Main welcome message exten = xxx2400,1,Answer() exten = xxx2400,2,Wait(1) exten = xxx2400,3,Background(welcome) exten = xxx2400,4,ResponseTimeout,15 ;Used for wrong button

Re: [Asterisk-Users] GotoIf problem

2005-03-08 Thread Howard Lowndes
On Wed, 2005-03-09 at 05:29, kurt x wrote: I am trying to test how the GotoIf and $LEN functions work but am not succeeding is this venture. When I dial and access voicemail with an ani of 3000 the gotoif statement does not push the call to s|6. Its goes through each line( 1,2,3,4,5,6,7) .