Hello, if there are no errors reported by Kamailio, maybe the outgoing queue for the socket is full and the kernel discards messages, check with netstat.
Another option could be that the sngrep fails to capture it, maybe the src/dst ports are random and I do not now what are the rules sngrep use for catching sip traffic. Cheers, Daniel On 18.07.24 15:02, Jon Bonilla (Manwe) via sr-users wrote: > 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:[email protected]>;tag=as5311c3a7#015#012To: <sip: > 1.1.1.138>;tag=054524a74bcccf444a0f08f67c5b7657.d07b5401#015#012Call-ID: > [email protected]: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 > > > > > -- > PekePBX, the multitenant PBX solution > https://pekepbx.com > > __________________________________________________________ > Kamailio - Users Mailing List - Non Commercial Discussions > To unsubscribe send an email to [email protected] > Important: keep the mailing list in the recipients, do not reply only to the > sender! > Edit mailing list options or unsubscribe: -- Daniel-Constantin Mierla (@ asipto.com) twitter.com/miconda -- linkedin.com/in/miconda Kamailio Consultancy, Training and Development Services -- asipto.com __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
