Hi Wesley,
The uac_replace_to function does exactly what it saya, it replaces the
To header
(http://www.opensips.org/html/docs/modules/devel/uac.html#id271006), 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);
Regards,
--
Anca Vamanu
www.voice-system.ro
On 10/01/2010 09:16 PM, Wesley Volcov wrote:
Hi List!
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.
I'm using opensips 1.6.2 version.
I have the follow configuration in my opensips.cfg:
if (alias_db_find("dbaliases", "$tu", "$var(to_alias)", "d")) {
uac_replace_to("$var(to_alias)");
xlog(" TEST -- $var(to_alias) URI -- $ru");
};
But, on my log I have:
/usr/local/sbin/opensips[3372]: TEST -- sip:9558815...@myipaddress URI
-- sip:14163043...@mydomain
The uac_relace_to is not wordking.
Am I missing some thing?
Regards,
--
Wesley Volcov
Email: wesleyvol...@gmail.com <mailto:wesleyvol...@gmail.com>
Messenger: vol...@live.com <mailto:vol...@live.com>
Mobile: +55 11 9989-5348
Website: http://volcov.blogspot.com
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users