<!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">
Hi Pasan,<br>
<br>
There is no way to disable the domain checking when using this
function. A simpler approach will be to perform a raw query directly
from the script (anyway the module is doing one) :<br>
avp_db_query("select username from uri where username=$au and
uri_user=$fu", "$avp(uri) );<br>
if ($rc<0) { does not exist }<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 03/08/2012 01:17 PM, Pasan Meemaduma wrote:
<blockquote
cite="mid:1331205438.46401.YahooMailNeo@web45206.mail.sp1.yahoo.com"
type="cite">
<div style="color: rgb(0, 0, 0); background-color: rgb(255, 255,
255); font-family: times new roman,new york,times,serif;
font-size: 10pt;">
<div><span class="tab"></span>Hi Guys,</div>
<div><br>
</div>
<div><br>
</div>
<div>I'm just stuck in with something with uri table. <br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>I have different DNS entries and people use server IP as
well therefore I have to have duplicate entries in uri table
if I need</div>
<div>to alias `From` user. This increase db load . <br>
</div>
<div><br>
</div>
<div>Is there way that we can turn off realm checking in
check_from () when modparam("uri_db", "use_uri_table", 1) ?</div>
<div><br>
</div>
<div>Or else is there a way I can replace realm part of a Digest
Header to a common string so that I can have single entry in
uri table ?<br>
</div>
<div><br>
</div>
<div>If I don't have both entires as below , If the Customer
uses IP or DNS the check_from check_to fail :(</div>
<div><br>
</div>
+----+----------+---------------+----------+---------------------+<br>
<div>| id | username | domain | uri_user |
last_modified |<br>
+----+----------+---------------+----------+---------------------+<br>
| 1 | 1001 | 192.168.102.5 | 1001 | 2012-01-09
17:21:42 |<br>
| 4 | 1001 | voip.somewhere.com | 1001 | 2012-01-09
17:36:32 |<br>
+----+----------+---------------+----------+---------------------+<br>
</div>
<div><br>
</div>
<div>I tried using replace_all(re,txt) but it didn't work.</div>
<div><br>
</div>
<div><br>
</div>
<div>any suggestions would be appreciated</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>Pasan<br>
</div>
</div>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
</body>
</html>