Discard the extra bytes.  You have no choice.

And tell the UA vendor to fix their implementation.

Regards,

Attila
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Aneesh Naik
Sent: 20 December 2007 12:03
To: Sip-implementors@lists.cs.columbia.edu
Subject: [Sip-implementors] SDP longer than that given in
"Content-Lenght"header

Hi,

What should be the behavior when SDP is longer than that given in
"Content-Length" header?

The RFC 3261 section 18.3 Framing states:
If there are additional bytes in the transport packet beyond the end of
the body, they MUST be discarded.

So this means, SIP parser should discard the data beyond the length
given by "Content-Lenght" header.
In the below case the call should fail as we wont get enough data from
SDP to complete the call as we will drop them.

INVITE sip:[EMAIL PROTECTED]:5060 SIP/2.0
Via: SIP/2.0/UDP 10.10.1.209:5061;branch=z9hG4bK-15126-1-0
From: sipp <sip:[EMAIL PROTECTED]:5061>;tag=15126SIPpTag001
To: sut <sip:[EMAIL PROTECTED]:5060>
Call-ID: [EMAIL PROTECTED]
CSeq: 1 INVITE
Contact: sip:[EMAIL PROTECTED]:5061
Max-Forwards: 70
Subject: Performance Test
Content-Type: application/sdp
*Content-Length:  20*

v=0
o=user1 53655765 2353687637 IN IP4 10.253.6.209
s=-
c=IN IP4 10.253.6.209
t=0 0
m=audio 6001 RTP/AVP 0
a=rtpmap:0 PCMU/8000


Please suggest what must be the behavior in this case.

Thanks,
Aneesh
_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

_______________________________________________
Sip-implementors mailing list
Sip-implementors@lists.cs.columbia.edu
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to