[asterisk-users] Pattern matching - how to ignore numbers after 10 digits

Eddie Mikell eddie at rimmkaufman.com
Thu May 27 16:17:51 CDT 2010


All:

Yesterday I discovered something interesting.  I dialed 1800ANCESTRY 
from the asterisk system I am testing and got the number doesn't exist 
message.  I then dialed the same number from our old system and it went 
through.

I realized that the "Y" in ancestry made the number too long, and went 
back to my dialplan.

How do I ignore numbers that are too long?  Obviously, I've done 
something wrong in my pattern matching.

outgoing part of extensions.conf

exten => _91XXXXXXXXXX!,1,DIAL(SIP/${EXTEN:1}@ia.ntelos.net) ; long distance
exten => _9765XXXXXXX,1,DIAL(SIP/${EXTEN:1}@ia.ntelos.net) ; local
exten => _9XXXXXXX,1,DIAL(SIP/${EXTEN:1}@ia.ntelos.net) ; local
exten => _9011XXXXXXX!,1,DIAL(SIP/${EXTEN:1}@ia.ntelos.net) ; international
exten => _911,1,DIAL(SIP/${EXTEN}@ia.ntelos.net) ; emergency

Thanks!

Eddie Mikell







More information about the asterisk-users mailing list