Re: [MMUSIC] "a=extmap" with BUNDLE

Iñaki Baz Castillo <> Mon, 27 March 2017 23:09 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id CED121296CF for <>; Mon, 27 Mar 2017 16:09:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (2048-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id mst3JL2m9KFD for <>; Mon, 27 Mar 2017 16:09:01 -0700 (PDT)
Received: from ( [IPv6:2a00:1450:400c:c0c::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 8EA3E1296C5 for <>; Mon, 27 Mar 2017 16:08:57 -0700 (PDT)
Received: by with SMTP id l43so78688465wre.1 for <>; Mon, 27 Mar 2017 16:08:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=joidKPU4J/w4mREzeZnSCt1rwx6tvBDXlllULywrY74=; b=aMLfgBM53Odl/Dpfcg6rlHbt8BzywC43HTdBbqeYbw0zut/iMbryBhVAMW1agy05Dl 3mld4naILTyAOOxpKKIhddguKWo0MA3JN/skK3JLdJwFTcAsk5OUOL9C6SmnseadqM1s JRAELfC8vaITGsY1ReuKuuVXQEgK37W2FMCTQ3hdOBTx8533VT875dTohfr94i+GWI7q 7P4rrBgv4D+MbHdzmX5I3+pucSmEy7GPIOpwH5zXbqUnlL6nadNKgPDQVdiLj97z+v5i RWl/iScLSWh/vSxNdt18H7o7GgK5+mSZcnOeHs5sg1231gPlK+kYcW+59LwqUScQRgfs MS6g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=joidKPU4J/w4mREzeZnSCt1rwx6tvBDXlllULywrY74=; b=AClvMyObRU+duF16Fme5y7POZjoGagn/+1fLAV9NchqjnmOMS+Z7B44B3HsdZIyxJv AblPraK1unroLgYeZGGrUjcd8j6Kr6DN4lmKXh3FNx3m7cJInX2CtxF2//Vsk3hfjJjz F+Lg6c0CnwQdX4WYrz2ZiHpwEzbkPZhqwusU5v+oXy92MgqtZ7GI05DHbZbfKNdpohAe jrBqlX81JJwdqYUGUpox0szNvFthhI12INHbeOLktnvRW9wepPRKhZjSlnxA7geqtTBf oBuyTrmP5uIZlc5fQOlaUOLHmbEIDwtH45lrVSCVL/3BrH6k1OT2h1CABMgnGyz1o0Sp OBOw==
X-Gm-Message-State: AFeK/H0fXg8sCtc3GnImy+OdKT/kuyYlsry4aN758xDGQTUw9p/Us8DZYI/wOpIK6+9My2uFI1aLtCdNg02UIw==
X-Received: by with SMTP id p76mr20965286wrc.137.1490656136122; Mon, 27 Mar 2017 16:08:56 -0700 (PDT)
MIME-Version: 1.0
Received: by with HTTP; Mon, 27 Mar 2017 16:08:35 -0700 (PDT)
In-Reply-To: <>
References: <> <> <> <> <> <> <> <>
From: =?UTF-8?Q?I=C3=B1aki_Baz_Castillo?= <>
Date: Tue, 28 Mar 2017 01:08:35 +0200
Message-ID: <>
To: Taylor Brandstetter <>
Cc: Byron Campen <>, mmusic WG <>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <>
Subject: Re: [MMUSIC] "a=extmap" with BUNDLE
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Multiparty Multimedia Session Control Working Group <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Mon, 27 Mar 2017 23:09:04 -0000

2017-03-28 0:24 GMT+02:00 Taylor Brandstetter <>om>:
>> It's just about getting the appropriate RtpReceiver
>> associated to the current RTP packet (this can be done by MID, RID,
>> SSRC or even PT, as the ORTC and JSEP "RTP Matching Rules" define).
> Right. So, if you can't get the appropriate RtpReceiver with RID, SSRC or
> PT, then you must do it with MID. And if the MID extension shares an ID with
> another extension, it becomes impossible to know the MID. For example:
> m=audio ...
> a=extmap:1 urn:ietf:params:rtp-hdrext:sdes:mid
> a=extmap:2 urn:foo
> m=video ...
> a=extmap:1 urn:bar
> a=extmap:2 urn:ietf:params:rtp-hdrext:sdes:mid
> I know it would be crazy to generate SDP like that, but there's nothing I've
> found that disallows it.

And you are 100% right here. MID ID must be unique across all the m=
lines, otherwise it is useless.

To make things even uglier, the RFC 5285 states:

   The mapping may be provided per media stream (in the media-level
   section(s) of SDP, i.e., after an "m=" line) or globally for all
   streams (i.e., before the first "m=" line, at session level).  The
   definitions MUST be either all session level or all media level; it
   is not permitted to mix the two styles.  In addition, as noted above,
   the IDs used MUST be unique for each stream type for a given media,
   or for the session for session-level declarations.

So a solution may be using just global a=extmap lines at SDP session
level. That would work, but it's a hack, because not all the IDs are
to be used within all the m= lines, not even across all the m= lines
of the same kind (audio, video).

Anyhow, the key of your argument is the "just MID for m=line
identification". It clearly requires the MID ID to be unique across
all the m= lines. One "solution" would be for the BUNDLE spec [*] to
mandate having a single MID ID, but it does not. I still prefer to
mandate that the same ID always references the same extension URI, and
that the same extension URI is just referenced by a single and unique
ID in the entire SDP, but that "breaks" RFC 5285...

So IMHO, the immediate issue is in BUNDLE spec [*] which defines the
MID stuff but does not mandate the MID ID to be unique in the whole


Iñaki Baz Castillo