<!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 text="#000000" bgcolor="#ffffff">
Hi Wesley,<br>
<br>
The uac_replace_to function does exactly what it saya, it replaces the
To header
(<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/devel/uac.html#id271006">http://www.opensips.org/html/docs/modules/devel/uac.html#id271006</a>),
not the RURI. You can replace the RURI simply by doing an assignment of
the pseudovariable $ru, so you will have $ru = $var(to_alias);<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">--
Anca Vamanu
<a class="moz-txt-link-abbreviated" href="http://www.voice-system.ro">www.voice-system.ro</a></pre>
<br>
<br>
<br>
On 10/01/2010 09:16 PM, Wesley Volcov wrote:
<blockquote
cite="mid:AANLkTimx-tOfi7iVOR99328+MEcYS_ULSQxp6w+Z6yFd@mail.gmail.com"
type="cite">Hi List!<br>
<br>
I need to use alias_db module to find if exisits an username associated
a DID number. I'm trying to use the alias_db_find, but it's not work as
it should.<br>
I'm using opensips 1.6.2 version.<br>
<br>
I have the follow configuration in my opensips.cfg:<br>
<br>
if (alias_db_find("dbaliases", "$tu", "$var(to_alias)", "d")) {<br>
uac_replace_to("$var(to_alias)");<br>
xlog(" TEST -- $var(to_alias) URI -- $ru");<br>
};<br>
<br>
But, on my log I have:<br>
<br>
/usr/local/sbin/opensips[3372]: TEST -- <a class="moz-txt-link-freetext" href="sip:9558815007@myipaddress">sip:9558815007@myipaddress</a> URI
-- <a class="moz-txt-link-freetext" href="sip:14163043923@mydomain">sip:14163043923@mydomain</a><br>
<br>
The uac_relace_to is not wordking.<br>
<br>
Am I missing some thing?<br>
<br>
Regards,<br>
-- <br>
Wesley Volcov<br>
Email: <a moz-do-not-send="true" href="mailto:wesleyvolcov@gmail.com">wesleyvolcov@gmail.com</a><br>
Messenger: <a moz-do-not-send="true" href="mailto:volcov@live.com">volcov@live.com</a><br>
Mobile: +55 11 9989-5348<br>
Website: <a moz-do-not-send="true" href="http://volcov.blogspot.com">http://volcov.blogspot.com</a><br>
<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>
</body>
</html>