Hi Daniel! Thank you for the suggestion, after the deep investigation, looks like the root of the problem found:
when device send TCP ACK (before INVITE), in this packet is incapsulated "VSS-Monitoring ethernet trailer, Source Port: 0", example in file in attachment. Looks like kamailio parse it, and add the received /0 to the beginning of following SIP request (INVITE), as a result - incorrect Method parsing and 400 error. The way to solve current problem, is to modify the check below: --- parser/msg_parser.c (revision xxxxx) +++ parser/msg_parser.c (working copy) @@ -607,7 +607,7 @@ hdr_flags_t flags; /* eat crlf from the beginning */ - for (tmp=buf; (*tmp=='\n' || *tmp=='\r')&& + for (tmp=buf; (*tmp=='\n' || *tmp=='\r' || *tmp=='\0')&& tmp-buf < len ; tmp++); Do we need such change in kamailio? Cheers! issued_packet_with_extra_0.pcap <http://sip-router.1086192.n5.nabble.com/file/n143771/issued_packet_with_extra_0.pcap> -- View this message in context: http://sip-router.1086192.n5.nabble.com/random-incorrect-method-parsing-tp143749p143771.html Sent from the Users mailing list archive at Nabble.com. _______________________________________________ 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