<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">Hi,</span></font><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font></div><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">Kamailio has some configuration options that logs a msg to the syslog when some config script action takes more time that is expected, the  options are:</span></font></div><div><font color="#333333" face="Arial, sans-serif"><div><ul><li style="font-size:14px">latency_limit_action=500<br></li><ul><li><span style="font-size:14px"><a href="https://www.kamailio.org/wiki/cookbooks/4.1.x/core#latency_limit_action">https://www.kamailio.org/wiki/cookbooks/4.1.x/core#latency_limit_action</a></span></li></ul><li style="font-size:14px">latency_limit_db=500<br></li><ul><li><span style="font-size:14px"><a href="https://www.kamailio.org/wiki/cookbooks/4.1.x/core#latency_limit_db">https://www.kamailio.org/wiki/cookbooks/4.1.x/core#latency_limit_db</a></span></li></ul><li style="font-size:14px">latency_log=2<br></li><ul><li><span style="font-size:14px"><a href="https://www.kamailio.org/wiki/cookbooks/4.1.x/core#latency_log">https://www.kamailio.org/wiki/cookbooks/4.1.x/core#latency_log</a> </span></li></ul></ul></div></font></div><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">The issue could also be related with the TCP write queue, maybe you have set low values on the following parameters:</span></font></div><ul><li>tcp_conn_wq_max </li><ul><li><a href="https://www.kamailio.org/wiki/cookbooks/4.1.x/core#tcp_conn_wq_max">https://www.kamailio.org/wiki/cookbooks/4.1.x/core#tcp_conn_wq_max</a></li></ul><li>tcp_wq_max </li><ul><li><a href="https://www.kamailio.org/wiki/cookbooks/4.1.x/core#tcp_wq_max">https://www.kamailio.org/wiki/cookbooks/4.1.x/core#tcp_wq_max</a></li></ul></ul><div>Other hint is to look for the OS  send Queue, the package could be delayed because the other end is not reading it fast enough:<br><ul><li>netstat -altp<br></li></ul><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">it also will be important try to isolate the issue in terms of SIP, the transaction delayed(UPDATE) is always the same in all situation that the issue occurs? </span></font></div></div><div><br></div><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">Hope that the information above helped you.</span></font></div><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px"><br></span></font></div><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">Regards</span></font></div><div><font color="#333333" face="Arial, sans-serif"><span style="font-size:14px">José</span></font></div></div></div></div></div></div></div></div></div>