[asterisk-users] Matching *, + and # in the dialplan

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue Oct 7 13:03:07 CDT 2008


On Monday 06 October 2008 14:58:09 Karl Fife wrote:
> In several places online, and in the Asterisk F.O.T. book, there is a
> warning against using '_.' saying:
> "[it] should probably never be used".
>
> However, the need often arises act on numeric extensions that begin with
> *'s and #'s, and '+', and of course _X. does not match
>
> I have tried  exten => _[0-9*#+]. but that seems to be the functional
> equivalent to _X. ignoring the addition of +,* and #.
>
> Can someone suggest the best way to deal with this without resoring to a
> highly repetitive/iterative dialplan?

Leif and I discussed something like this at Astricon 2008, and we came up with
this patch:
http://bugs.digium.com/view.php?id=13632

-- 
Tilghman



More information about the asterisk-users mailing list