Link to home
Start Free TrialLog in
Avatar of Silas2
Silas2

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of Phonebuff
Phonebuff
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Silas2
Silas2

ASKER

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?