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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users