[asterisk-users] dialplan number matching

Danny Nicholas danny at debsinc.com
Fri Jul 17 08:09:59 CDT 2009


Assuming you are using 4 digit extensions, this syntax would be:
- exten => _ZXX3,n,...
For 3 digits
- exten => _ZX3,n,...
The . is a wildcard that says "take rest of number, so anything after that
is irrelevant.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Vieri
Sent: Friday, July 17, 2009 4:11 AM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] dialplan number matching


Hi,

How can I match an extension "ending with 3" (just an example but applicable
to any other digit, including * or #)?

exten => _ZX.3,n,...

exten => _ZX.#,n,...

(the above does not work)

Can regular expressions be used in the standard dialplan (end with: "$")?

Thanks,

Vieri



      

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list