Re: [MMUSIC] Wisdom sought: Prioritization of codecs

"Horvath, Ernst" <ernst.horvath@siemens-enterprise.com> Thu, 15 November 2012 09:05 UTC

Return-Path: <ernst.horvath@siemens-enterprise.com>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EBE1A21F85C4 for <mmusic@ietfa.amsl.com>; Thu, 15 Nov 2012 01:05:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level:
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cW+g7g6xU8Rj for <mmusic@ietfa.amsl.com>; Thu, 15 Nov 2012 01:05:10 -0800 (PST)
Received: from senmx11-mx.siemens-enterprise.com (senmx11-mx.siemens-enterprise.com [62.134.46.9]) by ietfa.amsl.com (Postfix) with ESMTP id E2D3721F851A for <mmusic@ietf.org>; Thu, 15 Nov 2012 01:05:09 -0800 (PST)
Received: from MCHP01HTC.global-ad.net (unknown [172.29.42.234]) by senmx11-mx.siemens-enterprise.com (Server) with ESMTP id C89571EB8466; Thu, 15 Nov 2012 10:05:08 +0100 (CET)
Received: from MCHP03MSX.global-ad.net ([169.254.2.205]) by MCHP01HTC.global-ad.net ([172.29.42.234]) with mapi id 14.02.0318.001; Thu, 15 Nov 2012 10:05:08 +0100
From: "Horvath, Ernst" <ernst.horvath@siemens-enterprise.com>
To: Harald Alvestrand <harald@alvestrand.no>, mmusic <mmusic@ietf.org>
Thread-Topic: [MMUSIC] Wisdom sought: Prioritization of codecs
Thread-Index: AQHNww3eTvf8wKkeykCBHwLiw7dS7Zfql1xg
Date: Thu, 15 Nov 2012 09:05:07 +0000
Message-ID: <C2BCA7974025BD459349BED0D06E48BB0129EE62@MCHP03MSX.global-ad.net>
References: <50A4AC20.5030306@alvestrand.no>
In-Reply-To: <50A4AC20.5030306@alvestrand.no>
Accept-Language: de-AT, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [172.29.42.225]
Content-Type: multipart/alternative; boundary="_000_C2BCA7974025BD459349BED0D06E48BB0129EE62MCHP03MSXglobal_"
MIME-Version: 1.0
Subject: Re: [MMUSIC] Wisdom sought: Prioritization of codecs
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Multiparty Multimedia Session Control Working Group <mmusic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mmusic>, <mailto:mmusic-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mmusic>
List-Post: <mailto:mmusic@ietf.org>
List-Help: <mailto:mmusic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mmusic>, <mailto:mmusic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Nov 2012 09:05:11 -0000

Harald,

RFC 3264 states that codecs are listed in order of preference, most preferred first, in both offer and answer. When selecting the acceptable codecs from the offered list the answerer should keep the order unless there is good reason not to do so. The offerer must be prepared to receive an answer with codecs arranged in a different order. Although both sides can then use any of the negotiated codecs it is recommended they use the first in the list.

Regards,
Ernst

________________________________
From: mmusic-bounces@ietf.org [mailto:mmusic-bounces@ietf.org] On Behalf Of Harald Alvestrand
Sent: Donnerstag, 15. November 2012 09:47
To: mmusic
Subject: [MMUSIC] Wisdom sought: Prioritization of codecs

I've been searching RFC 4566 (SDP) for this info, but came up blank....

in an M-line, we typically have

m=video blabla 111 112 113
a=rtpmap:111 ....
a=rtpmap:112 ...
a=rtpmap:113 ....

Section 5.14 says this:


      If the <proto> sub-field is "RTP/AVP" or "RTP/SAVP" the <fmt>
      sub-fields contain RTP payload type numbers.  When a list of
      payload type numbers is given, this implies that all of these
      payload formats MAY be used in the session, but the first of these
      formats SHOULD be used as the default format for the session.



Now, the questions...

1) In offer/answer, does this sequence in an offer mean that the offerer prefers that the answerer use codec 111, if supported?

2) in offer/answer, does this sequence in an answer mean that the answerer prefers that the offerer use codec 111?

3) is there any preference expressed between codec 112 and codec 113?

4) Should the sequence of a=rtpmap: lines be completely ignored, or does it matter?

I'm trying to fix a bug, and want to make sure I fix it according to spec.

               Harald