From: =?utf-8?q?I=C3=B1aki_Baz_Castillo?= <[EMAIL PROTECTED]>

   Hi, in case of an INVITE with no SDP, how should the request
   indicate what it wants? I think it should include an Accept header:
     Accept: Application/sdp

   But I wonder if Content-Type is needed (I expect no since there is
   no body).What about Content-Disposition header? There is no
   "Content-type: Application/sdp", so maybe "Content-Disposition:
   session" is required, isn't it?

There are some ambiguities.  If the Content-Length is 0, in principle,
the body is zero-length but can be of any type for which a zero-byte
document is acceptable.  But in practice, Content-Length: 0 is used to
signal "no body present", in which case Content-Type need not be
given.

If Content-Length is not 0, then Content-Type must be given -- see RFC
3261 section 7.4.1.

It is good practice to provide an Accept header if the response might
contain a body.  But if you omit Accept, application/sdp is impled --
see section 20.1.

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

Reply via email to