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

d tbsky tbskyd at gmail.com
Fri Sep 14 13:06:04 CDT 2007


i just met the same problem. i want to match extension that end with a
number, but can not find a way. i also found that "_.X" match all
extension, but won't match any caller-id number in dialplan. maybe it
is a bug. but it seems not important since "_.X" is useless anyway.


2007/9/15, Tilghman Lesher <tilghman at mail.jeffandtilghman.com>:
> On Friday 14 September 2007 11:39:40 Anthony Messina wrote:
> > 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...)
>
> The problem you're seeing is that the period is a short-circuit operator.  It
> says "if you match everything so far and at least one more character, then
> you have a match, no need to go any further."  You CANNOT match past a
> '.'.
>
> --
> Tilghman
>
> _______________________________________________
>
> Sign up now for AstriCon 2007!  September 25-28th.  http://www.astricon.net/
>
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list