[OpenSIPS-Users] Typo in message header and how to catch it

Cindy Leung cinthia721 at gmail.com
Fri Mar 22 02:30:42 CET 2013


Hi all,

So we encountered a malformed SIP message one day that looks like this...

INVITE sip:2345 at my.opensips.server.IP:5060 SIP/2.0
Via: SIP/2.0/UDP 127.0.1.1:5060;branch=z9hG4bK-15598-12-0
From: sipp <sip:1234 at 127.0.1.1>;tag=12
To: <sip:2345 at my.opensips.server.IP:5060>
Call-ID: 12-15598 at 127.0.1.1
CSeq: 1 INVITE
Contact: "1234" <sip:1234 at 127.0.1.1:5060;transport=udp>
User-Agent: SIPp
Max-Forwards: 70
Content-Type: application/sdp
Content-Lenght: 0

Typo in Content-Length.

This message successfully passed through error_route and sipmsg_validate() and continue through the rest of the config.  Interesting enough, I get different errors when I send it over different protocol.

TCP:
/usr/local/sbin/opensips[18814]: ERROR:core:tcp_read_req: bad request, state=4, error=4 buf: <SIP message here>

UDP:
/usr/local/sbin/opensips[18804]: ERROR:core:clen_builder: no message body found (missing crlf?)
/usr/local/sbin/opensips[18804]: ERROR:core:build_req_buf_from_sip_req: failed to adjust Content-Length
/usr/local/sbin/opensips[18804]: ERROR:tm:print_uac_request: no more shm_mem
/usr/local/sbin/opensips[18804]: ERROR:tm:t_forward_nonack: failure to add branches

Can you let me know if I have missed anything please?  Thanks!


Cindy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130321/e89a73b5/attachment.htm>


More information about the Users mailing list