<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thank you. <br>I thought they are all RO.<br><br><hr id="stopSpelling">From: abalashov@evaristesys.com<br>To: alex_rsm@hotmail.com<br>Subject: Re: [Kamailio-Users] rewriteuser( ) with avp<br>Date: Fri, 28 Aug 2009 16:29:34 -0400<br>CC: users@lists.kamailio.org<br><br><div>The rewriteuser() function belongs to a class of old core functions that do not recognize pseudovariable arguments.</div><div><br></div><div>Most pseudovariables are read-only. &nbsp;However, the ones related to RURI are mutable. &nbsp;Use:</div><div><br></div><div>&nbsp;&nbsp; $rU = $avp(i:8);<br><br><div>--</div>Sent from mobile device</div><div><br>On Aug 28, 2009, at 4:04 PM, Alex R.S.M &lt;<a href="mailto:alex_rsm@hotmail.com">alex_rsm@hotmail.com</a>&gt; wrote:<br><br></div><div></div><blockquote><div>
Hi,<br><br>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.<br><br>rewriteuser("$avp(i:8)");<br><br>I've tried all sorts of diff formats and none of them replace username with the value of avp variable.:<br><br>rewriteuser($avp(i:8));<br>rewriteuser("avp(i:8)");<br><br>is this a bug?<br><br>Thanks,<br>A-RS<br><br><br><br><br><br><hr>Windows Live: Keep your friends up to date with what you do online. <a href="http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009">Find out more.</a>
</div></blockquote><blockquote><div><span>_______________________________________________</span><br><span>Kamailio (OpenSER) - Users mailing list</span><br><span><a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a></span><br><span><a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a></span><br><span><a href="http://lists.openser-project.org/cgi-bin/mailman/listinfo/users">http://lists.openser-project.org/cgi-bin/mailman/listinfo/users</a></span></div></blockquote><br /><hr />HotmailŪ is up to 70% faster. Now good news travels really fast.  <a href='http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009' target='_new'>Try it now.</a></body>
</html>