Re: [asterisk-users] GotoIf CALLERID(num)

2010-12-30 Thread Doug Lytle
Joseph wrote: I see my problem, caller ID is coming in as 7804715665 and I was blocking 4715665 I need to enter area code first, or can I use "*" as first digits? It would be best just to match against the whole number. Doug -- Ben Franklin quote: "Those who would give up Essential Liberty

Re: [asterisk-users] GotoIf CALLERID(num)

2010-12-29 Thread Joseph
I've tried all posibilities with quotes without qoutes :-/ Here is the line output: -- Goto (office-open,s,1) -- Executing [...@office-open:1] Wait("SIP/pstn-5665-006e", "1") in new stack -- Executing [...@office-open:2] Answer("SIP/pstn-5665-006e", "") in new stack -- Executing [...@o

Re: [asterisk-users] GotoIf CALLERID(num)

2010-12-29 Thread Chad Wallace
On Wed, 29 Dec 2010 16:41:17 -0700 Joseph wrote: > No, it is not a space issue, I tried: > > exten => s,3,GotoIf($["${CALLERID(num)}"="4715665"]?4:6) > > but it still goes to priority "6" Have you verified the value of CALLERID(num) by passing it to Verbose? Could it be that there are blanks?

Re: [asterisk-users] GotoIf CALLERID(num)

2010-12-29 Thread Doug Lytle
Joseph wrote: ; for Caller ID is 471-5665, always signal congestion: exten => s,3,GotoIf($["${CALLERID(num)}" = "4715665"]?4:6) Yours on the top, mine on the bottom. GotoIf($["${CALLERID(num)}" = "4715665"]?4:6) GotoIf($["${CALLERID(num)}" = "4715665" ]?4:6) If that wasn't it, then lets see

Re: [asterisk-users] GotoIf CALLERID(num)

2010-12-29 Thread Adolphe Cher-aime
I don't think you need the quotes. Try without them Adolphe Cher-aime From my Iphone On Dec 29, 2010, at 6:41 PM, Joseph wrote: No, it is not a space issue, I tried: exten => s,3,GotoIf($["${CALLERID(num)}"="4715665"]?4:6) but it still goes to priority "6" -- Joseph On 12/29/10 16:23, J

Re: [asterisk-users] GotoIf CALLERID(num)

2010-12-29 Thread Joseph
No, it is not a space issue, I tried: exten => s,3,GotoIf($["${CALLERID(num)}"="4715665"]?4:6) but it still goes to priority "6" -- Joseph On 12/29/10 16:23, Joel Maslak wrote: Get rid of the spaces before and after the equal sign. On Wed, Dec 29, 2010 at 4:15 PM, Joseph wrote: I'm testing

Re: [asterisk-users] GotoIf CALLERID(num)

2010-12-29 Thread Joel Maslak
Get rid of the spaces before and after the equal sign. On Wed, Dec 29, 2010 at 4:15 PM, Joseph wrote: > I'm testing GotoIf($["${CALLERID(num) but I'm missing something as it is not > working: > > [office-open] > exten => s,1,Wait(1) > exten => s,2,Answer() > > ; for Caller ID is 471-5665, always

[asterisk-users] GotoIf CALLERID(num)

2010-12-29 Thread Joseph
I'm testing GotoIf($["${CALLERID(num) but I'm missing something as it is not working: [office-open] exten => s,1,Wait(1) exten => s,2,Answer() ; for Caller ID is 471-5665, always signal congestion: exten => s,3,GotoIf($["${CALLERID(num)}" = "4715665"]?4:6) exten => s,4,Playtones(congestion) ext