${CALLERIDNUM} also deprecated.

Comment on Asterisk cmd LookupBlacklist
Joined: Thu 11 of Aug, 2005

${CALLERIDNUM} also deprecated.

Posted:Fri 30 of May, 2008 (09:54 UTC)
The below example should read as follows:

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

Since ${CALLERIDNUM} was marked as deprecated in 1.4.0 and has been removed by 1.6.0.

If the caller withholds their number, the above produces an error (unless you make CALLERID(number) equal something on condition that it is empty in the first place). This error does not interrupt the call flow so can be ignored.

I can verify that this works in 1.6.0-beta9.