Hi, thanks a lot for this clue. Can u please paste some of the ser.cfg where u do this!? I don't have an idea of how this work. I'll read about, but u'll help me a lot with some cfg example. <br><br>Thanks in advance. <br>
R<br><br><div><span class="gmail_quote">2006/7/10, Evan Borgström &lt;<a href="mailto:evan.borgstrom@ca.mci.com">evan.borgstrom@ca.mci.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;">
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;You can do it with the avpops module and a little crafty-ness. I did<br>something similar using this general logic.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&gt; Hi, thanks for the response. The problem i have is a lot of this<br>&gt; destinations to block. Does someone knows a scalable method to do it? . I<br>&gt; think that writing a hundred of this entry should be slow at lookup time?..
<br>&gt;<br>&gt;<br>&gt; 2006/7/10, <a href="mailto:CM0002@aol.com">CM0002@aol.com</a> &lt;<a href="mailto:CM0002@aol.com">CM0002@aol.com</a>&gt;:<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;try this:<br>&gt;&gt;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # block expensive area codes
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (uri=~&quot;^sip:00355[0-9].*@.*&quot; |<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uri=~&quot;^sip:00358830[0-9].*@.*&quot; |<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uri=~&quot;^sip:001670.*@.*&quot; |<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uri=~&quot;^sip:001671.*@.*&quot; |
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; uri=~&quot;^sip:00247[0-9].*@.*&quot;<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;) {<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sl_send_reply(&quot;409&quot;, &quot;Country not in plan&quot;);<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;
<br>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>&gt;&gt;<br>&gt;&gt; regards Christian<br>&gt;&gt;<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________
<br>&gt; Serusers mailing list<br>&gt; <a href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a><br>&gt; <a href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers
</a><br><br></blockquote></div><br>