[Asterisk-Users] Dialplan pattern match discrepancy
Daniel Wright
dw at wonderwave.net
Fri Nov 25 12:02:19 MST 2005
Steve Davies wrote:
> Hi,
>
> This is probably just me mis-reading the documentation, but I have
> been led to believe that the '.' in extensions.conf means zero or more
> digits, such that
>
> exten => _X.,1,NoOp()
>
> Would trigger for either a single digit, or for a longer number (as
> long as it starts with a digit)
>
> In practice (I am using 1.0.7 and 1.0.9) the '.' seems to match *one*
> or more digits, so in the above example, a single digit is not matched
> as expected.
>
> Is this correct? A bug? Fixed in 1.2 ;-) ?
>
> Thanks for any feedback on this.
>
> Regards,
> Steve
> _______________________________________________
> --Bandwidth and Colocation sponsored by Easynews.com --
>
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
Hi Steve,
The period is match 1 or more characters(can be a number or letter).
So in your example, you are saying first match a number 0-9, then match
any one or more characters.
Dan
More information about the asterisk-users
mailing list