[asterisk-users] How best to match hexadecimal values in dialplan pattern matching ?

Olivier oza.4h07 at gmail.com
Thu Apr 3 09:40:01 CDT 2014


Quite often I told myself it would be convenient to have a dedicated
letter, such as E, to match [0-9A-Ea-e] in dialplan pattern matching just
like X match [0-9] or Z match [1-9].

This happens when I want to match a MAC address in my dialplan.
In this case, writing [0-9A-Ea-e] twelve times is not very pleasant.

What would you say about that ?
What is the best way to match a MAC address with Asterisk 11 and above ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140403/1c07438e/attachment.html>

More information about the asterisk-users mailing list