You can look at the network traffic using tools such as ngrep, sipgrep,
tcpdump or wireshark.
An example with ngrep for sip udp on port 5060:
ngrep -d any -qt -W byline port 5060
I am not the developer of sipcapture module, but from the parser errors
it seems that it tries to parse an empty string.
The database errors are related to a duplicated value on an unique key
column.
Maybe Alexandr (author of sipcapture) can comment more on the logs.
Cheers,
Daniel
On 10/03/15 03:48, Jeff Cohn wrote:
Any thoughts on this?
Thanks
Jeff
From: Jeff Cohn <jcohn(a)coeosolutions.com <mailto:jcohn@coeosolutions.com>>
Date: Monday, March 9, 2015 at 9:45 AM
To: Daniel-Constantin Mierla <miconda(a)gmail.com
<mailto:miconda@gmail.com>>, "Kamailio (SER) - Users Mailing List"
<sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>>
Subject: Re: [SR-Users] core parsing of SIP message failed errors
I turned on debug=3 and the messages change a bit (listed both below)
Look into how to check database and traffic..sorry, not super strong
on that side.
Thanks again for thoughts.
debug=1
-------
Mar 9 09:41:05 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11664]:
INFO: <core> [main.c:793]: sig_usr(): signal 15 received
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11749]:
ERROR: sipcapture [hep.c:60]: hep_msg_received():
sipcapture:hep_msg_received HEP is not enabled
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11753]:
ERROR: sipcapture [hep.c:60]: hep_msg_received():
sipcapture:hep_msg_received HEP is not enabled
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11769]:
ERROR: <core> [parser/parse_fline.c:257]: parse_first_line():
parse_first_line: bad message (offset: 0)
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11769]:
ERROR: <core> [parser/msg_parser.c:688]: parse_msg(): ERROR:
parse_msg: message=<HEP3#001?>
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11769]:
ERROR: <core> [receive.c:129]: receive_msg(): core parsing of SIP
message failed (127.0.0.1:33264/1)
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11775]:
ERROR: <core> [parser/parse_fline.c:257]: parse_first_line():
parse_first_line: bad message (offset: 0)
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11775]:
ERROR: <core> [parser/msg_parser.c:688]: parse_msg(): ERROR:
parse_msg: message=<HEP3#005#007>
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11775]:
ERROR: <core> [receive.c:129]: receive_msg(): core parsing of SIP
message failed (127.0.0.1:33264/1)
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11751]:
ERROR: sipcapture [hep.c:60]: hep_msg_received():
sipcapture:hep_msg_received HEP is not enabled
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11767]:
ERROR: <core> [parser/parse_fline.c:257]: parse_first_line():
parse_first_line: bad message (offset: 0)
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11767]:
ERROR: <core> [parser/msg_parser.c:688]: parse_msg(): ERROR:
parse_msg: message=<HEP3#003?>
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11767]:
ERROR: <core> [receive.c:129]: receive_msg(): core parsing of SIP
message failed (127.0.0.1:33264/1)
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11752]:
ERROR: sipcapture [hep.c:60]: hep_msg_received():
sipcapture:hep_msg_received HEP is not enabled
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11767]:
ERROR: <core> [parser/parse_fline.c:257]: parse_first_line():
parse_first_line: bad message (offset: 0)
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11767]:
ERROR: <core> [parser/msg_parser.c:688]: parse_msg(): ERROR:
parse_msg: message=<HEP3#001?>
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11750]:
ERROR: sipcapture [hep.c:60]: hep_msg_received():
sipcapture:hep_msg_received HEP is not enabled
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11767]:
ERROR: <core> [receive.c:129]: receive_msg(): core parsing of SIP
message failed (127.0.0.1:33264/1)
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11765]:
ERROR: <core> [parser/parse_fline.c:257]: parse_first_line():
parse_first_line: bad message (offset: 0)
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11765]:
ERROR: <core> [parser/msg_parser.c:688]: parse_msg(): ERROR:
parse_msg: message=<HEP3#001?>
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11765]:
ERROR: <core> [receive.c:129]: receive_msg(): core parsing of SIP
message failed (127.0.0.1:33264/1)
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11775]:
ERROR: <core> [parser/parse_fline.c:257]: parse_first_line():
parse_first_line: bad message (offset: 0)
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11775]:
ERROR: <core> [parser/msg_parser.c:688]: parse_msg(): ERROR:
parse_msg: message=<HEP3#002f>
Mar 9 09:41:35 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11775]:
ERROR: <core> [receive.c:129]: receive_msg(): core parsing of SIP
message failed (127.0.0.1:33264/1)
debug=3
-------
Mar 9 09:40:19 coeo-homer2 rsyslogd-2177: imuxsock lost 1059 messages
from pid 11677 due to rate-limiting
Mar 9 09:40:19 coeo-homer2 rsyslogd-2177: imuxsock lost 1091 messages
from pid 11676 due to rate-limiting
Mar 9 09:40:19 coeo-homer2 rsyslogd-2177: imuxsock lost 1079 messages
from pid 11675 due to rate-limiting
Mar 9 09:40:19 coeo-homer2 rsyslogd-2177: imuxsock lost 1111 messages
from pid 11686 due to rate-limiting
Mar 9 09:40:19 coeo-homer2 rsyslogd-2177: imuxsock lost 1084 messages
from pid 11672 due to rate-limiting
Mar 9 09:40:19 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11687]:
ERROR: <script>: TIME : 0
Mar 9 09:40:19 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11687]:
ERROR: db_mysql [km_dbase.c:123]: db_mysql_submit_query(): driver
error on query: Duplicate entry '2015-03-09 09:40:00-200-0-0' for key
'datemethod'
Mar 9 09:40:19 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11687]:
ERROR: <core> [db_query.c:179]: db_do_raw_query(): error while
submitting query
Mar 9 09:40:19 coeo-homer2 /usr/local/kamailio/sbin/kamailio[11687]:
ERROR: sqlops [sql_api.c:262]: sql_do_query(): cannot do the query
Mar 9 09:40:19 coeo-homer2 rsyslogd-2177: imuxsock begins to drop
messages from pid 11676 due to rate-limiting
Mar 9 09:40:19 coeo-homer2 rsyslogd-2177: imuxsock begins to drop
messages from pid 11677 due to rate-limiting
Mar 9 09:40:19 coeo-homer2 rsyslogd-2177: imuxsock begins to drop
messages from pid 11672 due to rate-limiting
Mar 9 09:40:20 coeo-homer2 rsyslogd-2177: imuxsock begins to drop
messages from pid 11675 due to rate-limiting
From: Daniel-Constantin Mierla <miconda(a)gmail.com
<mailto:miconda@gmail.com>>
Reply-To: Daniel-Constantin Mierla <miconda(a)gmail.com
<mailto:miconda@gmail.com>>, "Kamailio (SER) - Users Mailing List"
<sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>>
Date: Monday, March 9, 2015 at 8:52 AM
To: "Kamailio (SER) - Users Mailing List"
<sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>>
Subject: Re: [SR-Users] core parsing of SIP message failed errors
Hello,
are this errors in the node saving to the database? Can you look at
the network traffic and see what is received there?
Also, you can try to run kamailio with debug=3 in kamailio.cfg -- that
will print a lot of debug messages that can help troubleshooting.
Cheers,
Daniel
On 09/03/15 14:36, Jeff Cohn wrote:
Hello, I finally got everything working but see to consistently
receive the following 3 errors (see below) over and over when a call
is being collected?
Versions:
Homer 3.6
kamailio 4.3.0-dev4
Captagent 4.2.0
Any assistance would be appreciated.
Thanks, Jeff
-------------------------
Errors:
Mar 8 22:04:47 ce-homer2 /usr/local/kamailio/sbin/kamailio[9921]:
ERROR: [parser/parse_fline.c:257]: parse_first_line():
parse_first_line: bad message (offset: 0)
Mar 8 22:04:47 ce-homer2 /usr/local/kamailio/sbin/kamailio[9921]:
ERROR: [parser/msg_parser.c:688]: parse_msg(): ERROR: parse_msg: message=>
Mar 8 22:04:47 ce-homer2 /usr/local/kamailio/sbin/kamailio[9921]:
ERROR: [receive.c:129]: receive_msg(): core parsing of SIP message
failed (127.0.0.1:33264/1)
Mar 8 22:04:47 ce-homer2 /usr/local/kamailio/sbin/kamailio[9922]:
ERROR: [parser/parse_fline.c:257]: parse_first_line():
parse_first_line: bad message (offset: 0)
Mar 8 22:04:47 ce-homer2 /usr/local/kamailio/sbin/kamailio[9922]:
ERROR: [parser/msg_parser.c:688]: parse_msg(): ERROR: parse_msg: message=
Mar 8 22:04:47 ce-homer2 /usr/local/kamailio/sbin/kamailio[9922]:
ERROR: [receive.c:129]: receive_msg(): core parsing of SIP message
failed (127.0.0.1:33264/1)
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.orghttp
<mailto:sr-users@lists.sip-router.orghttp>://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> -
http://www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany -
http://www.kamailioworld.com
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda -
http://www.linkedin.com/in/miconda
Kamailio World Conference, May 27-29, 2015
Berlin, Germany -
http://www.kamailioworld.com