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...
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@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@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Thank you. I thought they are all RO.
From: abalashov@evaristesys.com To: alex_rsm@hotmail.com Subject: Re: [Kamailio-Users] rewriteuser( ) with avp Date: Fri, 28 Aug 2009 16:29:34 -0400 CC: users@lists.kamailio.org
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@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@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users _________________________________________________________________ Hotmail® is up to 70% faster. Now good news travels really fast. http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:W...
On 28.08.2009 23:39 Uhr, Alex R.S.M wrote:
Thank you. I thought they are all RO.
most of them are, the r/w should have a note about it in PV cookbook, for example: http://www.kamailio.org/dokuwiki/doku.php/pseudovariables:1.5.x#username_in_...
Cheers, Daniel
From: abalashov@evaristesys.com To: alex_rsm@hotmail.com Subject: Re: [Kamailio-Users] rewriteuser( ) with avp Date: Fri, 28 Aug 2009 16:29:34 -0400 CC: users@lists.kamailio.org
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@hotmail.com mailto:alex_rsm@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. <http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009> _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org <mailto:Users@lists.kamailio.org> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Hotmail® is up to 70% faster. Now good news travels really fast. Try it now. http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users