<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2018-02-09 15:41 GMT+01:00 Vasiliy Ganchev <span dir="ltr"><<a href="mailto:vancecezar@gmail.com" target="_blank">vancecezar@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"><br></span><span class="gmail-">> As far as I know, after my app is terminated and TCP connection closed<br>
> (or broken), there is no impact in the location database? So UDP/TCP/TLS<br>
> should not make any difference for my setup!<br>
<br>
</span>We use this option (set it 1):<br>
<a href="http://kamailio.org/docs/modules/5.0.x/modules/usrloc#usrloc.p.handle_lost_tcp" rel="noreferrer" target="_blank">http://kamailio.org/docs/<wbr>modules/5.0.x/modules/usrloc#<wbr>usrloc.p.handle_lost_tcp</a><br>
<br>
so the UDP and TCP/TLS behave differently. By default - yes location will<br>
store all records until Expires hit.<span class="gmail-"><br></span></blockquote><div><br></div><div>Good point for me! So i'll keep away from this option. ;)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">
> I understand your warning about TCP: If I have only on TCP branch and it<br>
> fails<br>
> I guess I will have a fast " I'm terribly sorry, server error occurred<br>
> (7/SL)" answer<br>
> and no time for my "pushed" app to be already registered. However, I think<br>
> I can sort this out with a trick (for example, a static branch to keep my<br>
> stuff<br>
> alive?)<br>
<br>
</span>! yes, that is the point, to cope with such case you will need to "reinvent<br>
the wheel".</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> If you get some rational implementation - share it.<span class="gmail-"><br></span></blockquote><div><br></div><div>it's a good trick. If I wish to have a clean control: I "append_branch" to a UDP localhost.</div><div>I could plug an app that will reply 110 Called is Parked and after a some controlled time</div><div>send 408 Timeout.</div><div><br></div><div>t_suspend and t_continue seems similar, but I don't see the ability to configure timeout</div><div>for example.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Just to summarize:<br>
I am not saying that my way is "true", as I had a lot of headache with push<br>
data /storage/control/clean-up.<br>
Another issue was to store push data for several devices per one user.<br>
and a lot of others...<br>
<br>
Goals that were reached:<br>
- delete from location non alive registration asap => so when new INVITE<br>
comes - send push, and do not have mess with nonalive branches.<br>
- handle correctly case when there is no alive regsitrations (t_suspend)<br>
--- sub case here: there is only one registration, it is with push. t_relay<br>
failed, as a result I go to suspend logic as well<br>
<br>
So, long story short: do it your way.<br></blockquote><div><br></div><div>;)</div><div>Tks for sharing.</div><div>Aymeric</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
cheers<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
<br>
<br>
--<br>
Sent from: <a href="http://sip-router.1086192.n5.nabble.com/Users-f3.html" rel="noreferrer" target="_blank">http://sip-router.1086192.n5.<wbr>nabble.com/Users-f3.html</a><br>
<br>
______________________________<wbr>_________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org">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/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><img src="http://sip.antisip.com/am48.png">Antisip - <a href="http://www.antisip.com" target="_blank">http://www.antisip.com</a><br></div>
</div></div>