1. LookupBlacklist - this application allows you to check a number in the blacklist database.
NOTE: This application is valid for Asterisk version 1.0.9 and above.
Syntax:
LookupBlacklist() ;There are no arguments for this application
Purpose and usage
The purpose of this application is to check whether the Caller ID is within the Asterisks blacklist database or not. If the number is in the database, the next executed extension will be the one with priority n+101(where n is the priority of the current extension). If it is not, then the next executed extension will be the one with priority n+1. If there is no Caller ID received, then the LookupBlacklist has no effect.
You can use this application to restrict the access to your system. The undesired numbers could be entered into the blacklist database. Thanks to this application you can decide what to do with the numbers into the blacklist. For example you can send them a text message, to inform them that they are not wanted or that their access is cut off.
To see how the application works we recommend to use our IAX softphone Idefisk. You can download it from here. Please also read our tutorial to learn how to configure it to work with Asterisk PBX.
Asterisk PBX configurations
NOTE: This is only an example of what for you can use this application. Of course you can use it and for other things.
iax.conf Configurations
We need three registered user in iax.conf file. This is because we are going to use the IAX2 protocol. If you want to use other protocol such as SIP or MGCP, you have to do the configurations below respectively in sip.conf or mgcp.conf.
So, we have registered the users user1, anatoliy and ivan
Type=friend means that this user can make and receive calls. Host=dynamic means that the IP is not static but dynamic through a DHCP server. Allow=all means that the line which this user will use, could support all audio codecs. Context=test - this shows that this user is working with the extensions in this context of the configuration file extensions.conf.
Database Configurations
We have to put the desired Caller ID in the Asterisks blacklist database.
You can achieve this either by using the DBput application or by entering the command database put manually on the CLI
In our example, we will use the manual configuration. So, we will type the command database put blacklist test 1.
Here, the word blacklist is the desired family in the database. The key will be the word test. Actually test is the Caller ID of the user, which access we want to forbid. The digit 1 is the value. In this case, it does not matter what would be the value. The value could be any other digit.
You can verify whether the key(test) is entered in the database by typing the command database show or database show blacklist.
In our example, when somebody dials 1010, the first executed extension will be the LookupBlacklist one. It will check immediately whether the Caller ID is in the Asterisks blacklist database.
If the Caller ID is test, i.e. it is in the blacklist, then the next executed extension will be the with priority n+101. In our example this is the extension with priority 102. It contains the SendText application. This application will send a text message to the caller. The message in our example is: Your access to our system is forbidden! Please do not try to connect to our system again!. Then a Hangup application will be executed and the line will be closed.
If the Caller ID is different from test, the next executed extension will be the one with priority n+1. In our example this extension will run the Dial application. Thanks to it the call will be connected to the user user1 through the IAX2 channel.
If no Caller ID is received through the channel, the LookupBlacklist will have no effect and the next executed extension will be again the one with priority n+1 and with the Dial application.
If you want to remove a key(Caller ID) from the family blacklist of the Asterisks database, you can use either the DBdel application or the database del command on the CLI
For example:
database del blacklist test 1 ;where test is the key in the family blacklist with value 1
2. Screenshots of what you can see on your Idefisk and on the CLI of the Asterisk PBX
3. Additional information
For more information about extensions.conf you can check here.
For more information about iax.conf you can check here.
This application is tested with our IAX softphone Idefisk. You can download it from here. For more information about this softphone please read our tutorial.
If you would like to test this application with the SIP channel you can read our tutorials about the SIP Softphones to learn how to configure them to work with Asterisk PBX
<a href=https://rupitheafricantrotter.com/the-unique-kitich-camp-of-samburu/#comment-506099>Jigsaw fence to see amazon</a>
<a href=http://probki.kirov.ru/content/reshenie-20112013-0#comment-24273976>7 ways to make a wooden box</a>
<a href=https://ullaredblogg.se/smidigt-diskstall/#comment-3828701>Diy home library with your jigsaw</a>
ed89ec6
DerekTaf (fazjuibol at mail dot ru) 22 July 2021 00:34:19 3D Игровые автоматы в казино онлайн - доступ для всех без исключения без исключения желающих и лишь по демо-счетам. Денежные средства возможно выводить из казино на настоящие счета в многообразных платежных системах, браузерные слоты на денежные средства, казино, лотерея и много прочего.
eleanornz18 (johnnie at sho6710 dot masumi71 dot webmailm1 dot site) 13 February 2021 12:53:57 New super hot photo galleries, daily updated collections
http://freematureporn.changwon.energysexy.com/?nora
dave angelo porn website fast fuck sex porn big tits retro porn does victoria bangbabes do porn alyssa milano hardcore porn
hSmarysmery (b dot il dot li dot 4q dot ueb dot ec dot at gmail dot com) 13 February 2021 12:30:47 where are software engineers in demand stop office software protection platform service , free office software for mac download https://karantina.pertanian.go.id/question2answer/index.php?qa=275984&qa_1=meilleur-prix-autocad-mechanical-sans-abonnement-acheter# software autocad 2020. design programs like autocad 2020 design software minimum requirements <a href=https://karantina.pertanian.go.id/question2answer/index.php?qa=275993&qa_1=meilleur-prix-geomagic-wrap-sans-abonnement-oГ№-acheter#>Acheter Geomagic Wrap</a> , short software courses office software near me , radeon software adrenalin 2020 edition 20.4.2. software engineer internship office inventory software free <a href=https://karantina.pertanian.go.id/question2answer/index.php?qa=276330&qa_1=meilleur-prix-autocad-civil-3d-sans-abonnement-oГ№-acheter#>Meilleur prix AutoCAD Civil 3D sans abonnement oГ№ acheter?</a> , programmi come office under software reliability , free meeting software 2020. drawing program online which software visually communicates a point , office use software free download how often does software_reporter. after software engineering versus software download .
Aribbluerne (enn dot ma dot x dot toy dot at gmail dot com) 09 January 2021 19:59:22 pharmacie ico angers therapie de couple dijon medicaments foie therapie comportementale et cognitive hypocondrie act therapy rumination .
Cherilynn (pmlcq4m3b at outlook dot com) 18 November 2016 02:45:23 A minute saved is a minute <a href="http://ugoppedy.com">eaednr,</a> and this saved hours!
Xannon (5ljrjq3ba at mail dot com) 09 November 2016 09:36:34 Four score and seven minutes ago, I read a sweet <a href="http://bgzworgc.com">artcile.</a> Lol thanks
Cipriano L. Hilario (clhilario at imatech dot com dot ph) 08 October 2008 10:06:26 Hello can I used the blacklist so that all the numbers is blacklisted and only the numbers on the blacklist can be dial on my asterisk
JiaZheng (jiazheng at juniper dot net) 15 December 2006 18:19:30 there is an optional argument for LookupBlacklist(). 'j' - jump to priority n+101.
Shawn (no at email dot com) 24 December 2005 09:50:42 You have to add a (j) to the end of LookupBlacklist in order for asterisk 1.2+ to actually make the jump. Like such:
exten => s,1,LookupBlacklist(j)
Omar (omarnina at gmail dot com) 16 December 2005 20:17:30 Doesn't work in asterisk 1.2.1, this is my script