<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Could you dump a SIP request that's
generating parsing errors? Maybe we can find a better
alternative than doing:<br>
<br>
setdebug(-2);<br>
if (!sipmsg_validate()) {<br>
send_reply("400", "Bad request");<br>
exit;<br>
}<br>
setdebug();<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 09/24/2014 07:33 PM, Dovid Bender wrote:<br>
</div>
<blockquote
cite="mid:AF39EE80A49E4B0FA6512752DB1AEDED@mypbxmanager.net"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 11 (filtered
medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<div class="Section1">
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Hi,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">We are getting a lot of the errors
below. From looking
around it seems they are “garbage packets” (<a
moz-do-not-send="true"
href="http://stackoverflow.com/questions/19312353/drop-a-packet-before-the-start-of-routing-call-opensips">http://stackoverflow.com/questions/19312353/drop-a-packet-before-the-start-of-routing-call-opensips</a>).
How
do I figure out which packets are causing this so I can
silently discard
them?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Regards,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Dovid<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">[root@ServerA ~]# tail -f
/var/log/messages | grep -v snmp<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:20 ServerA
/sbin/opensips[10032]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:20 ServerA
/sbin/opensips[10032]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:21 ServerA
/sbin/opensips[10010]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:21 ServerA
/sbin/opensips[10010]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:21 ServerA
/sbin/opensips[10010]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:21 ServerA
/sbin/opensips[10010]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:21 ServerA
/sbin/opensips[10010]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:21 ServerA
/sbin/opensips[10010]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:23 ServerA
/sbin/opensips[10004]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:23 ServerA
/sbin/opensips[10004]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:23 ServerA
/sbin/opensips[10010]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:23 ServerA
/sbin/opensips[10010]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:23 ServerA
/sbin/opensips[10009]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:23 ServerA
/sbin/opensips[10009]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:24 ServerA
/sbin/opensips[10008]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:24 ServerA
/sbin/opensips[10008]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:24 ServerA
/sbin/opensips[10011]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:24 ServerA
/sbin/opensips[10011]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:25 ServerA
/sbin/opensips[10011]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:25 ServerA
/sbin/opensips[10011]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:25 ServerA
/sbin/opensips[10006]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:25 ServerA
/sbin/opensips[10006]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:26 ServerA
/sbin/opensips[10007]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:26 ServerA
/sbin/opensips[10007]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:26 ServerA
/sbin/opensips[10012]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:26 ServerA
/sbin/opensips[10012]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:26 ServerA
/sbin/opensips[10009]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:26 ServerA
/sbin/opensips[10009]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:27 ServerA
/sbin/opensips[10008]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:27 ServerA
/sbin/opensips[10008]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:27 ServerA
/sbin/opensips[10006]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:27 ServerA
/sbin/opensips[10006]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:27 ServerA
/sbin/opensips[10010]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:27 ServerA
/sbin/opensips[10010]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:27 ServerA
/sbin/opensips[10006]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:27 ServerA
/sbin/opensips[10006]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:27 ServerA
/sbin/opensips[10006]: ERROR:core:warning_builder:
buffer size exceeded<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:27 ServerA
/sbin/opensips[10006]:
WARNING:core:build_res_buf_from_sip_req:
warning skipped -- too big<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:27 ServerA
/sbin/opensips[10009]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:27 ServerA
/sbin/opensips[10009]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:28 ServerA
/sbin/opensips[10009]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:28 ServerA
/sbin/opensips[10009]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:28 ServerA
/sbin/opensips[10006]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:28 ServerA
/sbin/opensips[10006]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:28 ServerA
/sbin/opensips[10012]: ERROR:core:warning_builder:
buffer size exceeded<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:28 ServerA
/sbin/opensips[10012]:
WARNING:core:build_res_buf_from_sip_req:
warning skipped -- too big<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:28 ServerA
/sbin/opensips[10011]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:28 ServerA
/sbin/opensips[10011]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:28 ServerA
/sbin/opensips[10010]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:28 ServerA
/sbin/opensips[10010]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:29 ServerA
/sbin/opensips[10011]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:29 ServerA
/sbin/opensips[10011]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:29 ServerA
/sbin/opensips[10012]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:29 ServerA
/sbin/opensips[10012]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:29 ServerA
/sbin/opensips[10008]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:29 ServerA
/sbin/opensips[10008]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:29 ServerA
/sbin/opensips[10012]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:29 ServerA
/sbin/opensips[10012]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:30 ServerA
/sbin/opensips[10012]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:30 ServerA
/sbin/opensips[10012]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:30 ServerA
/sbin/opensips[10011]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:30 ServerA
/sbin/opensips[10011]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:30 ServerA
/sbin/opensips[10005]: ERROR:core:parse_msg:
message=<><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span
style="font-size:10.0pt;
font-family:Arial">Sep 24 12:13:30 ServerA
/sbin/opensips[10005]: ERROR:core:receive_msg:
parse_msg failed<o:p></o:p></span></font></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>