$[ $[${DB_EXISTS(allowlist/${CALLERID(number)})}] | $[${DB_EXISTS(allowlist/${CALLERID(number):0:4})}] ]
This is how you would combine them. Source: Operators - Asterisk Documentation
$[ $[${DB_EXISTS(allowlist/${CALLERID(number)})}] | $[${DB_EXISTS(allowlist/${CALLERID(number):0:4})}] ]
This is how you would combine them. Source: Operators - Asterisk Documentation