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

2010-05-27 Thread Eddie Mikell
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

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

2010-05-27 Thread Alyed
I guess it's the !, sometimes it has a funny behaviour. try changing (. instead of ! and an X less) exten = _91XX!,1,DIAL(SIP/${EXTEN:1...@ia.ntelos.netexten%3a1...@ia.ntelos.net) ; long distance to exten = _91X.,1,DIAL(SIP/${EXTEN:1...@ia.ntelos.netexten%3a1...@ia.ntelos.net) ;

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

2010-05-27 Thread Steve Edwards
On Thu, 27 May 2010, Eddie Mikell wrote: exten = _911,1,DIAL(SIP/${ext...@ia.ntelos.net) ; emergency Unrelated to your question, but 911 doesn't need an underscore. -- Thanks in advance, - Steve Edwards