[Asterisk-Users] regexp problems

Jim Gottlieb jimmy-ml at nccom.com
Fri Sep 19 14:12:37 MST 2003


I'm trying to filter calls that don't have a proper ANI.  This is what
I did:

; only if they a real-looking ANI
exten=_1XXXXXX1118/_.N.,1,Newt,1118-config
; Otherwise, send them to the loser partyline
exten=_1XXXXXX1118,1,Goto(outtrunk,19096611234,1)

This properly deals with null ANIs, but for some reason those with ten
zeroes get matched by the first line.

I also tried to be a bit more specific, like:

exten=_1XXXXXX1118/_.[1-9][1-9].,1,Newt,1118-config

but that also matched on all zeroes.

Am I doing something wrong or is this a bug?

Thanks...



More information about the asterisk-users mailing list