This section defines the SDP offer/answer procedures [
RFC 3264] for indicating exclusive support of RTP/RTCP multiplexing and negotiating usage of it.
The procedures in this section apply to individual RTP-based SDP media descriptions ("m=" lines).
When sending the initial offer, if the offerer wants to indicate exclusive RTP/RTCP multiplexing for RTP-based media, it
MUST associate an SDP 'rtcp-mux-only' attribute with the associated SDP media description ("m=" line).
In addition, if the offerer associates an SDP 'rtcp-mux-only' attribute with an SDP media description ("m=" line), the offerer
MUST also associate an SDP 'rtcp-mux' attribute with the same SDP media description ("m=" line), following the procedures in [
RFC 5761].
If the offerer associates an SDP 'rtcp' attribute [
RFC 3605] with an SDP media description ("m=" line), and if the offerer also associates an SDP 'rtcp-mux-only' attribute with the same SDP media description ("m=" line), the address and port values of the SDP 'rtcp' attribute
MUST match the corresponding values for RTP.
NOTE: This specification does not mandate the usage of the SDP 'rtcp' attribute for RTP/RTCP multiplexing.
When an answerer receives an offer that contains an SDP 'rtcp-mux-only' attribute associated with an RTP-based SDP media description ("m=" line), then if the answerer accepts the usage of RTP/RTCP multiplexing, it
MUST associate an SDP 'rtcp-mux' attribute with the corresponding SDP media description ("m=") in the associated answer, following the procedures in [
RFC 5761]. If the answerer does not accept the usage of RTP/RTCP multiplexing, it
MUST either reject the SDP media description ("m=") by setting the port value to zero in the associated answer, or reject the whole offer, following the procedures in [
RFC 3264].
The answerer
MUST NOT associate an SDP 'rtcp-mux-only' attribute with an SDP media description ("m=" line) in the answer.
If an offerer associated an SDP 'rtcp-mux-only' attribute with an RTP-based SDP media description ("m=" line) in an offer, and if the corresponding SDP media description ("m=" line) in the associated answer contains an SDP 'rtcp-mux' attribute, the offerer
MUST apply the RTP/RTCP multiplexing procedures [
RFC 5761] to the associated RTP-based media. If the corresponding SDP media description ("m=" line) in the associated answer does not contain an SDP 'rtcp-mux' attribute, the offerer
MUST either take appropriate actions in order to disable the associated RTP-based media -- e.g., send a new offer with a zero port value associated with the SDP media description ("m=" line) -- or send a new offer without associating an SDP 'rtcp-mux-only' attribute with the SDP media description ("m=" line).
NOTE: This document does not mandate specific actions on how to terminate the RTP media. The offerer might, for example, terminate the RTP media by sending a new offer in which the port value of the SDP media description is set to zero.
When an offerer sends a subsequent offer, if the offerer and answerer have previously negotiated usage of exclusive RTP/RTCP multiplexing for the media associated with an RTP-based SDP media description ("m=" line), the offerer
SHOULD associate an SDP 'rtcp-mux-only' with the corresponding SDP media description ("m=" line).
In addition, if the offerer associates an SDP 'rtcp-mux-only' attribute with an SDP media description ("m=" line), the offerer
MUST also associate an SDP 'rtcp-mux' attribute with the same SDP media description ("m=" line), following the procedures in [
RFC 5761].
If the offerer does not associate the attributes with the corresponding SDP media description ("m=" line), it is an indication that the offerer no longer wants to use RTP/RTCP multiplexing and instead
MUST fall back to usage of separate ports for RTP and RTCP once the offer has been accepted by the answerer.
When an offerer sends a subsequent offer, if the offerer and answerer have not previously negotiated usage of RTP/RTCP multiplexing for the media associated with an RTP-based SDP media description ("m=" line), the offerer
MAY indicate exclusive support of RTP/RTCP multiplexing, following the procedures in
Section 4.2. The offerer
MUST process the associated answer following the procedures in
Section 4.4.
It is
RECOMMENDED to not switch between usage of RTP/RTCP multiplexing and usage of separate ports for RTP and RTCP in a subsequent offer, unless there is a use case that mandates it.