Hi!
Trying to debug a case where I don’t get an event_route execution for a TCP connection.
IN my case, Kamailio opens a new TCP connection to another server in order to send an in-dialog request. When that connection closes, there’s no event route being executed.
The tcpops module use default config, which means that the event route tcp:closed is globally enabled.
I’ve been digging in the tcp code but can’t really figure it out… ;-)
Cheers, /O
On 29 Jun 2016, at 17:41, Olle E. Johansson oej@edvina.net wrote:
Hi!
Trying to debug a case where I don’t get an event_route execution for a TCP connection.
IN my case, Kamailio opens a new TCP connection to another server in order to send an in-dialog request. When that connection closes, there’s no event route being executed.
The tcpops module use default config, which means that the event route tcp:closed is globally enabled.
I’ve been digging in the tcp code but can’t really figure it out… ;-)
The lack of answers seems to point to me having to put on a diving suit and go deep into the TCP connection debugging mode.
…or?
/O :-)
Trying to debug a case where I don’t get an event_route execution for a TCP connection.
The lack of answers seems to point to me having to put on a diving suit and go deep into the TCP connection debugging mode.
…or?
Hi Olle,
While I don't have a specific answer to your question, here are a few pointers to some meaningful information (maybe you've seen it already):
- this message by the original author explains the intended behavior and how it was implemented: https://github.com/kamailio/kamailio/pull/454#issuecomment-168128187
- the event route can be triggered from two points in the code: https://github.com/kamailio/kamailio/blob/master/tcp_read.c#L296 https://github.com/kamailio/kamailio/blob/master/tcp_read.c#L306
Hope this helps.
On 07 Jul 2016, at 10:58, Camille Oudot camille.oudot@orange.com wrote:
Trying to debug a case where I don’t get an event_route execution for a TCP connection.
The lack of answers seems to point to me having to put on a diving suit and go deep into the TCP connection debugging mode.
…or?
Hi Olle,
While I don't have a specific answer to your question, here are a few pointers to some meaningful information (maybe you've seen it already):
- this message by the original author explains the intended behavior
and how it was implemented: https://github.com/kamailio/kamailio/pull/454#issuecomment-168128187
- the event route can be triggered from two points in the code:
https://github.com/kamailio/kamailio/blob/master/tcp_read.c#L296 https://github.com/kamailio/kamailio/blob/master/tcp_read.c#L306
Hope this helps.
THank you!
That puts me on track. I don’t believe this TCP connection has a conid, and I need to figure out why. Does outbound TCP connections from Kamailio to any other server get that data structure at all?
When do we assign connection ID’s to a specific tcp/tls/sctp/websocket connection?
/O