Hi all
version 5.7.6 Debian 12
I'm having issues with a kamailio server not sending 200 to some OPTIONS requests. It does send 200 to some subscribers but not 100% of the time to 100% of subs. I have enabled debug=3 in that server and this is what I found:
If the log says that it found existing tcp connection and it's reusing it I can't see the 200ok in a sngrep capture. Example:
<core> [core/receive.c:126]: sip_check_fline(): first line indicates a SIP reply
<core> [core/tcp_main.c:1722]: _tcpconn_find(): found connection by id: 2
<core> [core/tcp_main.c:2614]: tcpconn_send_put(): send from reader (360359 (18)), reusing fd
<core> [core/tcp_main.c:2845]: tcpconn_do_send(): sending...
<core> [core/tcp_main.c:2881]: tcpconn_do_send(): after real write: c= 0x7fb0faa893d8 n=384 fd=14 <core> [core/tcp_main.c:2882]: tcpconn_do_send(): buf=#012SIP/2.0 200 Keepalive#015#012Via: SIP/2.0/TCP 10.35.190.105:5060;branch=z9hG4bK15ebf764;rport=55894;received=1.1.1.186#015#012From: "Unknown" sip:contesta01@10.35.190.105;tag=as5311c3a7#015#012To: <sip: 1.1.1.138>;tag=054524a74bcccf444a0f08f67c5b7657.d07b5401#015#012Call-ID: 15dcd38c46f915576ded132a11d8ff4c@10.35.190.105:5060#015#012CSeq: 102 OPTIONS#015#012Server: aaa SBC#015#012Content-Length: 0#015#012#015#012
<core> [core/receive.c:531]: receive_msg(): request-route executed in: 302 usec
On the other side, if kamailio doesn't find an existing tcp connection (at least nothing in the logs about that) I can see the 200 ok in sngrep. Example:
<core> [core/receive.c:126]: sip_check_fline(): first line indicates a SIP reply
<core> [core/receive.c:531]: receive_msg(): request-route executed in: 295 usec
All subs use tcp. And the kamailio.cfg is very simple regarding OPTIONS: Sanity, check maxfwd and sl_send_reply(200).
Any hints?
cheers,
Jon