<!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">
    <tt>Or you can try directly:<br>
      <br>
      &nbsp;&nbsp;&nbsp; </tt><font color="#000066"><font face="comic sans
        ms,sans-serif"><font color="#000066"><font face="comic sans
            ms,sans-serif"><i>check_user_blacklist( "$fU", "$fd" ,"$rU"
              )</i></font></font></font></font><br>
    <tt><br>
      Regards,<br>
    </tt>
    <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 11/12/2012 06:03 PM, Engineer voip wrote:
    <blockquote
cite="mid:CAA-=Tf-=2-Nse6s2OU0MhbROH7rSPXpA1hP-sW84rYxGQAj=Uw@mail.gmail.com"
      type="cite"><font color="#000066"><font face="comic sans
          ms,sans-serif">Hi,<br>
          I declared these parameters before an it's good<br>
          $avp(ru)=$rU;<br>
          $avp(fu)=$fU;<br>
          $avp(fd)=$fd;<br>
        </font></font><br>
      <br>
      <div class="gmail_quote">2012/11/12 Engineer voip <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:forvoip4@gmail.com"
            target="_blank">forvoip4@gmail.com</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;"><font color="#000066"><font face="comic
              sans ms,sans-serif">Hi,<br>
              i tried this syntax </font></font><font color="#000066"><font
              face="comic sans ms,sans-serif"><font color="#000066"><font
                  face="comic sans ms,sans-serif"><i>check_user_blacklist(

                    "$avp(fu)", "$avp(fd)" ,"$avp(rU)" ) &nbsp;</i></font></font>
              but not works<br>
            </font></font>
          <div class="HOEnZb">
            <div class="h5"><br>
              <div class="gmail_quote">2012/10/31 Bogdan-Andrei Iancu <span
                  dir="ltr">&lt;<a moz-do-not-send="true"
                    href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span><br>
                <blockquote class="gmail_quote" style="margin: 0pt 0pt
                  0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
                  padding-left: 1ex;">
                  <div bgcolor="#ffffff" text="#000000"> Hi,<br>
                    <br>
                    The names of the AVPS are wrong. Instead of:
                    <div><br>
                      &nbsp;&nbsp;&nbsp; <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>
                    </div>
                    Try:<br>
                    &nbsp;&nbsp;&nbsp; <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 cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                    <div>
                      <div> <br>
                        On 10/26/2012 04:31 PM, Engineer voip wrote: </div>
                    </div>
                    <blockquote type="cite">
                      <div>
                        <div><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>
                                &nbsp;&nbsp;&nbsp;&nbsp; $avp(fu) = $fU;<br>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $avp(fd) = $fd;<br>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $avp(rU) = $rU;<br>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ( !check_user_blacklist(
                                "$avp($fu)", "$avp($fd)" ,"$avp(rU)" ) )
                                {<br>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply("403", "Forbidden,
                                Destionation Interdite");<br>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xlog("L_INFO", "method
                                &lt;$rm&gt;,$avp(fu),
                                $avp(fd),rU=$avp(rU) : Destination
                                Interdite Pour &lt;$fu&gt; to
                                &lt;$tu&gt;&nbsp; &lt;$si&gt;\n");<br>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<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>
                        </div>
                      </div>
                      <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                    </blockquote>
                  </div>
                </blockquote>
              </div>
              <br>
              <br clear="all">
              <br>
            </div>
          </div>
          <span class="HOEnZb"><font color="#888888">-- <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>
            </font></span></blockquote>
      </div>
      <br>
      <br clear="all">
      <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>
    </blockquote>
  </body>
</html>