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><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br>> thanks for further investigation. Indeed, the avps were not backed up/restored when sending self-generated request.<br>
><br>> 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("BEFORE UAC: avp(s:testavp) = $avp(s:testavp)\n");<br> avp_print();<br><br> $uac_req(method)="SPAM";<br> $uac_req(ruri)="<a href="http://sip:store@127.0.0.1:5160">sip:store@127.0.0.1:5160</a>";<br>
$uac_req(furi)="<a href="mailto:sip%3Akamailio@sipgate.net">sip:kamailio@sipgate.net</a>";<br> $uac_req(hdrs)="Content-Type: text/csv\r\n";<br> $uac_req(body)="foo bar baz";<br>
uac_req_send();<br><br> xlog("AFTER UAC: avp(s:testavp) = $avp(s:testavp)\n");<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: <script>: 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=<testavp><br>
Aug 2 09:09:10 flake /usr/sbin/kamailio[20378]: INFO: avpops [avpops_impl.c:1340]: #011#011#011val_str=<ThisIsJustATest / 15><br>Aug 2 09:09:10 flake /usr/sbin/kamailio[20378]: ERROR: <script>: AFTER UAC: avp(s:testavp) = <null><br>
Aug 2 09:09:10 flake /usr/sbin/kamailio[20379]: ERROR: <script>: DEFAULT REPLY ROUTE: avp(s:testavp) = <null><br>Aug 2 09:09:10 flake /usr/sbin/kamailio[20380]: ERROR: <script>: REPLY ROUTE REPLY_ONE: avp(s:testavp) = <null><br>
Aug 2 09:09:13 flake /usr/sbin/kamailio[20379]: ERROR: <script>: FAILURE ROUTE FAIL_ONE: avp(s:testavp) = <null><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: <script>: 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=<testavp><br>
Aug 2 09:26:52 flake /usr/sbin/kamailio[22676]: INFO: avpops [avpops_impl.c:1340]: #011#011#011val_str=<ThisIsJustATest / 15><br>Aug 2 09:26:52 flake /usr/sbin/kamailio[22676]: ERROR: <script>: 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=<testavp><br>
Aug 2 09:26:52 flake /usr/sbin/kamailio[22676]: INFO: avpops [avpops_impl.c:1340]: #011#011#011val_str=<ThisIsJustATest / 15><br>Aug 2 09:26:52 flake /usr/sbin/kamailio[22675]: ERROR: <script>: DEFAULT REPLY ROUTE: avp(s:testavp) = <null><br>
Aug 2 09:26:52 flake /usr/sbin/kamailio[22674]: ERROR: <script>: 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=<testavp><br>Aug 2 09:26:52 flake /usr/sbin/kamailio[22674]: INFO: avpops [avpops_impl.c:1340]: #011#011#011val_str=<ThisIsJustATest / 15><br>
Aug 2 09:26:54 flake /usr/sbin/kamailio[22676]: ERROR: <script>: 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=<testavp><br>Aug 2 09:26:54 flake /usr/sbin/kamailio[22676]: INFO: avpops [avpops_impl.c:1340]: #011#011#011val_str=<ThisIsJustATest / 15><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>