[OpenSIPS-Devel] [opensips] 400 Bad Request (Invalid content length X / Y) (#358)

Lead Developer notifications at github.com
Wed Oct 15 16:40:24 CEST 2014


complete transaction as captures by `ngrep` below:

```
U 2014/10/15 14:32:14.810932 CLIENT_IP:15501 -> SERVER_IP:5060
MESSAGE sip:ana at sip.example.com SIP/2.0.
Call-ID: e107fb53429a488f80d1e9cffd8ebe9d at 0:0:0:0:0:0:0:0.
CSeq: 1070529783 MESSAGE.
From: "bob" <sip:bob at sip.example.com>;tag=a33d6c82.
To: <sip:ana at sip.example.com>.
Via: SIP/2.0/UDP 192.168.0.103:15501;branch=z9hG4bK-343131-2a82399de55c529a1839688e574654d1.
Max-Forwards: 70.
Content-Type: text/plain.
Contact: "bob" <sip:bob at 192.168.0.103:15501;transport=udp;registering_acc=sip_example_com>.
User-Agent: Jitsi/2.5.33/Windows 7-amd64.
Content-Length: 8.
.
test 123
#
U 2014/10/15 14:32:14.811132 SERVER_IP:5060 -> CLIENT_IP:15501
SIP/2.0 100 Trying.
Call-ID: e107fb53429a488f80d1e9cffd8ebe9d at 0:0:0:0:0:0:0:0.
CSeq: 1070529783 MESSAGE.
From: "bob" <sip:bob at sip.example.com>;tag=a33d6c82.
To: <sip:ana at sip.example.com>.
Via: SIP/2.0/UDP 192.168.0.103:15501;received=CLIENT_IP;rport=15501;branch=z9hG4bK-343131-2a82399de55c529a1839688e574654d1.
Server: SIP Proxy 2.
Content-Length: 0.
.

#
U 2014/10/15 14:32:14.830519 SERVER_IP:5060 -> CLIENT_IP:15501
SIP/2.0 400 Bad Request (Invalid content length 5 / 8).
Via: SIP/2.0/UDP 192.168.0.103:15501;rport=15501;received=CLIENT_IP;branch=z9hG4bK-343131-2a82399de55c529a1839688e574654d1.
CSeq: 1070529783 MESSAGE.
Call-ID: e107fb53429a488f80d1e9cffd8ebe9d at 0:0:0:0:0:0:0:0.
From: "bob" <sip:bob at sip.example.com>;tag=a33d6c82.
To: <sip:ana at sip.example.com>;tag=badreq.
Content-Type: message/sipfrag.
.
Content-Length: 676.
.
.
MESSAGE sip:ana at 192.168.5.65:15500;transport=udp;registering_acc=sip_example_com SIP/2.0.
Call-ID: e107fb53429a488f80d1e9cffd8ebe9d at 0:0:0:0:0:0:0:0.
CSeq: 1070529783 MESSAGE.
From: "bob" <sip:bob at sip.example.com>;tag=a33d6c82.
To: <sip:ana at sip.example.com>.
Via: SIP/2.0/UDP SERVER_IP:5060;branch=z9hG4bKadb4.f34eaaf.1.
Via: SIP/2.0/UDP 192.168.0.103:15501;rport=15501;received=CLIENT_IP;branch=z9hG4bK-343131-2a82399de55c529a1839688e574654d1.
Max-Forwards: 69.
Content-Type: text/plain.
Contact: "bob" <sip:bob at CLIENT_IP:15501;transport=udp;registering_acc=sip_example_com>.
User-Agent: Jitsi/2.5.33/Windows 7-amd64.
Content-Length: 8.
.
test 
```

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/358#issuecomment-59215736
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20141015/e62a44e5/attachment.htm>


More information about the Devel mailing list