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...

Firstly, are you talking about caller ID's that look like 0000000000 ? Are you sure that's what they are? Try "NoOp(${CALLERIDNUM}) as your priority 1, and you should see the value in your console output.


Try exten => with the correct spacing, but that doesn't seem like it would make a huge difference.

Have you tried with _1XXXXXX1118/_XXX. to see if you can get any matching at all working? Be more general in what you're accepting, and then narrow it down.

If it continues to fail, fire up a bug in the bugtracker that inludes all the details.

JT
_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to