[Kamailio-Users] rewriteuser( ) with avp
Alex Balashov
abalashov at evaristesys.com
Fri Aug 28 22:29:34 CEST 2009
The rewriteuser() function belongs to a class of old core functions
that do not recognize pseudovariable arguments.
Most pseudovariables are read-only. However, the ones related to RURI
are mutable. Use:
$rU = $avp(i:8);
--
Sent from mobile device
On Aug 28, 2009, at 4:04 PM, Alex R.S.M <alex_rsm at hotmail.com> wrote:
> Hi,
>
> I'm trying to change "username" field of URI in the INT message.
> When using rewriteuser() function with avp variable as below, the
> username is changed to $avp(i:8) itself instead of the value of the
> avp.
>
> rewriteuser("$avp(i:8)");
>
> I've tried all sorts of diff formats and none of them replace
> username with the value of avp variable.:
>
> rewriteuser($avp(i:8));
> rewriteuser("avp(i:8)");
>
> is this a bug?
>
> Thanks,
> A-RS
>
>
>
>
>
> Windows Live: Keep your friends up to date with what you do online.
> Find out more.
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/users/attachments/20090828/40cf9f4c/attachment.htm>
More information about the Users
mailing list