[OpenSIPS-Users] UAC_REPLACE_TO function problem
Anca Vamanu
anca at opensips.org
Mon Oct 4 11:51:32 CEST 2010
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:9558815007 at myipaddress URI
> -- sip:14163043923 at mydomain
>
> The uac_relace_to is not wordking.
>
> Am I missing some thing?
>
> Regards,
> --
> Wesley Volcov
> Email: wesleyvolcov at gmail.com <mailto:wesleyvolcov at gmail.com>
> Messenger: volcov at live.com <mailto:volcov at live.com>
> Mobile: +55 11 9989-5348
> Website: http://volcov.blogspot.com
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20101004/6afac889/attachment.htm
More information about the Users
mailing list