[asterisk-users] Can Asterisk match a literal "*" in extensions.conf

Adrian Marsh Adrian.Marsh at ubiquisys.com
Fri Sep 14 11:55:55 CDT 2007


I don't think * means anything special to A*k,
But wouldn't it be:

_X.*X.

To match as you ask ?

(number)(wildcard)*(number)(wildcard)



-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Anthony
Messina
Sent: 14 September 2007 17:40
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] Can Asterisk match a literal "*" in
extensions.conf

I am working on getting freenum.org ISN/ITAD numbers integrated into my 
exiting dialplan however I am having trouble getting the extension
matches to 
work "as expected."

I would like to be able to do something like:
exten => _X.*.,1,Macro(isn-outbound...)

Where I would expect that any extension that starts with at least one
number, 
but includes a literal "*" followed by 1 or more numbers would match.

This is not the case, and it matches any extension that starts with a
number.

Thank you in advance for your assistance.

-- 
Anthony -  http://messinet.com - http://messinet.com/~amessina/gallery
8F89 5E72 8DF0 BCF0 10BE 9967 92DC 35DC B001 4A4E



More information about the asterisk-users mailing list