[OpenSER-Users] Massive "ERROR: bad header field" lead to crashing of OpenSER 1.2.X ?

Klaus Darilion klaus.mailinglists at pernau.at
Thu Feb 21 10:27:52 CET 2008


Hi DAvid!

A core dump from the crash and the backtrace might be useful. Have you 
also tried using openser 1.3?

regards
klaus

David Loh schrieb:
> Hi all,
> 
> Recently my OpenSER log showed a lot of these error,
> ------------------------------------------------------------------------
> Feb 20 22:14:47 sip /sbin/openser[3607]: ERROR:parse_content_length: 
> parse ERROR near char [0][
> Feb 20 22:14:47 ser ]
> Feb 20 22:14:47 sip /sbin/openser[3607]: ERROR:get_hdr_field: bad 
> content_length header
> Feb 20 22:14:47 sip /sbin/openser[3607]: ERROR: bad header field
> Feb 20 22:14:47 sip /sbin/openser[3607]: find_first_route: ERROR while 
> parsing headers
> Feb 20 22:14:47 sip /sbin/openser[3607]: ERROR:parse_content_length: 
> parse ERROR near char [0][
> Feb 20 22:14:47 ser ]
> Feb 20 22:14:47 sip /sbin/openser[3607]: ERROR:get_hdr_field: bad 
> content_length header
> Feb 20 22:14:47 sip /sbin/openser[3607]: ERROR: bad header field
> Feb 20 22:14:47 sip /sbin/openser[3607]: ERROR: 
> build_res_buf_from_sip_req: alas, parse_headers failed
> Feb 20 22:14:47 sip /sbin/openser[3607]: ERROR:parse_content_length: 
> parse ERROR near char [0][
> Feb 20 22:14:47 ser ]
> Feb 20 22:14:47 sip /sbin/openser[3607]: ERROR:get_hdr_field: bad 
> content_length header
> Feb 20 22:14:47 sip /sbin/openser[3607]: ERROR: bad header field
> Feb 20 22:14:47 sip /sbin/openser[3607]: find_credentials(): ERROR while 
> parsing headers
> Feb 20 22:14:47 sip /sbin/openser[3607]: pre_auth(): ERROR while looking 
> for credentials
> Feb 20 22:14:47 sip /sbin/openser[3605]: ERROR:parse_content_length: 
> parse ERROR near char [0][
> ------------------------------------------------------------------------
> from our past experiences, those error are most likely come from 
> corrupted devices (or device/soft phone that send malformed/non-standard 
> message to our SIP port).
> If we're continuously having this kind of errors for hours (at a rate of 
> few thousands per hour),
> eventually OpenSER will not accepting new connection (REGISTER) and may 
> just crash.
> 
> Wondering if there's anything we can do on OpenSER to prevent this from 
> happening?
> 
> 
> Thanks,
> David Loh
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users




More information about the sr-users mailing list