[OpenSIPS-Users] blocking user to call to a destination declared in userblacklist table

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Oct 31 12:57:42 CET 2012


Hi,

The names of the AVPS are wrong. Instead of:
/check_user_blacklist( "$avp($fu)", "$avp($fd)" ,"$avp(rU)" ) /

Try:
/check_user_blacklist( "$avp(fu)", "$avp(fd)" ,"$avp(rU)" ) /

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 10/26/2012 04:31 PM, Engineer voip wrote:
> /Hi,
> I use this script to block an user declared in userblack list to calls 
> an number with prefix 01 but it's not works
>      $avp(fu) = $fU;
>       $avp(fd) = $fd;
>       $avp(rU) = $rU;
>         if ( !check_user_blacklist( "$avp($fu)", "$avp($fd)" 
> ,"$avp(rU)" ) ) {
>         sl_send_reply("403", "Forbidden, Destionation Interdite");
>         xlog("L_INFO", "method <$rm>,$avp(fu), $avp(fd),rU=$avp(rU) : 
> Destination Interdite Pour <$fu> to <$tu> <$si>\n");
>         exit;
>         }
> can you help me please ?
> /
> -- 
> /Best Regards./
>
>
>
> _______________________________________________
> 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/20121031/93377eb0/attachment.htm>


More information about the Users mailing list