<div dir="ltr">Hi Giovanni,<div>are you using sip instances and the client reconnecting is the same?</div><div>There is currently a limitation in the module which prevent it from working with sip.instance, I had in mind to fix it since a while but I still haven't found the time to work on it.</div><div>If it's the case, try not using sip.instance.</div><div><br></div><div>Regards,</div><div><br></div><div>Federico</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 6, 2016 at 1:45 PM, gmele <span dir="ltr"><<a href="mailto:giovanni.mele@nagra.com" target="_blank">giovanni.mele@nagra.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Federico,<br>
<br>
thanks for your answer. We applied the parameter and set it to 1. we also<br>
change some of our config:<br>
<br>
Transaction store:<br>
===========<br>
<span class=""><br>
route[RELAY] {<br>
        # enable additional event routes for forwarded requests<br>
        # - serial forking, RTP relaying handling, a.s.o.<br>
        if (is_method("INVITE|BYE|SUBSCRIBE|UPDATE")) {<br>
                if(!t_is_set("branch_route")) t_on_branch("MANAGE_BRANCH");<br>
        }<br>
        if (is_method("INVITE|SUBSCRIBE|UPDATE")) {<br>
                if(!t_is_set("onreply_route")) t_on_reply("MANAGE_REPLY");<br>
        }<br>
        if (is_method("INVITE")) {<br>
                if(!t_is_set("failure_route"))<br>
t_on_failure("MANAGE_FAILURE");<br>
        }<br>
<br>
        if (!t_relay(PROXY_IP, PROXY_PORT)) {<br>
                sl_reply_error();<br>
        }<br>
        if (is_method("INVITE")) {<br>
</span>                *ts_store("$tu");*<br>
<span class="">                $sht(vtp=>stored::$tu) = 1;<br>
                route(SENDPUSH);<br>
        }<br>
        exit;<br>
}<br>
<br>
route[INVRESUME] {<br>
        statsd_gauge("SIPRegistrar.InviteResumed", "+1");<br>
        lookup("location");<br>
        t_relay(PROXY_IP, PROXY_PORT);<br>
</span>        *ts_store("$tu");*<br>
<span class="">        $sht(vtp=>stored::$tu) = 1;<br>
}<br>
<br>
<br>
</span>Transaction append:<br>
=============¨<br>
<span class=""><br>
route[PUSHJOIN] {<br>
        $var(hjoin) = 0;<br>
        lock("$tu");<br>
        $var(hjoin) = $sht(vtp=>join::$tu);<br>
        $var(hstored) = $sht(vtp=>stored::$tu);<br>
        $sht(vtp=>join::$tu) = $null;<br>
        unlock("$tu");<br>
<br>
        if ($var(hjoin)==0) {<br>
                if ($var(hstored)) {<br>
</span>                        xlog("L_ERROR", "ts_append(location, $tu)");<br>
                        *ts_append("location", "$tu");*<br>
<span class="">                }<br>
                return;<br>
        }<br>
<br>
        $var(id_index) = $(var(hjoin){s.select,0,:}{<a href="http://s.int" rel="noreferrer" target="_blank">s.int</a>});<br>
        $var(id_label) = $(var(hjoin){s.select,1,:}{<a href="http://s.int" rel="noreferrer" target="_blank">s.int</a>});<br>
        t_continue("$var(id_index)", "$var(id_label)", "INVRESUME");<br>
}<br>
<br>
<br>
</span>Unfortunately, it seems we still have a problem because when ts_append is<br>
called, we get an error:<br>
<br>
ERROR: <script>: ts_append(location, <a href="mailto:sip%3Agiovanni.mele@mydomain.com">sip:giovanni.mele@mydomain.com</a>)<br>
ERROR: tm [t_append_branches.c:168]: t_append_branches(): ERROR:<br>
t_append_branch: failure to add branches (-1)<br>
<br>
In the tsilo table, we have:<br>
<br>
Dump ts.dump :<br>
                Size: 2048<br>
        R-URIs: {<br>
                R-URI: <a href="mailto:sip%3Agiovanni.mele@mydomain.com">sip:giovanni.mele@mydomain.com</a><br>
                Hash: -1300472314<br>
                Transactions: {<br>
                        Transaction: {<br>
                                Tindex: 29399<br>
                                Tlabel: 1320156092<br>
                        }<br>
                }<br>
        }<br>
        Stats: {<br>
                RURIs: 1<br>
                Max-Slots: 1<br>
                Transactions: 1<br>
        }<br>
<br>
and in the location table, we have:<br>
<br>
| 2722 | uloc-577cd29e-1102-c | giovanni.mele | NULL   |<br>
sip:giovanni.mele@123.123.123.123:58313;app-id=289988461719;pn-type=google;pn-tok=APA91bEeHLdOx4LnaRZW-V_TUFN0rdI5e-9hVNN-7zKqO4vGelfg6Pc-Jj6W2l75mE7BZ1L6d2J6ydYpBuh8-Fk5;transport=tls<br>
| NULL     | NULL | 2016-07-06 14:23:31 | -1.00 | CKHD~MMv8~ |   21 |<br>
2016-07-06 13:23:31 |     0 |      0 | LinphoneAndroid/2.5.1-2662-g758a89c<br>
(belle-sip/1.4.2) | udp:<a href="http://213.244.194.153:4060" rel="noreferrer" target="_blank">213.244.194.153:4060</a> |    NULL |<br>
<urn:uuid:d0df1f0d-57bf-46dc-bf9b-75f2a5fe68fe> |      0 |         0 |<br>
-1 |         0 |         4 |<br>
<br>
<br>
Can you help me to understand why the ts_append didn't create the new branch<br>
for the current transaction? Is it linked to the username in the location<br>
table not having the domain set?<br>
<br>
Thx<br>
<br>
Giovanni<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://sip-router.1086192.n5.nabble.com/tsilo-ts-append-problem-tp150184p150195.html" rel="noreferrer" target="_blank">http://sip-router.1086192.n5.nabble.com/tsilo-ts-append-problem-tp150184p150195.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>