[asterisk-users] Ex-Girlfriend syntax and RealTime Extensions

Derek Whitten derek at kfuq.net
Mon Feb 26 14:58:30 MST 2007


                    5. Set(BLACKLIST=${BLACKLIST()})              [pbx_config]
                    6. GotoIf($["${BLACKLIST}" = "1"]?shitlisted|s|1:7) [pbx_config]
Philipp Kempgen wrote:
> Thomas Kenyon wrote:
>> Philipp Kempgen wrote:
>>> You might use the Blacklist() application in 1.2 (deprecated!).
>>> Using AstDB is an option:
>>>
>> Is it really deprecated? I use LookupBlacklist (tested as working) in 
>> 1.4, and show application LookupBlacklist doesn't mention it.
> 
> But the source code (app_lookupblacklist.c) has this line:
> ast_log(LOG_WARNING, "LookupBlacklist is deprecated.  Please use
> ${BLACKLIST()} instead.\n");
> 
> So I'm not sure if it's deprecated or not. But this points us
> to a new function: BLACKLIST()
> 
> core show function BLACKLIST
> ---cut---
>   -= Info about function 'BLACKLIST' =-
> 
> [Syntax]
> BLACKLIST()
> 
> [Synopsis]
> Check if the callerid is on the blacklist
> 
> [Description]
> Uses astdb to check if the Caller*ID is in family 'blacklist'.  Returns
> 1 or 0.
> ---cut---
> 
> This just seems to fit.
> 
> Regards,
>   Philipp
> 



 Set(BLACKLIST=${BLACKLIST()})
 GotoIf($["${BLACKLIST}" = "1"]?shitlisted|s|1:7)







-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20070226/cecc0ad6/signature.pgp


More information about the asterisk-users mailing list