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-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Vieri
Sent: Friday, July 17, 2009 4:11 AM
To: asterisk-users@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


_______________________________________________
-- 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

Reply via email to