[sr-dev] [kamailio/kamailio] Crash on receiving incorrect REGISTER request? (#1420)

Henning Westerholt notifications at github.com
Fri Sep 21 19:12:07 CEST 2018

I can't reproduce this:

 0(15468) DEBUG: <core> [core/udp_server.c:491]: udp_rcv_loop(): received on udp socket: (90/87/87) [[REGISTER sip: SIP/2.0 0A Via: SIP/2.0/UDP;branch=z9hG4bK724588683]]
 0(15468) DEBUG: <core> [core/parser/msg_parser.c:610]: parse_msg(): SIP Request:
 0(15468) DEBUG: <core> [core/parser/msg_parser.c:612]: parse_msg():  method:  <REGISTER>
 0(15468) DEBUG: <core> [core/parser/msg_parser.c:614]: parse_msg():  uri:     <sip:>
 0(15468) DEBUG: <core> [core/parser/msg_parser.c:616]: parse_msg():  version: <SIP/2.0>
 0(15468) ERROR: <core> [core/parser/parse_via.c:1324]: parse_via_param(): failure parsing via param
 0(15468) ERROR: <core> [core/parser/parse_via.c:2704]: parse_via(): parsing via on: <SIP/2.0/UDP;branch=z9hG4bK724588683>
 0(15468) ERROR: <core> [core/parser/parse_via.c:2710]: parse_via(): via parse error
 0(15468) ERROR: <core> [core/parser/msg_parser.c:125]: get_hdr_field(): bad via
 0(15468) DEBUG: <core> [core/parser/msg_parser.c:279]: get_hdr_field(): error exit
 0(15468) ERROR: <core> [core/parser/msg_parser.c:337]: parse_headers(): bad header field [Via: SIP/2.0/UDP;branch=z9hG4bK724588683]
 0(15468) ERROR: <core> [core/parser/msg_parser.c:681]: parse_msg(): ERROR: parse_msg: message=<REGISTER sip: SIP/2.0
Via: SIP/2.0/UDP;branch=z9hG4bK724588683>
 0(15468) ERROR: <core> [core/receive.c:231]: receive_msg(): core parsing of SIP message failed (

./kamailio -V
version: kamailio 5.2.0-dev7 (x86_64/linux) 491e19

Can you post a backtrace with gdb, and ideally a debug log of the crash?

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180921/f61f9b1c/attachment.html>

More information about the sr-dev mailing list