[OpenSIPS-Users] Use Blacklist Module Question
Alexander Perkins
alexanderhenryperkins at gmail.com
Tue May 1 10:47:55 EDT 2018
Hi. I have successfully implemented the User Blacklist module, but I
noticed it checks the number the call is going to, not the CallerID. Is it
possible to lookup the CallerID instead of the number? I have tried
creating a dummy variable for $tU and then assiging the CallerID to $tU,
but OpenSIPs failed (I guess $tU is read-only?). I am using the global
blacklist functionality. This is the code I tried originally:
$var(TempVariable) = $tU;
$tU = $fU;
if (!check_blacklist("globalblacklist"))
{
sl_send_reply("403", "Forbidden");
exit;
}
$tU = $var(TempVariable);
Any help is appreciated,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180501/76806d35/attachment.html>
More information about the Users
mailing list