<div dir="ltr"><div>Hi,</div><div><br></div><div>I do see this in logs and this seems normal, cause we do store that $sht and in a case if call is cancelled or ended we do not clean that $sht until it resets in 120 seconds, so if any register arrives without call during that 120 seconds, this is what you will see. Let assume somebody calls a subscriber, then we do store transaction and we do this "$sht(vtp=>stored::$rU) = 1", if call ends and by some reason without any other call another register arrives from subscriber with same "$tU" within 120 seconds after ($sht(vtp=>stored::$rU) = 1;), then this register will go to PUSHJOIN and we check if transaction is stored, because there is no call it is not stored and then it checks if
$sht(vtp=>stored::$rU) equal to 1, because this is not resetted yet(120 seconds do not pass), ts_append tries to append branch, but there is no branch and that why you see this error.</div><div><br></div><div>I would like to add that for me this error seems harmless and everything works flawlessly.<br>
</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Jurijs<br></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 25, 2020 at 2:39 PM Anthony Alba <<a href="mailto:ascanio.alba7@gmail.com">ascanio.alba7@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Do you ever see the following in your logs in route[REGISTER] from the<br>
callee user?<br>
I think this happens when<br>
1. All transactions have been cleaned up by tsilo, so nothing to append<br>
2. $sht(vtp=>stored::$tU) has not timed out in the 120s<br>
3. and $tU/callee also just happens to re-REGISTER before<br>
$sht(vtp=>stored::$tU) is removed<br>
<br>
I guess it is harmless but it is an eyesore to my logs manager, any<br>
clever tricks<br>
<br>
I think this code logic<br>
if ($var(hjoin)==0)<br>
{<br>
if ($var(hstored))<br>
ts_append("location", "$tU");<br>
return;<br>
}<br>
causes the REGISTER of the callee to happen to try to ts_append().<br>
<br>
2020-11-25T20:30:01+08:00 127.0.0.1 tsilo.ts_append()<br>
<a href="mailto:sip%3Acharles@voice.example.com" target="_blank">sip:charles@voice.example.com</a><br>
2020-11-25T20:30:01+08:00 127.0.0.1 ERROR: tsilo [ts_append.c:64]:<br>
ts_append(): failed to retrieve record for<br>
<a href="mailto:sip%3Acharles@voice.zenquark.com" target="_blank">sip:charles@voice.zenquark.com</a><br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>