Re: [asterisk-users] GotoIf CALLERID(num)
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 to purchase a little Temporary Safety, deserve neither Liberty nor Safety. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] GotoIf CALLERID(num)
Get rid of the spaces before and after the equal sign. On Wed, Dec 29, 2010 at 4:15 PM, Joseph syscon...@gmail.com 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 signal congestion: exten = s,3,GotoIf($[${CALLERID(num)} = 4715665]?4:6) exten = s,4,Playtones(congestion) exten = s,5,Congestion(5) exten = s,6,SetMusicOnHold(default) ... but it always goes to s,6 What am I missing? -- Joseph -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] GotoIf CALLERID(num)
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 syscon...@gmail.com 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 signal congestion: exten = s,3,GotoIf($[${CALLERID(num)} = 4715665]?4:6) exten = s,4,Playtones(congestion) exten = s,5,Congestion(5) exten = s,6,SetMusicOnHold(default) ... but it always goes to s,6 What am I missing? -- Joseph -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] GotoIf CALLERID(num)
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 syscon...@gmail.com 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, Joel Maslak wrote: Get rid of the spaces before and after the equal sign. On Wed, Dec 29, 2010 at 4:15 PM, Joseph syscon...@gmail.com 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 signal congestion: exten = s,3,GotoIf($[${CALLERID(num)} = 4715665]?4:6) exten = s,4,Playtones(congestion) exten = s,5,Congestion(5) exten = s,6,SetMusicOnHold(default) ... but it always goes to s,6 What am I missing? -- Joseph -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] GotoIf CALLERID(num)
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 your console output Doug -- Ben Franklin quote: Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] GotoIf CALLERID(num)
On Wed, 29 Dec 2010 16:41:17 -0700 Joseph syscon...@gmail.com 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? If you put this line in: exten = s,3,Verbose(3,CALLERID(num) is :${CALLERID(num)}:); ...you would see if there are any blanks between the colons. Then you can match it exactly. 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 syscon...@gmail.com 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 signal congestion: exten = s,3,GotoIf($[${CALLERID(num)} = 4715665]?4:6) exten = s,4,Playtones(congestion) exten = s,5,Congestion(5) exten = s,6,SetMusicOnHold(default) ... but it always goes to s,6 What am I missing? -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] GotoIf CALLERID(num)
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 [...@office-open:3] Verbose(SIP/pstn-5665-006e, 3|CALLERID(num) is :7804715665:) in new stack -- CALLERID(num) is :7804715665: -- Executing [...@office-open:4] GotoIf(SIP/pstn-5665-006e, 0?5:7) in new stack -- Goto (office-open,s,7) -- Executing [...@office-open:7] SetMusicOnHold(SIP/pstn-5665-006e, default) in new stack -- Executing [...@office-open:8] BackGround(SIP/pstn-5665-006e, sys_concept_welcome|tr) in new stack -- SIP/pstn-5665-006e Playing 'sys_concept_welcome' (language 'en') 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? -- Joseph On 12/29/10 18:56, Doug Lytle wrote: 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 your console output Doug -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users