[asterisk-users] Just got defrauded - how do I block calls which contain a dash (RegEx noob question)

Max Grobecker max.grobecker at ml.grobecker.info
Fri Oct 28 10:58:09 CDT 2016


Hi,


Am 28.10.2016 um 17:38 schrieb Markus:
> exten => _-.,1,NoOp(Blocking dash)
> exten => _-.,n,Hangup

> How do I do it right?


why not using FILTER() in your dialplan to eleminate all chars that are not numeric?
Like 

   Set(VAR=${FILTER(0-9+),${EXTEN}})

That would eleminate all characters you're not expecting.


Greetings
 Max

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161028/c7c8501d/attachment.pgp>


More information about the asterisk-users mailing list