<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Sebastian,<br>
    <br>
    thanks for reporting back the results. On a second thought I updated
    the patch a bit to use a local variable for backup in order to allow
    nested execution of event_route[tm:local-request] which can be
    triggered by sending local generated requests. The commit was:<br>
    <br>
<a class="moz-txt-link-freetext" href="http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=08798a6d06b628fa5888ded867c5d18416b9f013">http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=08798a6d06b628fa5888ded867c5d18416b9f013</a><br>
    <br>
    I will backport to 3.1 soon.<br>
    <br>
    Cheers.<br>
    Daniel<br>
    <br>
    On 8/2/11 9:32 AM, Sebastian Damm wrote:
    <blockquote
cite="mid:CABkWSFxZmyw-FGF+Fqeduq9Y4OV2Ru2OgyFciz=hCih5zc0SeQ@mail.gmail.com"
      type="cite">Hi Daniel,<br>
      <br>
      thanks for looking into it again.<br>
      <br>
      On Mon, Aug 1, 2011 at 2:51 PM, Daniel-Constantin Mierla<br>
      &lt;<a moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;
      wrote:<br>
      &gt; thanks for further investigation. Indeed, the avps were not
      backed up/restored when sending self-generated request.<br>
      &gt;<br>
      &gt; I just committed a patch to tm module in master branch. If
      you can give it a try and report if it works ok, then I will
      backport to 3.1.<br>
      <br>
      OK, I took a default config, added this uac part in RELAY route:<br>
      <br>
      &nbsp; &nbsp; &nbsp; xlog("BEFORE UAC: avp(s:testavp) = $avp(s:testavp)\n");<br>
      &nbsp; &nbsp; &nbsp; &nbsp;avp_print();<br>
      <br>
      &nbsp; &nbsp; &nbsp; &nbsp;$uac_req(method)="SPAM";<br>
      &nbsp; &nbsp; &nbsp; &nbsp;$uac_req(ruri)="<a moz-do-not-send="true"
        href="http://sip:store@127.0.0.1:5160">sip:store@127.0.0.1:5160</a>";<br>
      &nbsp; &nbsp; &nbsp; &nbsp;$uac_req(furi)="<a moz-do-not-send="true"
        href="mailto:sip%3Akamailio@sipgate.net">sip:kamailio@sipgate.net</a>";<br>
      &nbsp; &nbsp; &nbsp; &nbsp;$uac_req(hdrs)="Content-Type: text/csv\r\n";<br>
      &nbsp; &nbsp; &nbsp; &nbsp;$uac_req(body)="foo bar baz";<br>
      &nbsp; &nbsp; &nbsp; &nbsp;uac_req_send();<br>
      <br>
      &nbsp; &nbsp; &nbsp; &nbsp;xlog("AFTER UAC: avp(s:testavp) = $avp(s:testavp)\n");<br>
      &nbsp; &nbsp; &nbsp; &nbsp;avp_print();<br>
      <br>
      And with an unpatched 3.1.4 looks like this:<br>
      <br>
      Aug &nbsp;2 09:09:10 flake /usr/sbin/kamailio[20378]: ERROR:
      &lt;script&gt;: BEFORE UAC: avp(s:testavp) = ThisIsJustATest<br>
      Aug &nbsp;2 09:09:10 flake /usr/sbin/kamailio[20378]: INFO: avpops
      [avpops_impl.c:1328]: p=0x7f7c0c0e95e8, flags=0x0113<br>
      Aug &nbsp;2 09:09:10 flake /usr/sbin/kamailio[20378]: INFO: avpops
      [avpops_impl.c:1332]: #011#011#011name=&lt;testavp&gt;<br>
      Aug &nbsp;2 09:09:10 flake /usr/sbin/kamailio[20378]: INFO: avpops
      [avpops_impl.c:1340]: #011#011#011val_str=&lt;ThisIsJustATest /
      15&gt;<br>
      Aug &nbsp;2 09:09:10 flake /usr/sbin/kamailio[20378]: ERROR:
      &lt;script&gt;: AFTER UAC: avp(s:testavp) = &lt;null&gt;<br>
      Aug &nbsp;2 09:09:10 flake /usr/sbin/kamailio[20379]: ERROR:
      &lt;script&gt;: DEFAULT REPLY ROUTE: avp(s:testavp) = &lt;null&gt;<br>
      Aug &nbsp;2 09:09:10 flake /usr/sbin/kamailio[20380]: ERROR:
      &lt;script&gt;: REPLY ROUTE REPLY_ONE: avp(s:testavp) =
      &lt;null&gt;<br>
      Aug &nbsp;2 09:09:13 flake /usr/sbin/kamailio[20379]: ERROR:
      &lt;script&gt;: FAILURE ROUTE FAIL_ONE: avp(s:testavp) =
      &lt;null&gt;<br>
      <br>
      <br>
      Then I installed the nightly build (Ubuntu Lucid), and tried that
      again:<br>
      <br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22676]: ERROR:
      &lt;script&gt;: BEFORE UAC: avp(s:testavp) = ThisIsJustATest<br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22676]: INFO: avpops
      [avpops_impl.c:1328]: p=0x7f04261307f8, flags=0x0113<br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22676]: INFO: avpops
      [avpops_impl.c:1332]: #011#011#011name=&lt;testavp&gt;<br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22676]: INFO: avpops
      [avpops_impl.c:1340]: #011#011#011val_str=&lt;ThisIsJustATest /
      15&gt;<br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22676]: ERROR:
      &lt;script&gt;: AFTER UAC: avp(s:testavp) = ThisIsJustATest<br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22676]: INFO: avpops
      [avpops_impl.c:1328]: p=0x7f04261307f8, flags=0x0113<br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22676]: INFO: avpops
      [avpops_impl.c:1332]: #011#011#011name=&lt;testavp&gt;<br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22676]: INFO: avpops
      [avpops_impl.c:1340]: #011#011#011val_str=&lt;ThisIsJustATest /
      15&gt;<br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22675]: ERROR:
      &lt;script&gt;: DEFAULT REPLY ROUTE: avp(s:testavp) = &lt;null&gt;<br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22674]: ERROR:
      &lt;script&gt;: REPLY ROUTE REPLY_ONE: avp(s:testavp) =
      ThisIsJustATest<br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22674]: INFO: avpops
      [avpops_impl.c:1328]: p=0x7f04261307f8, flags=0x0113<br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22674]: INFO: avpops
      [avpops_impl.c:1332]: #011#011#011name=&lt;testavp&gt;<br>
      Aug &nbsp;2 09:26:52 flake /usr/sbin/kamailio[22674]: INFO: avpops
      [avpops_impl.c:1340]: #011#011#011val_str=&lt;ThisIsJustATest /
      15&gt;<br>
      Aug &nbsp;2 09:26:54 flake /usr/sbin/kamailio[22676]: ERROR:
      &lt;script&gt;: FAILURE ROUTE FAIL_ONE: avp(s:testavp) =
      ThisIsJustATest<br>
      Aug &nbsp;2 09:26:54 flake /usr/sbin/kamailio[22676]: INFO: avpops
      [avpops_impl.c:1328]: p=0x7f04261307f8, flags=0x0113<br>
      Aug &nbsp;2 09:26:54 flake /usr/sbin/kamailio[22676]: INFO: avpops
      [avpops_impl.c:1332]: #011#011#011name=&lt;testavp&gt;<br>
      Aug &nbsp;2 09:26:54 flake /usr/sbin/kamailio[22676]: INFO: avpops
      [avpops_impl.c:1340]: #011#011#011val_str=&lt;ThisIsJustATest /
      15&gt;<br>
      <br>
      <br>
      Looks exactly as expected. Thanks! I think you can go ahead and<br>
      backport it to 3.1.<br>
      <br>
      Best Regards,<br>
      Sebastian<br>
      <br>
      --<br>
      Dipl.-Inf.<br>
      Sebastian Damm - VoIP-Engineer - <a moz-do-not-send="true"
        href="mailto:damm@sipgate.de">damm@sipgate.de</a><br>
      <br>
      sipgate GmbH - Gladbacher Str. 74 - 40219 D&uuml;sseldorf<br>
      HRB D&uuml;sseldorf 39841 - Gesch&auml;ftsf&uuml;hrer: Thilo Salmon, Tim Mois<br>
      Steuernummer: 106/5724/7147, Umsatzsteuer-ID: DE219349391<br>
      <br>
      <a moz-do-not-send="true" href="http://www.sipgate.de">www.sipgate.de</a>
      - <a moz-do-not-send="true" href="http://www.sipgate.at">www.sipgate.at</a>
      - <a moz-do-not-send="true" href="http://www.sipgate.co.uk">www.sipgate.co.uk</a><br>
      <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>