<div>Hi list,</div><div><br></div><div>I use Kamailio 3.2.2 as TLS<=>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 == "1.1.1.1") # from PABX</div>
<div> {</div><div> xlog("L_INFO","FROM PABX: $rm, $ci\n");</div><div> t_on_reply("1");</div><div> force_send_socket(tcp:<a href="http://5.5.5.5:5060">5.5.5.5:5060</a>);</div><div>
rewritehostport("<a href="http://2.2.2.2:5070">2.2.2.2:5070</a>");</div><div> t_relay_to_tcp("2.2.2.2","5070");</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'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'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't much?</div><div><br></div><div>Any suggestions?</div><div><br></div><div>many thanks,</div>
<div>Andreas</div><div><br></div>