<!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">
Please note that current ser 0.9.x does not have the fm style
matching.&nbsp; This was a small mod that was done to openser 0.9.4 (was
it?) right before releasing (and that was never commited to ser).&nbsp; <br>
However, the ser 0.9.x avpops module can be replaced with the openser
0.9.4 avpops version.<br>
g-)<br>
<br>
Evan Borgstr&ouml;m wrote:
<blockquote cite="mid44B2A4C8.702@ca.mci.com" type="cite">
  <pre wrap="">        You can do it with the avpops module and a little crafty-ness. I did
something similar using this general logic.

        Store patterns in the database that will satisfy the fm style matching
of the avpops module (ie. "sip:00355*"), then load them with avp_db_load
and then run over it with avp_check on $ruri/username using the fm
operator and the g flag to check them all. If the avp_check succeeds
then you block the call, if not let the call through.

-Evan

Robert Zorop wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi, thanks for the response. The problem i have is a lot of this
destinations to block. Does someone knows a scalable method to do it? . I
think that writing a hundred of this entry should be slow at lookup time?..


2006/7/10, <a class="moz-txt-link-abbreviated" href="mailto:CM0002@aol.com">CM0002@aol.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:CM0002@aol.com">&lt;CM0002@aol.com&gt;</a>:
    </pre>
    <blockquote type="cite">
      <pre wrap=""> try this:

        # block expensive area codes
        if (uri=~<a class="moz-txt-link-rfc2396E" href="mailto:^sip:00355[0-9].*@.*">"^sip:00355[0-9].*@.*"</a> |
        uri=~<a class="moz-txt-link-rfc2396E" href="mailto:^sip:00358830[0-9].*@.*">"^sip:00358830[0-9].*@.*"</a> |
        uri=~<a class="moz-txt-link-rfc2396E" href="mailto:^sip:001670.*@.*">"^sip:001670.*@.*"</a> |
        uri=~<a class="moz-txt-link-rfc2396E" href="mailto:^sip:001671.*@.*">"^sip:001671.*@.*"</a> |
        uri=~<a class="moz-txt-link-rfc2396E" href="mailto:^sip:00247[0-9].*@.*">"^sip:00247[0-9].*@.*"</a>
               ) {
                       sl_send_reply("409", "Country not in plan");
                       break;
                };

regards Christian

      </pre>
    </blockquote>
    <pre wrap="">
------------------------------------------------------------------------

_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>


  </pre>
</blockquote>
</body>
</html>