3.4.5.4 Receiving a RTSP SETUP Request

The DMS MUST process the SETUP request according to the rules in [DLNA] guideline 7.4.210.

If the SETUP request includes the User-Agent header (section 2.2.3.5), it MUST be ignored.

If the SETUP request includes the X-Accept-Authentication header (section 2.2.3.6), it MUST be ignored.

If the SETUP request includes the X-Playlist-Gen-Id header (section 2.2.3.7), it MUST be ignored.

The DMS MUST include headers in the RTSP response, as specified in section 3.4.5.3.1.

The DMS MUST include the ssrc parameter on the Transport header (defined in [RFC2326], section 12.39) in the SETUP response.

If the DMS supports retransmitting RTP packets as defined in [DLNA] guideline 7.4.137, then the DMS MUST include the rtcp-fb-ssrc parameter on the Transport header, as defined in section 2.2.3.4.

If the value of the State variable is RTSP_Init and the RTSP response status code is 200, then the DMS MUST set the value of the State variable to RTSP_Ready.

If the value of the State variable is RTSP_Ready, then the DMS MUST be prepared to receive any of the following requests:

  • PLAY: specified in section 3.4.5.5

  • SETUP: specified in section 3.4.5.4

  • TEARDOWN: specified in section 3.4.5.7

  • OPTIONS: specified in section 3.4.5.8.

If the RTSP response status code is anything other than 200, then the DMS MUST continue following the rules that are applicable according to the current value of the State variable.