Hello,

the logs on tcp are mostly about the remote closing the connection. So nothing wrong about tcp reported by kamailio.

Maybe you can look at the tcp connections details via rpc commands and see if you can spot a reason there:
 - http://www.kamailio.org/docs/docbooks/devel/rpc_list/rpc_list.html#core.tcp_info

You can run them via kamcmd.

Cheers,
Daniel


On 09/09/14 17:36, Laurent Schweizer wrote:

 

Hello,

 

I have check again the log file and I see other error   tcp error reading and parsing …

 

Any idea ?

 

Laurent

 

  9 17:27:10 ch38 kamailio[24845]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:27:12 ch38 kamailio[24845]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:27:13 ch38 kamailio[24859]: ERROR: <core> [tcp_read.c:270]: error reading: Connection reset by peer (104)

Sep  9 17:27:13 ch38 kamailio[24859]: ERROR: <core> [tcp_read.c:882]: ERROR: tcp_read_req: error reading

Sep  9 17:27:15 ch38 kamailio[24845]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:27:20 ch38 kamailio[24845]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:27:20 ch38 kamailio[24801]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:27:20 ch38 kamailio[24801]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:27:20 ch38 kamailio[24801]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 17:27:20 ch38 kamailio[24801]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:27:20 ch38 kamailio[24801]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 17:27:20 ch38 kamailio[24801]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:27:24 ch38 kamailio[24845]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:27:29 ch38 kamailio[24845]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:27:33 ch38 kamailio[24845]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:27:49 ch38 kamailio[24717]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:27:49 ch38 kamailio[24717]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:27:49 ch38 kamailio[24717]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 17:27:49 ch38 kamailio[24717]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:27:49 ch38 kamailio[24717]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 17:27:49 ch38 kamailio[24717]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:27:51 ch38 kamailio[24821]: ERROR: <core> [tcp_read.c:270]: error reading: Connection reset by peer (104)

Sep  9 17:27:51 ch38 kamailio[24821]: ERROR: <core> [tcp_read.c:882]: ERROR: tcp_read_req: error reading

Sep  9 17:27:56 ch38 kamailio[24851]: ERROR: <core> [parser/msg_parser.c:710]: ERROR: parse_msg: message=<-mvuayf9nj9qk#015#012CSeq: 5307 REGISTER#015#012Max-Forwards: 70#015#012Contact: <sip:90735616896@192.168.105.253:3361;transport=tcp;line=yrw5xkcx>;reg-id=1;q=1.0;+sip.instance="<urn:uuid:e3669128-6208-48f5-8d49-0004134B05A7>";audio;mobility="fixed";duplex="full";description="snom821";actor="principal";events="dialog";methods="INVITE,ACK,CANCEL,BYE,REFER,OPTIONS,NOTIFY,SUBSCRIBE,PRACK,MESSAGE,INFO"#015#012User-Agent: snom821/8.7.3.16#015#012Allow-Events: dialog#015#012X-Real-IP: 192.168.105.253#015#012Supported: path, gruu#015#012Expires: 600#015#012Content-Length: 0#015#012#015#012>

Sep  9 17:27:56 ch38 kamailio[24851]: ERROR: <core> [receive.c:144]: ERROR: receive_msg: parse_msg failed

Sep  9 17:28:03 ch38 kamailio[24817]: ERROR: <core> [tcp_read.c:270]: error reading: Connection timed out (110)

Sep  9 17:28:03 ch38 kamailio[24817]: ERROR: <core> [tcp_read.c:882]: ERROR: tcp_read_req: error reading

Sep  9 17:28:08 ch38 kamailio[24823]: ERROR: <core> [tcp_read.c:270]: error reading: Connection reset by peer (104)

Sep  9 17:28:08 ch38 kamailio[24823]: ERROR: <core> [tcp_read.c:882]: ERROR: tcp_read_req: error reading

Sep  9 17:28:09 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:4322]: connect 212.147.50.253:19614 failed (timeout)

Sep  9 17:28:10 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:4322]: connect 212.147.50.253:19614 failed (timeout)

Sep  9 17:28:11 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:4322]: connect 212.147.50.253:19614 failed (timeout)

Sep  9 17:28:13 ch38 kamailio[24850]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:28:13 ch38 kamailio[24850]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:28:14 ch38 kamailio[24850]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:28:15 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:4322]: connect 212.147.50.253:19614 failed (timeout)

Sep  9 17:28:16 ch38 kamailio[24850]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:28:19 ch38 kamailio[24802]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:28:19 ch38 kamailio[24802]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:28:19 ch38 kamailio[24802]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 17:28:19 ch38 kamailio[24802]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:28:19 ch38 kamailio[24802]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 17:28:19 ch38 kamailio[24802]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:28:21 ch38 kamailio[24850]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:28:21 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:4322]: connect 212.147.50.253:19614 failed (timeout)

Sep  9 17:28:22 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:4322]: connect 212.147.50.253:19614 failed (timeout)

Sep  9 17:28:23 ch38 kamailio[24714]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:28:23 ch38 kamailio[24714]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:28:23 ch38 kamailio[24714]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 17:28:23 ch38 kamailio[24714]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:28:23 ch38 kamailio[24714]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 17:28:23 ch38 kamailio[24714]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 17:28:25 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:4322]: connect 212.147.50.253:19614 failed (timeout)

Sep  9 17:28:25 ch38 kamailio[24850]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:28:28 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:4322]: connect 212.147.50.253:19614 failed (timeout)

Sep  9 17:28:29 ch38 kamailio[24850]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:28:31 ch38 kamailio[24737]: ERROR: <core> [tcp_main.c:700]: ERROR: wbufq_add(702 bytes): write queue full or timeout  (32406, total 32406, last write 2 s ago)

Sep  9 17:28:31 ch38 kamailio[24737]: ERROR: tm [../../forward.h:170]: msg_send: ERROR: tcp_send failed

Sep  9 17:28:31 ch38 kamailio[24737]: ERROR: tm [t_fwd.c:1385]: ERROR: t_send_branch: sending request on branch 0 failed

Sep  9 17:28:31 ch38 kamailio[24737]: ERROR: sl [sl_funcs.c:282]: ERROR: sl_reply_error used: Unfortunately error on sending to next hop occurred (477/SL)

Sep  9 17:28:31 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:3595]: handle_ser_child: ERROR: received CON_ERROR for 0x7fa32b835390 (id 173139), refcnt 2, flags 0x3096

Sep  9 17:28:32 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:4322]: connect 212.147.50.253:19614 failed (timeout)

Sep  9 17:28:33 ch38 kamailio[24850]: ERROR: registrar [save.c:506]: invalid cseq for aor <90756153105>

Sep  9 17:28:34 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:4322]: connect 212.147.50.253:19614 failed (timeout)

Sep  9 17:28:43 ch38 kamailio[24763]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

 

De : sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] De la part de Laurent Schweizer
Envoyé : mardi 9 septembre 2014 16:02
À : Kamailio (SER) - Users Mailing List; miconda@gmail.com
Objet : Re: [SR-Users] TCP SYN only

 

And maybe other TCP params that I have in the kamailio config :

 

# life time of TCP connection when there is no traffic

# - a bit higher than registration expires to cope with UA behind NAT

tcp_connection_lifetime=3620

tcp_connect_timeout=1

tcp_keepcnt = 10

 

tcp_keepidle = 10

 

tcp_send_timeout=3

 

 

De : sr-users-bounces@lists.sip-router.org [mailto:sr-users-bounces@lists.sip-router.org] De la part de Laurent Schweizer
Envoyé : mardi 9 septembre 2014 15:38
À : miconda@gmail.com; Kamailio (SER) - Users Mailing List
Objet : Re: [SR-Users] TCP SYN only

 

regarding error , yes  I have a lot of error regarding SDP and a few regarding TCP.

 

for the SDP , initially I have think that  I call rtpproxy_offer / rtpproxy_answer for a request that don’t have any SDP but all rtpproxy method have a check with has_body("application/sdp")

 

Sep  9 15:26:31 ch38 kamailio[24730]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:31 ch38 kamailio[24730]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 15:26:31 ch38 kamailio[24730]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:31 ch38 kamailio[24730]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 15:26:31 ch38 kamailio[24730]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:37 ch38 kamailio[24842]: ERROR: <core> [tcp_read.c:270]: error reading: Connection reset by peer (104)

Sep  9 15:26:37 ch38 kamailio[24842]: ERROR: <core> [tcp_read.c:882]: ERROR: tcp_read_req: error reading

Sep  9 15:26:37 ch38 kamailio[24709]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:37 ch38 kamailio[24709]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:37 ch38 kamailio[24709]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 15:26:37 ch38 kamailio[24709]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:37 ch38 kamailio[24709]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 15:26:37 ch38 kamailio[24709]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:38 ch38 kamailio[24831]: ERROR: <core> [tcp_read.c:270]: error reading: Connection timed out (110)

Sep  9 15:26:38 ch38 kamailio[24831]: ERROR: <core> [tcp_read.c:882]: ERROR: tcp_read_req: error reading

Sep  9 15:26:42 ch38 kamailio[24806]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:42 ch38 kamailio[24806]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:42 ch38 kamailio[24806]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 15:26:42 ch38 kamailio[24806]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:42 ch38 kamailio[24806]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 15:26:42 ch38 kamailio[24806]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:43 ch38 kamailio[24786]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:43 ch38 kamailio[24786]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:43 ch38 kamailio[24786]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 15:26:43 ch38 kamailio[24786]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:43 ch38 kamailio[24786]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 15:26:43 ch38 kamailio[24786]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:53 ch38 kamailio[24714]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:53 ch38 kamailio[24714]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:53 ch38 kamailio[24714]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 15:26:53 ch38 kamailio[24714]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:26:53 ch38 kamailio[24714]: ERROR: <core> [parser/sdp/sdp.c:229]: Invalid payload location

Sep  9 15:26:53 ch38 kamailio[24714]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:27:06 ch38 kamailio[24746]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:27:06 ch38 kamailio[24742]: ERROR: <core> [parser/sdp/sdp.c:213]: Invalid payload location

Sep  9 15:27:06 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:4137]: connect 77.29.142.196:49927 failed

Sep  9 15:27:06 ch38 kamailio[24865]: ERROR: <core> [tcp_main.c:4137]: connect 77.29.142.196:49927 failed

 

 

 


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Next Kamailio Advanced Trainings 2014 - http://www.asipto.com
Sep 22-25, Berlin, Germany