From federico.cabiddu@gmail.com Tue Nov 3 11:47:28 2020 From: Federico Cabiddu To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] tsilo - failure to add branches (-1) Date: Tue, 03 Nov 2020 11:46:49 +0100 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1088517228==" --===============1088517228== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Jurijs, I had a look at the logs but they are confusing: looks like there are two calls (transactions) stored by tsilo and the ts_append is called only for one. In the logs you sent: 1) row 19: an INVITE comes with callid 9741c821-93b2-1239-0599-024233fefdc7 2) row 60: since there is no contact the transaction is suspended (transaction hash:id=3D9467:1575872173) 3) row 132: a REGISTER is received from the user for which the transaction was suspended 4) row 193 onward: the transaction 9467:1575872173 is resumed, the INVITE is sent out and the transaction stored by tsilo 5) row 262: another REGISTER from the same instance (same sip.instance and received) is received 6) ts_append is called but the transaction hash:id is 16864:783220347 and the callid is 3ed4a6c3051ea46b50487a0d1b5b25ec(a)10.10.0.0: when has this transaction been stored? I couldn't find anywhere in the logs Which version of kamailio are you using? Are you setting the "use_domain" tsilo parameter? First I'd suggest trying to call ts_store specifying the r-uri, as you do for ts_append. Then could you please retry the scenario being sure that there is only one transaction stored? Thank you, Federico On Sat, Oct 31, 2020 at 5:16 PM Jurijs Ivolga wrote: > Hi, > > Any ideas regarding "t_append_branches(): failure to add branches (-1)"? > > Is there a way somehow to dump what ts_append handover towards tm? I think > if I would be able to see this I will be able to understand what is wrong. > I tried tm:local-request and failure route and branch route, but these > routes are not executed when this error happens. > > Maybe the issue is that the TLS connection is established between Kamailio > and UAC what is in front my Register and this Register kamailio just tries > to connect directly towards UAC and it fails? At least this is my idea why > this might fail. > > Jurijs > > > On Thu, Oct 29, 2020 at 8:38 AM Jurijs Ivolga > wrote: > >> Hi Federico, >> >> Indeed I had a messed up config at that point. I cleaned it up, but still >> had the same problem. >> >> Full log in attachment. >> >> Here is some part of it: >> >> 45(51) DEBUG: {1 21 REGISTER 6z~FzexPro} tsilo [ts_append.c:72]: >>> ts_append(): transaction 16864:783220347 found for >>> sip:1443452187102-0af7c6035717-0001(a)voipstaging.myappapp.net, going to >>> append branches >>> 45(51) DEBUG: {1 21 REGISTER 6z~FzexPro} tm [t_lookup.c:1612]: >>> t_lookup_ident_filter(): transaction found >>> 45(51) DEBUG: {1 21 REGISTER 6z~FzexPro} registrar [lookup.c:306]: >>> lookup_helper(): contact for [1443452187102-0af7c6035717-0001] found by >>> address >>> 45(51) DEBUG: {1 21 REGISTER 6z~FzexPro} tm [t_append_branches.c:77]: >>> t_append_branches(): transaction 16864:783220347 in status 180 >>> 45(51) DEBUG: {1 21 REGISTER 6z~FzexPro} tm [t_append_branches.c:99]: >>> t_append_branches(): Call 3ed4a6c3051ea46b50487a0d1b5b25ec(a)10.10.0.0: 1 >>> (0) outgoing branches >>> 45(51) DEBUG: {1 21 REGISTER 6z~FzexPro} tm [t_append_branches.c:163]: >>> t_append_branches(): Call 3ed4a6c3051ea46b50487a0d1b5b25ec(a)10.10.0.0: 1 >>> (0) outgoing branches after clear_branches() >>> 45(51) ERROR: {1 21 REGISTER 6z~FzexPro} tm [t_append_branches.c:172]: *t= _append_branches(): >>> failure to add branches (-1)* >>> 45(51) INFO: {1 21 REGISTER 6z~FzexPro}