Re: [Stox] core: response code mappings

Daniel-Constantin Mierla <miconda@gmail.com> Mon, 19 August 2013 21:44 UTC

Return-Path: <miconda@gmail.com>
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 1F45011E816F for <stox@ietfa.amsl.com>; Mon, 19 Aug 2013 14:44:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.729
X-Spam-Level:
X-Spam-Status: No, score=-1.729 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, SARE_MLH_Stock1=0.87]
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 XXsct1dvXWmT for <stox@ietfa.amsl.com>; Mon, 19 Aug 2013 14:44:13 -0700 (PDT)
Received: from mail-ea0-x232.google.com (mail-ea0-x232.google.com [IPv6:2a00:1450:4013:c01::232]) by ietfa.amsl.com (Postfix) with ESMTP id 2BF2811E815E for <stox@ietf.org>; Mon, 19 Aug 2013 14:44:12 -0700 (PDT)
Received: by mail-ea0-f178.google.com with SMTP id a15so2555956eae.9 for <stox@ietf.org>; Mon, 19 Aug 2013 14:44:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=fXeh2DD3fq9U+wc2yzTFH2BFVBQOJGhhLJSKbZXMpn0=; b=ymLCBG8hEngcr1BDcf9HufS1P1H70heUkwDN70AsR6H3OXa4XVx8ToBVjb1p6dVgDw QsxClPBDWMYQbbM+OXCNfvrJICmaciJoYJ4GoPFEX3+iG/nPnlEiiSZ6YfO/MBhO2riE Pdhq5LzVwjM4U/jXgwggH36hhq5P75O/77hLAW03T9hJkgF4Fjzu4mA5RIoJmFRXdO/5 ruVlTA7Xh8HDCjDh2fxORUf1jip6B+eSy2Qwj1CzRC04/e5oFdjWn6KKzyQlp3F6dIht +wur5uqDYbXyGmI8ydejYECW3PPUgQuvJDl3zdeHA6KPONWOkl7l0bxavBYzK+DOmfL1 B/NQ==
X-Received: by 10.14.126.73 with SMTP id a49mr7935987eei.48.1376948652094; Mon, 19 Aug 2013 14:44:12 -0700 (PDT)
Received: from [127.0.0.1] (ns.asipto.com. [213.133.111.169]) by mx.google.com with ESMTPSA id t6sm20153406eel.12.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 Aug 2013 14:44:11 -0700 (PDT)
Message-ID: <521291A9.1030503@gmail.com>
Date: Mon, 19 Aug 2013 23:44:09 +0200
From: Daniel-Constantin Mierla <miconda@gmail.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:23.0) Gecko/20100101 Thunderbird/23.0
MIME-Version: 1.0
To: Peter Saint-Andre <stpeter@stpeter.im>, Paul Kyzivat <pkyzivat@alum.mit.edu>
References: <520EDFBB.90503@stpeter.im> <521279E3.7030309@alum.mit.edu> <52127EC5.7060907@stpeter.im>
In-Reply-To: <52127EC5.7060907@stpeter.im>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: stox@ietf.org
Subject: Re: [Stox] core: response code mappings
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: miconda@gmail.com
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: Mon, 19 Aug 2013 21:44:14 -0000

On 8/19/13 10:23 PM, Peter Saint-Andre wrote:
> On 8/19/13 2:02 PM, Paul Kyzivat wrote:
>> On 8/16/13 10:28 PM, Peter Saint-Andre wrote:
>>> The SIP Parameters Registry has a list of SIP response codes:
>>>
>>> http://www.iana.org/assignments/sip-parameters/sip-parameters.xml#sip-parameters-7
>>>
>>>
>>> A number of those are not specified in RFC 3261. Thus the question
>>> arises: for which codes do we need to define mappings? We could define
>>> mappings for all of them, but I wonder if that's advisable. Some of the
>>> additional codes are specified in RFCs that update RFC 3261 (e.g., code
>>> 440 from RFC 5393), whereas other codes are specified in "non-core" RFCs
>>> that don't update RFC 3261 (e.g., code 470 from RFC 5360). Would it
>>> perhaps make sense to map the "core" codes and not the "non-core" codes?
>> I know this is almost a non-answer, but...
>>
>> The codes that are defined in other RFCs are there to support features
>> that are introduced in those RFCs. If there is a mapping of that feature
>> to XMPP, then there should be a mapping of the code.
> That makes sense.
>
>> If there is no mapping of the feature, then mapping the code is less
>> important, but still perhaps useful in some cases. E.g., it could
>> conceivably show up in a Reason code based on signaling that was never
>> gatewayed to xmpp. But maybe a default mapping would be sufficient in
>> those cases.
> I suspect that the default mapping would be fine.
>
> And in general, there might be more art than science here.
>
> I have written some proposed text for this section, but it's fairly long
> so my inclination is to submit a revised I-D and then folks can review
> what I've written and post to the list with feedback.
Looking at the latest draft, it seems to bring confusion on mapping from 
xmpp-to-sip on 400 code. I read this thread and kind of understood that 
any not-obvious-mapping similar-to-a-4xx case would be handled same as 
400 in SIP, but typically the 400 response is given for a malformed sip 
requests (like broken grammar).

After quick read, <conflict/> would map more suggestively to 403 
Forbidden. Maybe <policy-violation> and <undefined-condition/> could get 
other mappings as well.

Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda