Quantcast
Channel: FreePBX - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 17422

Modify Asterisk Variable to Check Both Phonebook and Allow List

$
0
0

Hi everyone,

I’m trying to modify the following Asterisk variable, which currently checks if the caller ID exists in the Asterisk Phonebook:

${DB_EXISTS(cidname/${CALLERID(number)})}

I’d like to adjust this so that it also checks if the caller ID exists in an “Allowlist” module database entry. Essentially, I want the logic to work as:

If the caller ID is in the Asterisk Phonebook OR in the Allowlist, the check should pass, with a 1. If not, it should result in a 0.

Any help or guidance would be greatly appreciated!

Thanks in advance.
Richie

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 17422

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>