[OpenSIPS-Users] Use Blacklist Module Question
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri May 18 07:16:38 EDT 2018
Hi,
Have you tried to use the check_user_blacklist () function:
http://www.opensips.org/html/docs/modules/2.4.x/userblacklist.html#func_check_user_blacklist
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
OpenSIPS Summit 2018
http://www.opensips.org/events/Summit-2018Amsterdam
On 05/01/2018 05:47 PM, Alexander Perkins wrote:
> 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
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180518/d0b5a3b4/attachment.html>
More information about the Users
mailing list