Just a thought , Instead of rejecting with a 4xx response, UAS can
reject that media lien with a port 0. Client will close down the call
with a BYE.


On Fri, Oct 29, 2010 at 1:42 AM, praveena ss <[email protected]> wrote:
>
> Hi Kaiduan,
>   This is depending on implementation decision, but as per me "488 Not
> Acceptable Here" is the suitable response code, because of its codec
> related. 415 response code is used when UAS/UAC is not supporting specified
> media type say for example image or video.
>
> Regards,
> Praveen
>
>
>
> On Fri, Oct 29, 2010 at 12:22 AM, kaiduan xie <[email protected]> wrote:
>
> > Hi,
> >
> > Consider the following case, A sends an offer with codec G.729 only, and B
> > does
> > not support it, what is the best response code? 415/488 is not for this
> > case
> > from rfc3261.
> >
> > 21.4.13 415 Unsupported Media Type
> >
> >    The server is refusing to service the request because the message
> >    body of the request is in a format not supported by the server for
> >    the requested method.  The server MUST return a list of acceptable
> >    formats using the Accept, Accept-Encoding, or Accept-Language header
> >    field, depending on the specific problem with the content.  UAC
> >    processing of this response is described in Section 8.1
> >
> > 21.4.26 488 Not Acceptable Here
> >
> >    The response has the same meaning as 606 (Not Acceptable), but only
> >    applies to the specific resource addressed by the Request-URI and the
> >    request may succeed elsewhere.
> >
> >    A message body containing a description of media capabilities MAY be
> >    present in the response, which is formatted according to the Accept
> >    header field in the INVITE (or application/sdp if not present), the
> >    same as a message body in a 200 (OK) response to an OPTIONS request
> >
> > And rfc3264 is not clear on this neither,
> >
> >    An offered stream MAY be rejected in the answer, for any reason.  If
> >    a stream is rejected, the offerer and answerer MUST NOT generate
> >    media (or RTCP packets) for that stream.  To reject an offered
> >    stream, the port number in the corresponding stream in the answer
> >    MUST be set to zero.  Any media formats listed are ignored.  At least
> >    one MUST be present, as specified by SDP.
> >
> > Please share your comment.
> >
> > Best regards,
> >
> > /Kaiduan
> >
> >
> >
> > _______________________________________________
> > Sip-implementors mailing list
> > [email protected]
> > https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors
> >
> _______________________________________________
> Sip-implementors mailing list
> [email protected]
> https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors



--
Regards
-Satan

_______________________________________________
Sip-implementors mailing list
[email protected]
https://lists.cs.columbia.edu/cucslists/listinfo/sip-implementors

Reply via email to