<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <tt>Hi,<br>
      <br>
      Not really understanding what you want to do with $avp(username) ?<br>
      <br>
      If you want to change the RURI, you can directly do like:<br>
           $rU = </tt><tt>$avp(username) ; # change only username part<br>
           $ru = "sip:" + </tt><tt>$avp(username) + "@my_domain" ;
      #change whole URI.<br>
    </tt><tt><br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <br>
    On 02/06/2013 04:53 AM, 朱彬 wrote:
    <blockquote
cite="mid:CA+4bmWm4ZtNW8-ny4pS6Rgumuc+3xLOtthAcpaXL46Zjg1W9+w@mail.gmail.com"
      type="cite">Hi:<br>
      I occur some problems during modifing the opensips.cfg. I have got
      the username from the database and stored it in the avp(username),
      but i want to use modify the value of avp(username) as<a class="moz-txt-link-rfc2396E" href="sip:username@domain">"sip:
      username@domain"</a>. I tried to change it like  $avp(uri) =
      "sip:"+$avp(username)+"@
      <div id=":bc">domain"; so that i can use the function
        avp_pushto("$ru", "$avp(uri)"), but it doesn't work. Is there
        any other ways reach this target?<br>
        <br>
        PS: i do want to use avp_pushto("$ru/username",
        "$avp(username)"), because the domain is different.<br>
        <br>
        bin zhu<br>
        Thanks!</div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
  </body>
</html>