N matches any digit from 2-9. Are there any other wildcards outside of
the ones listed below
<http://www.voip-info.org/wiki/view/Asterisk+Dialplan+Patterns>
X matches any digit from 0-9
Z matches any digit form 1-9
N matches any digit from 2-9
[1237-9] matches any digit or letter in the brackets
(in this example, 1,2,3,7,8,9)
. wildcard, matches one or more characters
! wildcard, matches zero or more characters immediately
(only Asterisk 1.2 and later, see note)
On 2/3/06, C F <shmaltz@gmail.com> wrote:> _N
>
> On 2/3/06, Sum Ding Wong <sumdingwong@gmail.com> wrote:
> > Does anyone know of a special character used in pattern matching that
> > would match 0 or 1 digit?
> >
> > I would just like to cut down on the number of extensions I have.
> >
> > Current example:
> > exten => 2125551234,1,Dial(SIP/2125551234,15,rt)
> > exten => 12125551234,1,Dial(SIP/2125551234,15,rt)
> >
> > I would like to do something like this (where + matches 0 or 1 digit):
> > exten => _+2125551234,1,Dial(SIP/2125551234,15,rt)
> >
> >
|--------------------------------------------------------------------------------
> >
> > Or in an area that has 7 digit dialing...
> > exten => 5551234,1,Dial(SIP/2125551234,15,rt)
> > exten => 2125551234,1,Dial(SIP/2125551234,15,rt)
> > exten => 12125551234,1,Dial(SIP/2125551234,15,rt)
> >
> > exten => _++++5551234,1,Dial(SIP/2125551234,15,rt)
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>