[Stox] media: mapping a=fmtp to jingle

Philipp Hancke <fippo@goodadvice.pages.de> Sun, 04 August 2013 18:57 UTC

Return-Path: <fippo@goodadvice.pages.de>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C605721F9F7A for <stox@ietfa.amsl.com>; Sun, 4 Aug 2013 11:57:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_14=0.6]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id maGQZ27DchKN for <stox@ietfa.amsl.com>; Sun, 4 Aug 2013 11:57:14 -0700 (PDT)
Received: from lo.psyced.org (lost.IN.psyced.org [188.40.42.221]) by ietfa.amsl.com (Postfix) with ESMTP id 0B1E621F9C13 for <stox@ietf.org>; Sun, 4 Aug 2013 11:57:12 -0700 (PDT)
Received: from [192.168.178.35] (p548B9990.dip0.t-ipconnect.de [84.139.153.144]) (authenticated bits=0) by lo.psyced.org (8.14.3/8.14.3/Debian-9.4) with ESMTP id r74Iv9IX031337 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <stox@ietf.org>; Sun, 4 Aug 2013 20:57:11 +0200
Message-ID: <51FEA3FF.4000902@goodadvice.pages.de>
Date: Sun, 04 Aug 2013 20:57:03 +0200
From: Philipp Hancke <fippo@goodadvice.pages.de>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7
MIME-Version: 1.0
To: "stox@ietf.org" <stox@ietf.org>
Content-Type: text/plain; charset="ISO-8859-15"; format="flowed"
Content-Transfer-Encoding: 7bit
Subject: [Stox] media: mapping a=fmtp to jingle
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/stox>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 04 Aug 2013 18:57:22 -0000

The main problem of mapping a=fmtp to jingle and vice versa is that 
jingle has assumed that fmtp is always key-value separated by colons.
See http://xmpp.org/extensions/xep-0167.html#format at the bottom of 
section 4. Several implementors apparently noticed that the text is 
wrong and created workarounds.

I suspect the reasonable advice for the gateway is to translate lines 
with key-value pairs separated by semicolons as described in XEP-0167 
and pick one of the following ways to deal with non-key-value lines:
1) map to <parameter name='' value='thestuff'/> (used by gmail afaik)
2) map to <param name='thestuff' value=''/>
3) map to <param name='attributes'>thestuff</param>
    (XEP-0293/0294 recommend something similar)

How sensitive are SDP implementations in parsing different key-value 
variants (e.g. "key=value;key2=value" vs "key=value; key2=value2"?