[Asterisk-Users] Pattern matching in extensions.conf

Mickey Binder mickey at comflex.dk
Fri Mar 18 04:38:39 MST 2005


Hello fellow * users

Hope this isn't a stupid question; I've done my research but could not find
a proper answer.

I have 8 different destinations which I want to match. The numbers are:

###### 00 
###### 20
###### 30
###### 40
###### 15
###### 35
###### 12
###### 44

Right now I've solved it by doing this:

exten => _######[0234]0,1,HangUp
exten => _######[13]5,1,HangUp
exten => ######12,1,HangUp
exten => ######44,1,HangUp

The ###### symbolises a fixed number, it's just censored away (and not
important anyway)

I was just wondering if there was a more intelligent approach, so this could
be combined into one extension.

Best regards,
Mickey Binder





More information about the asterisk-users mailing list