PBX Version: 14.0.16.4
PBX Distro: 12.7.8-2012-1.sng7
Asterisk Version: 16.13.0
We have been using a simple IVR to stop spam calls. I would like to allow some numbers to skip the IVR to reach a human. I saw the post by lgaetz Of Robocalls and Whitelists and we would like to use it. I installed the Dynamic Routes and added the lgaetz-cmcheck.php
file to /var/lib/asterisk/agi-bin/
folder and chenged the file permission to asterisk:asterisk
.
I appreciate help in the next steps:
Field name | Value |
---|---|
Dynamic Route Name | Allowed DID |
Dynamic Route Description | Allowed DID |
Enable DTMF Input | No |
Announcement | None |
Timeout | blank |
Validation | blank |
Invalid Retries | blank |
Invalid Retry Recording | None |
Invalid Recording | None |
Invalid Destination | Do not set this value |
Saved input varibale name | None |
Saved result variable name | None |
Source Type | AGI |
AGI Lookup | lgaetz-cmcheck.php |
AGI Result Variable | True,False |
Default Destination | IVR: Welcome |
Dynamic Route Entries | Match: False; Destination: IVR: Welcome |
Match: True; Destination: Ring group |
-
Do the above Dynamic Routes values looks right?
-
Do I need to add the code below to
extensions_custom.conf
[check-whitelist] exten => s,1,Noop(Entering user defined context [check-whitelist] in extensions_custom.conf) exten => s,n,AGI(lgaetz-cmcheck.php,${CALLERID(number)}) exten => s,n,gotoif($["${whitelist}"="false"]?ivr-1,s,1) ; edit for wherever non-whitelisted calleres should go exten => s,n,Return
-
Is there anything I need to do?
Thanks for your help and input.