LookupBlacklist Deprecated

Comment on Asterisk cmd LookupBlacklist
bromont
Joined: Fri 22 of Oct, 2004

LookupBlacklist Deprecated

Posted:Wed 30 of Aug, 2006 (18:44 UTC)
Looks like LookupBlacklist has been deprecated and is being replaced by the ${BLACKLIST()} function.

I've begun replacing my dialplan with DB_EXISTS() instead. Note that with DB_EXISTS you can match *any*
database family: blacklist, friendlist, whitelist etc.

exten => s,1,GotoIf(${DB_EXISTS(blacklist/${CALLERIDNUM})}?blacklisted,s,1) ; If callerid is matched to blacklist, jump to context blacklisted, ext 1, priority 1
exten => s,2,NoOp( Not Blacklisted )
exten => s,3,Dial(SIP/.....)