<html><body bgcolor="#FFFFFF"><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 type="cite"><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" target="_new">Find out more.</a>
</div></blockquote><blockquote type="cite"><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></body></html>