<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
The names of the AVPS are wrong. Instead of:<br>
<font color="#000066"><font face="comic sans ms,sans-serif"><i>check_user_blacklist(
"$avp($fu)", "$avp($fd)" ,"$avp(rU)" ) </i></font></font><br>
<br>
Try:<br>
<font color="#000066"><font face="comic sans ms,sans-serif"><i>check_user_blacklist(
"$avp(fu)", "$avp(fd)" ,"$avp(rU)" ) </i></font></font><br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<br>
On 10/26/2012 04:31 PM, Engineer voip wrote:
<blockquote
cite="mid:CAA-=Tf8tWZKswzZD9kTjfFUpsfANSxXOcn4buZnp1VmasiPQkQ@mail.gmail.com"
type="cite"><font color="#000066"><font face="comic sans
ms,sans-serif"><i>Hi,<br>
I use this script to block an user declared in userblack
list to calls an number with prefix 01 but it's not works<br>
$avp(fu) = $fU;<br>
$avp(fd) = $fd;<br>
$avp(rU) = $rU;<br>
if ( !check_user_blacklist( "$avp($fu)", "$avp($fd)"
,"$avp(rU)" ) ) {<br>
sl_send_reply("403", "Forbidden, Destionation
Interdite");<br>
xlog("L_INFO", "method <$rm>,$avp(fu),
$avp(fd),rU=$avp(rU) : Destination Interdite Pour
<$fu> to <$tu> <$si>\n");<br>
exit;<br>
}<br>
can you help me please ?<br clear="all">
</i></font></font><br>
-- <br>
<font color="#663300"><font face="comic sans ms,sans-serif"><span
style="color: rgb(0, 0, 102);"><i>Best Regards.</i></span><br>
</font></font><br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>