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 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>       xlog(&quot;BEFORE UAC: avp(s:testavp) = $avp(s:testavp)\n&quot;);<br>        avp_print();<br><br>        $uac_req(method)=&quot;SPAM&quot;;<br>        $uac_req(ruri)=&quot;<a href="http://sip:store@127.0.0.1:5160">sip:store@127.0.0.1:5160</a>&quot;;<br>

        $uac_req(furi)=&quot;<a href="mailto:sip%3Akamailio@sipgate.net">sip:kamailio@sipgate.net</a>&quot;;<br>        $uac_req(hdrs)=&quot;Content-Type: text/csv\r\n&quot;;<br>        $uac_req(body)=&quot;foo bar baz&quot;;<br>

        uac_req_send();<br><br>        xlog(&quot;AFTER UAC: avp(s:testavp) = $avp(s:testavp)\n&quot;);<br>        avp_print();<br><br>And with an unpatched 3.1.4 looks like this:<br><br>Aug  2 09:09:10 flake /usr/sbin/kamailio[20378]: ERROR: &lt;script&gt;: BEFORE UAC: avp(s:testavp) = ThisIsJustATest<br>

Aug  2 09:09:10 flake /usr/sbin/kamailio[20378]: INFO: avpops [avpops_impl.c:1328]: p=0x7f7c0c0e95e8, flags=0x0113<br>Aug  2 09:09:10 flake /usr/sbin/kamailio[20378]: INFO: avpops [avpops_impl.c:1332]: #011#011#011name=&lt;testavp&gt;<br>

Aug  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  2 09:09:10 flake /usr/sbin/kamailio[20378]: ERROR: &lt;script&gt;: AFTER UAC: avp(s:testavp) = &lt;null&gt;<br>

Aug  2 09:09:10 flake /usr/sbin/kamailio[20379]: ERROR: &lt;script&gt;: DEFAULT REPLY ROUTE: avp(s:testavp) = &lt;null&gt;<br>Aug  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  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  2 09:26:52 flake /usr/sbin/kamailio[22676]: ERROR: &lt;script&gt;: BEFORE UAC: avp(s:testavp) = ThisIsJustATest<br>

Aug  2 09:26:52 flake /usr/sbin/kamailio[22676]: INFO: avpops [avpops_impl.c:1328]: p=0x7f04261307f8, flags=0x0113<br>Aug  2 09:26:52 flake /usr/sbin/kamailio[22676]: INFO: avpops [avpops_impl.c:1332]: #011#011#011name=&lt;testavp&gt;<br>

Aug  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  2 09:26:52 flake /usr/sbin/kamailio[22676]: ERROR: &lt;script&gt;: AFTER UAC: avp(s:testavp) = ThisIsJustATest<br>

Aug  2 09:26:52 flake /usr/sbin/kamailio[22676]: INFO: avpops [avpops_impl.c:1328]: p=0x7f04261307f8, flags=0x0113<br>Aug  2 09:26:52 flake /usr/sbin/kamailio[22676]: INFO: avpops [avpops_impl.c:1332]: #011#011#011name=&lt;testavp&gt;<br>

Aug  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  2 09:26:52 flake /usr/sbin/kamailio[22675]: ERROR: &lt;script&gt;: DEFAULT REPLY ROUTE: avp(s:testavp) = &lt;null&gt;<br>

Aug  2 09:26:52 flake /usr/sbin/kamailio[22674]: ERROR: &lt;script&gt;: REPLY ROUTE REPLY_ONE: avp(s:testavp) = ThisIsJustATest<br>Aug  2 09:26:52 flake /usr/sbin/kamailio[22674]: INFO: avpops [avpops_impl.c:1328]: p=0x7f04261307f8, flags=0x0113<br>

Aug  2 09:26:52 flake /usr/sbin/kamailio[22674]: INFO: avpops [avpops_impl.c:1332]: #011#011#011name=&lt;testavp&gt;<br>Aug  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  2 09:26:54 flake /usr/sbin/kamailio[22676]: ERROR: &lt;script&gt;: FAILURE ROUTE FAIL_ONE: avp(s:testavp) = ThisIsJustATest<br>Aug  2 09:26:54 flake /usr/sbin/kamailio[22676]: INFO: avpops [avpops_impl.c:1328]: p=0x7f04261307f8, flags=0x0113<br>

Aug  2 09:26:54 flake /usr/sbin/kamailio[22676]: INFO: avpops [avpops_impl.c:1332]: #011#011#011name=&lt;testavp&gt;<br>Aug  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 href="mailto:damm@sipgate.de">damm@sipgate.de</a><br>

<br>sipgate GmbH - Gladbacher Str. 74 - 40219 Düsseldorf<br>HRB Düsseldorf 39841 - Geschäftsführer: Thilo Salmon, Tim Mois<br>Steuernummer: 106/5724/7147, Umsatzsteuer-ID: DE219349391<br><br><a href="http://www.sipgate.de">www.sipgate.de</a> - <a href="http://www.sipgate.at">www.sipgate.at</a> - <a href="http://www.sipgate.co.uk">www.sipgate.co.uk</a><br>