<div>Hi list,</div><div><br></div><div>I use Kamailio 3.2.2 as TLS&lt;=&gt;TCP gateway this is working well, but if I create some traffic by SIPP</div><div>then Kamailio response time increase with every new call, seems to be that Kamailio process call by call. </div>
<div>I made a test with 30caps then after ~200calls Kamailio need ~3s to response an initial INVITE from the PBX.</div><div>This delay seems to be increased with each call.</div><div><br></div><div>test scenario:</div><div>
<br></div><div>SIPP UAC---TCP---PABX---TLS---Kamailio---TCP---SIPP UAS</div><div><br></div><div>1.1.1.1 = PABX</div><div>2.2.2.2 = SIPP UAS</div><div>5.5.5.5 = Kamailio</div><div><br></div><div><br></div><div>if ($si == &quot;1.1.1.1&quot;) # from PABX</div>
<div>    {</div><div>     xlog(&quot;L_INFO&quot;,&quot;FROM PABX: $rm, $ci\n&quot;);</div><div>     t_on_reply(&quot;1&quot;);</div><div>     force_send_socket(tcp:<a href="http://5.5.5.5:5060">5.5.5.5:5060</a>);</div><div>
     rewritehostport(&quot;<a href="http://2.2.2.2:5070">2.2.2.2:5070</a>&quot;);</div><div>     t_relay_to_tcp(&quot;2.2.2.2&quot;,&quot;5070&quot;);</div><div>     exit;</div><div>    };</div><div><br></div><div>I got all the calls in a single TLS connection from the PBAX so increasing of TCP childs</div>
<div>doesn&#39;t help. I also already tried to adjust some TCP buffers and played with TCP_ASYNC.</div><div><br></div><div>With UDP / TCP it&#39;s better, is really the TLS/openssl is the bottleneck or the way I relay</div>
<div>the request?   </div><div><br></div><div>The test machine has only 512MB RAM and is a single core cpu (2,8GHZ), but 30caps isn&#39;t much?</div><div><br></div><div>Any suggestions?</div><div><br></div><div>many thanks,</div>
<div>Andreas</div><div><br></div>