Am 16.03.2015 um 12:21 schrieb nedi <[email protected]>:
> Hi
> has someone try to use wildcard or put a range in Astlinux blacklist.. or
> only a part of Number as sample 041 588
> I would like to block full range of Numbers which include as sample 041 588,
> 052 588, 061 588…
>
> best regards
Hi Nedi,
to my knowledge inbound pattern matching for CallerID only works with the
so-called "ex-girlfriend logic" :-).
exten => 100/_1234XXXXX,1,Answer()
same => n,NoOp(Do what you want)
same => n,Hangup()
Where _1234XXXXX is your blacklist pattern.
For outbound blocking you can include another context into you outbound
context, e.g.:
[outbound_blocked_numbers]
exten => _00ZXXX.,1,Goto(blocked,${EXTEN},1)
I haven't found an easy way using a database. I you find one, please report
back.
Michael
http://www.mksolutions.info
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to
[email protected].