It depends on the range pattern you are trying to lookup. For example,
if you wanted to block an entire NPA or NPANXX range, then yes, you
could add that to the blacklist DB (ie: 212555) and then query the first
six digits of the CID/ANI to see if it was present. ie:
exten = s,n,GotoIf(${DB_EXISTS(blacklist/${CALLERID(num):0:6})}?onblacklist)
You could do something similar with more/less digits, as long as the
wildcard was at the beginning or end of the caller id.
If you were trying to do something like blocking only
2125551013-2125551027, that would be a bit more difficult and I'm not
sure how easy it would be to implement in the DB. Though you could do it
in the dialplan as a static entry.
--James
On 11/04/2013 11:12 AM, nedi wrote:
> Hi
> Is there a way to block a number Range with Astlinux Blacklist?
> Best Regards
> Nedi
>
> ------------------------------------------------------------------------------
> Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this white
> paper to learn more about secure code signing practices that can help keep
> Android apps secure.
> http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
> _______________________________________________
> 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].
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
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].