[SIPForum-discussion] a question about "Content-Length"

AMIT ANAND amiit.anand at gmail.com
Mon Mar 23 14:05:35 UTC 2009


Hi,

If you send incorrect content length the response depends on the behavior of
UAS ( I.E hwo it has been designed) it may send you 5XX or 4XX or might be
no response. But ideally it should send you 400 BAD request.

Cheers
Amit Anand


On Thu, Mar 19, 2009 at 3:52 PM, jiangchangwu <jc_wu at live.com> wrote:

>    Dear All,
>
>  i have a question about "Content-Length"
>     in   rfc3261  [Page 209]
>
>
>       INVITE sip:bob at biloxi.com <sip%3Abob at biloxi.com> SIP/2.0
>       Via: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKnashds8
>       To: Bob <bob at biloxi.com>
>       From: Alice <alice at atlanta.com>;tag=1928301774
>       Call-ID: a84b4c76e66710
>       CSeq: 314159 INVITE
>       Max-Forwards: 70
>       Date: Thu, 21 Feb 2002 13:02:03 GMT
>       Contact: <sip:alice at pc33.atlanta.com <sip%3Aalice at pc33.atlanta.com>>
>       Content-Type: application/sdp
>       *Content-Length: 147*
>       v=0
>       o=UserA 2890844526 2890844526 IN IP4 here.com
>       s=Session SDP
>       c=IN IP4 pc33.atlanta.com
>       t=0 0
>       m=audio 49172 RTP/AVP 0
>       a=rtpmap:0 PCMU/8000
>
> I counted about the length of message-body
>
> it is *148*
>
> now i don‘t donw the length is 147 or 148.
>  if mistake the length , what will happens?
> thanks for your Advance
>
>
>
>
> ------------------------------
> 更多热辣资讯尽在新版MSN首页! 立刻访问! <http://cn.msn.com/>
>
> _______________________________________________
> This is the SIP Forum discussion mailing list
> TO UNSUBSCRIBE, or edit your delivery options, please visit
> http://sipforum.org/mailman/listinfo/discussion
> Post to the list at discussion at sipforum.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sipforum.org/pipermail/discussion/attachments/20090323/8836e658/attachment-0002.html>


More information about the discussion mailing list