<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    I did a small test myself with following config and avp(x) was
    printed ok in failure route. All looks fine, so check to see if you
    don't delete them directly somehow, avp_print() should help printing
    all avps, as I said in previous email.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    route {<br>
    <br>
    &nbsp;&nbsp;&nbsp; $avp(x) = "abc";<br>
    &nbsp;&nbsp;&nbsp; xlog("====-RR avp(x) [$avp(x)]\n");<br>
    <br>
    &nbsp;&nbsp;&nbsp; $uac_req(method)="OPTIONS";<br>
    &nbsp;&nbsp;&nbsp; $uac_req(ruri)=<a class="moz-txt-link-rfc2396E" href="sip:127.0.0.1:9">"sip:127.0.0.1:9"</a>;<br>
    &nbsp;&nbsp;&nbsp; $uac_req(furi)=<a class="moz-txt-link-rfc2396E" href="sip:127.0.0.1">"sip:127.0.0.1"</a>;<br>
    &nbsp;&nbsp;&nbsp; $uac_req(turi)=<a class="moz-txt-link-rfc2396E" href="sip:127.0.0.1">"sip:127.0.0.1"</a>;<br>
    &nbsp;&nbsp;&nbsp; uac_req_send();<br>
    <br>
    &nbsp;&nbsp;&nbsp; xlog("====#RR avp(x) [$avp(x)]\n");<br>
    <br>
    &nbsp;&nbsp;&nbsp; t_on_failure("x");<br>
    &nbsp;&nbsp;&nbsp; t_relay_to("udp:127.0.0.1:9");<br>
    &nbsp;&nbsp;&nbsp; xlog("====*RR avp(x) [$avp(x)]\n");<br>
    &nbsp;&nbsp;&nbsp; exit;<br>
    }<br>
    <br>
    failure_route[x] {<br>
    &nbsp;&nbsp;&nbsp; xlog("====+FR avp(x) [$avp(x)]\n");<br>
    }<br>
    <br>
    On 9/13/11 5:02 PM, Daniel-Constantin Mierla wrote:
    <blockquote cite="mid:4E6F707C.2030907@gmail.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Hello,<br>
      <br>
      On 9/13/11 3:04 PM, Vitaliy Aleksandrov wrote:
      <blockquote
cite="mid:CANz6d4LE48TaZ3y_fS5MxXv3ekXBfy6xPmiL0qYq1BNXDK01mQ@mail.gmail.com"
        type="cite">Hello,
        <div>i tried with a latest 3.1 and now avps works after
          uac_req_send, but i can't get avp values from onreply and
          failure routes.</div>
      </blockquote>
      <br>
      do you mean no avp is available in onreply and failure routes but
      they are available in request route block up to t_relay()? Have
      you used avp_print() from avpops to print the list of all avps (at
      INFO level)?<br>
      <br>
      Cheers,<br>
      Daniel<br>
      <blockquote
cite="mid:CANz6d4LE48TaZ3y_fS5MxXv3ekXBfy6xPmiL0qYq1BNXDK01mQ@mail.gmail.com"
        type="cite">
        <div><br>
          <div class="gmail_quote">On Mon, Sep 12, 2011 at 10:21 AM,
            Daniel-Constantin Mierla <span dir="ltr">&lt;<a
                moz-do-not-send="true" href="mailto:miconda@gmail.com"
                target="_blank">miconda@gmail.com</a>&gt;</span> wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
                <br>
                the bug was associated with an internal tm function used
                to send the request. Can you try again with latest
                branch 3.1, over the weekend I backported the fix. Let
                me know if works now for you.<br>
                <br>
                Thanks,<br>
                Daniel
                <div>
                  <div><br>
                    <br>
                    On 9/9/11 3:33 PM, Vitaliy Aleksandrov wrote: </div>
                </div>
                <blockquote type="cite">
                  <div>
                    <div>There is a bug in UAC module. uac_req_send
                      doesn't restore avps.
                      <div>I tried to backport your patch to 3.1 but
                        with no success.&nbsp;</div>
                      <div><br>
                      </div>
                      <div>Could you add this patch to a new stable
                        release ?</div>
                      <br>
                      <fieldset></fieldset>
                      <br>
                    </div>
                  </div>
                  <pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
                </blockquote>
                <font color="#888888"> <br>
                  <pre cols="72">-- 
Daniel-Constantin Mierla -- <a moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a moz-do-not-send="true" href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a>
<a moz-do-not-send="true" href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
                </font></div>
            </blockquote>
          </div>
          <br>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>