Hi, please can someone post how the avp module could help with this?.<br><br>Christian, i think your idea works as well, but my problem is how to get diferent destinations blocked depending on the user, or IP the call is from. 
<br><br><br><div><span class="gmail_quote">2006/7/11, Greger V. Teigre &lt;<a href="mailto:greger@teigre.com">greger@teigre.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>


  

<div 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></div><div><span class="sg">
g-)</span></div><div><span class="e" id="q_10c5c4355268aba7_2"><br>
<br>
Evan Borgström wrote:
<blockquote cite="http://mid44B2A4C8.702@ca.mci.com" type="cite">
  <pre>        You can do it with the avpops module and a little crafty-ness. I did<br>something similar using this general logic.<br><br>        Store patterns in the database that will satisfy the fm style matching<br>of the avpops module (ie. &quot;sip:00355*&quot;), then load them with avp_db_load
<br>and then run over it with avp_check on $ruri/username using the fm<br>operator and the g flag to check them all. If the avp_check succeeds<br>then you block the call, if not let the call through.<br><br>-Evan<br><br>Robert Zorop wrote:
<br>  </pre>
  <blockquote type="cite">
    <pre>Hi, thanks for the response. The problem i have is a lot of this<br>destinations to block. Does someone knows a scalable method to do it? . I<br>think that writing a hundred of this entry should be slow at lookup time?..
<br><br><br>2006/7/10, <a href="mailto:CM0002@aol.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">CM0002@aol.com</a> <a href="mailto:CM0002@aol.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
&lt;CM0002@aol.com&gt;</a>:<br>    </pre>
    <blockquote type="cite">
      <pre> try this:<br><br>        # block expensive area codes<br>        if (uri=~<a href="mailto:%5Esip:00355%5B0-9%5D.*@.*" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">&quot;^sip:00355[0-9].*@.*&quot;
</a> |<br>        uri=~<a href="mailto:%5Esip:00358830%5B0-9%5D.*@.*" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">&quot;^sip:00358830[0-9].*@.*&quot;</a> |<br>        uri=~<a href="mailto:%5Esip:001670.*@.*" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
&quot;^sip:001670.*@.*&quot;</a> |<br>        uri=~<a href="mailto:%5Esip:001671.*@.*" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">&quot;^sip:001671.*@.*&quot;</a> |<br>        uri=~<a href="mailto:%5Esip:00247%5B0-9%5D.*@.*" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
&quot;^sip:00247[0-9].*@.*&quot;</a>
               ) {
                       sl_send_reply(&quot;409&quot;, &quot;Country not in plan&quot;);
                       break;
                };

regards Christian

      </pre>
    </blockquote>
    <pre>------------------------------------------------------------------------<br><br>_______________________________________________<br>Serusers mailing list<br><a href="mailto:Serusers@lists.iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
Serusers@lists.iptel.org</a>
<a href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.iptel.org/mailman/listinfo/serusers</a>
    </pre>
  </blockquote>
  <pre>_______________________________________________<br>Serusers mailing list<br><a href="mailto:Serusers@lists.iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Serusers@lists.iptel.org
</a>
<a href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.iptel.org/mailman/listinfo/serusers</a>


  </pre>
</blockquote>
</span></div><div></div>


</div></blockquote></div><br>