<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello,<br>
<br>
One alternative would be to use the drouting module to store the
prefix list for the premium / special services routes, and use
do_routing() just for matching those prefixes - if you have a
match, simply reject the call.<br>
<br>
Best Regards,<br>
<pre class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
On 31.08.2014 03:48, Nick Cameo wrote:<br>
</div>
<blockquote
cite="mid:CAGWRaZbF=yxXXF8JX5EA8W_T0anTWHzs6gLffBYDTKXKmYnnuA@mail.gmail.com"
type="cite">
<div dir="ltr">Hello Everyone,
<div><br>
</div>
<div style="">We would like to stop users from trying to
terminate calls to premium and special</div>
<div style="">services routes. Most vendors already block this
however, just in case we come</div>
<div style="">across one that does not, we would like to address
the issue on our side.</div>
<div style=""><br>
</div>
<div style="">What we have come up with is storing the codes in
a MySQL db, and use</div>
<div style="">memchached to dip into the table on interval and
cache the current info from</div>
<div style="">the persistent storage. Finally, use the cachedb
module to pull the key</div>
<div style="">value pair from the memcached on every call.</div>
<div style=""><br>
</div>
<div style="">Any other approaches or suggestions would be
greatly appreciated. Just</div>
<div style="">weighing in our options.</div>
<div style=""><br>
</div>
<div style="">Thanks in Advance,</div>
<div style=""><br>
</div>
<div style="">Nick.</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>