[Kamailio-Users] rewriteuser( ) with avp

Alex R.S.M alex_rsm at hotmail.com
Fri Aug 28 22:04:13 CEST 2009


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.
http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20090828/96956d16/attachment.htm>


More information about the sr-users mailing list