[OpenSIPS-Users] blocking user to call to a destination declared in userblacklist table
Bogdan-Andrei Iancu
bogdan at opensips.org
Mon Nov 12 17:11:27 CET 2012
Or you can try directly:
/check_user_blacklist( "$fU", "$fd" ,"$rU" )/
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 11/12/2012 06:03 PM, Engineer voip wrote:
> Hi,
> I declared these parameters before an it's good
> $avp(ru)=$rU;
> $avp(fu)=$fU;
> $avp(fd)=$fd;
>
>
> 2012/11/12 Engineer voip <forvoip4 at gmail.com <mailto:forvoip4 at gmail.com>>
>
> Hi,
> i tried this syntax /check_user_blacklist( "$avp(fu)", "$avp(fd)"
> ,"$avp(rU)" ) / but not works
>
> 2012/10/31 Bogdan-Andrei Iancu <bogdan at opensips.org
> <mailto:bogdan at opensips.org>>
>
> 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 <mailto:Users at lists.opensips.org>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> --
> /Best Regards./
>
>
>
>
>
> --
> /Best Regards./
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20121112/1c7fc24e/attachment-0001.htm>
More information about the Users
mailing list