Hello,

Recently encountered an issue with tsilo (that is using t_append_branches), but not sure found a root cause.

So, I have a call, but aparently there are some "dead" TCP connections in a "location" table
modparam("usrloc", "handle_lost_tcp", 0)

On call initialtion, INVITE's are sent to "last seen" location, but aparently there is no answer and I assume it's in a state "trying to establish TCP connection"
Obviously, there is no "100 Trying" answer on any outgoing INVITE.

Than, a REGISTER comes from a contact, that is supposed to be called.
UsualĀ 
ts_append("location", "$tu");
is called, but in the logs I see
[REGISTER] tm [t_append_branches.c:208]: t_append_branches(): failure to add branches (-1)

If there is an active TCP connection, branches are added as expected. I'm getting this only in a case of trying to establish a call to a "dead" TCP connection.

What am I missing here or it sounds like a bug?
--
Best regards,
Ihor (Igor)