<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Thank you for the responses! As a follow up question, how do companies with large loads on their Kamailios handle restarts especially considering the CANCELs?</p>
<p><br>
What is a good (business) process to restart a Kamailio without incurring any interruptions at all? What other components in the infrastructure would be in place and which ones are in use in the wild?</p>
<p><br>
</p>
<p>// Samuel</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org> on behalf of Sebastian Damm <damm@sipgate.de><br>
<b>Sent:</b> Thursday, July 13, 2017 2:39:39 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] What happens to calls when Kamailio restarts?</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi,<br>
<br>
On Wed, Jul 12, 2017 at 11:53 AM, Alex Balashov<br>
<abalashov@evaristesys.com> wrote:<br>
> All SIP messages passing through the proxy can be forwarded statelessly<br>
> and based on properties of the SIP message alone.<br>
<br>
There's one thing that could happen: Calls that get cancelled after a<br>
restart, could possibly keep on ringing on the far end. At least if<br>
you check for an active transaction in your kamailio config.<br>
<br>
  if (!t_check_trans()) {<br>
      sl_send_reply("481", "Call/Transaction does not exist");<br>
      xlog("L_ERR", "CANCEL: found no matching transaction F=$fu T=$tu<br>
R=$ru\n");<br>
      return;<br>
  }<br>
<br>
And if you do some sort of random dispatching, CANCELs could end up on<br>
a different gateway.<br>
<br>
But other than that, a restart shouldn't cause much trouble.<br>
Especially in-call requests get routed by Route headers only.<br>
<br>
Regards,<br>
Sebastian<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
sr-users@lists.kamailio.org<br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div>
</span></font>
</body>
</html>