Hi. Thanks a lot for the reply. Script seems good, but i am stuck on how
to make it.
On 27/8/2016 10:48 μμ, Steve Edwards wrote:
On Sat, 27 Aug 2016, tux john wrote:
Hi. I would like to blacklist a few callers and I have been using the
*CLI> database put blacklist 1234 "annoying callers". Instead of
putting the same command for every user is there any way to have a
file? Ideally a file in /opt that I would update the blacklisted
numbers (add,remove). Is there anything like that, please?
If you are happy with the way blacklisting with the Asterisk database
works, how about a shell script that loads all of the entries in your
blacklist file?
Other alternatives involve modifying your dial plan. If you are
comfortable with that then you can consider alternatives like an AGI
that reads your text file and sets a channel variable.
If you need more 'immediacy' maybe storing the blacklist in a 'real'
database is more appropriate -- especially if you want the users to
maintain their own black list via a web page.
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
http://www.asterisk.org/community/astricon-user-conference
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users