Asterisk Wildcard Question

I'm using the extension _XXXXXXXXXXX (11 digits) to capture all UK numbers, but I've just noticed that a few 0800 numbers have 10 digits. How can I catch them with a single wildcard sequence?
Silas2Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PhonebuffCommented:
In the book Asterisk, the definitive guide see pattern matching starting on page 125..

Or Here -- http://www.voip-info.org/wiki/view/Asterisk+Dialplan+Patterns

but you can have two pattens close and it will always match the most specific left to right..

Sp exten =>   _XXXXXXXXXXX,1, ........................
      exten =>  _0800XXXXXXX,1,............................

Will always execute the second instruction if you dial 0800..................

================
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Silas2Author Commented:
Sorry, i know i was being lazy...i jut wondered if you could catch them with a single extension/wildcard combo.

at the moment i have:
exten => _XXXXXXXXXXX,1,Set(__dialednum=${EXTEN})
exten => _XXXXXXXXXXX,n,Goto(OutgoingForRecord,s,1)

would i then need:
exten => _XXXXXXXXXXX,1,Set(__dialednum=${EXTEN})
exten => _XXXXXXXXXXX,n,Goto(OutgoingForRecord,s,1)
exten => _0800XXXXXXX1,Set(__dialednum=${EXTEN})
exten => _0800XXXXXXX,n,Goto(OutgoingForRecord,s,1)
or is there a more elegant way of doing it?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
IP Telephony

From novice to tech pro — start learning today.