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 <<a href="mailto:evan.borgstrom@ca.mci.com">evan.borgstrom@ca.mci.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> 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. "sip:00355*"), 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>> 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">CM0002@aol.com</a> <<a href="mailto:CM0002@aol.com">CM0002@aol.com</a>>:<br>>><br>>> try this:<br>>><br>>> # block expensive area codes
<br>>> if (uri=~"^sip:00355[0-9].*@.*" |<br>>> uri=~"^sip:00358830[0-9].*@.*" |<br>>> uri=~"^sip:001670.*@.*" |<br>>> uri=~"^sip:001671.*@.*" |
<br>>> uri=~"^sip:00247[0-9].*@.*"<br>>> ) {<br>>> sl_send_reply("409", "Country not in plan");<br>>> break;
<br>>> };<br>>><br>>> regards Christian<br>>><br>><br>><br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> Serusers mailing list<br>> <a href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a><br>> <a href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers
</a><br><br></blockquote></div><br>