[Asterisk-Users] Fast question on extension matching

Chris Craft ccraft at netgenius.org
Fri Feb 6 14:31:02 MST 2004


T. Chan wrote:
> Dear All,
> 
> I have a very simple question but could not find any information from the
> internet.
> 
> Is there anyway to match code on extensions.conf without having to specify
> the number of digits?
> 
> For example, if I want to send 01163 (Philippines to a certain IP address),
> is there anyway simpler to do than
> 
> exten => _01163XXXXXXXXXXXX,1,.....
> exten => _01163XXXXXXXXXXX,1,.....
> exten => _01163XXXXXXXXXX,1,.....
> exten => _01163XXXXXXXXX,1,.....
> exten => _01163XXXXXXXX,1,.....
> exten => _01163XXXXXXX,1,.....
> 
> Is there any one line command that could replace having to use XXXXXX... to
> match exact number of digits?
> 
> Thanks
> 
> TC

TC,
   Just do something like:

exten => _01163.,1,Application()

Cheers,
Chris.
iax700.824.0300




More information about the asterisk-users mailing list