Re: [Stox] core issues

Daniel-Constantin Mierla <miconda@gmail.com> Wed, 21 August 2013 19:28 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 CBEAC21F9E3F for <stox@ietfa.amsl.com>; Wed, 21 Aug 2013 12:28:19 -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=[AWL=0.000, 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 pHLndyq7iNGe for <stox@ietfa.amsl.com>; Wed, 21 Aug 2013 12:28:09 -0700 (PDT)
Received: from mail-ea0-x22f.google.com (mail-ea0-x22f.google.com [IPv6:2a00:1450:4013:c01::22f]) by ietfa.amsl.com (Postfix) with ESMTP id 1201421F9DE1 for <stox@ietf.org>; Wed, 21 Aug 2013 12:28:07 -0700 (PDT)
Received: by mail-ea0-f175.google.com with SMTP id m14so473966eaj.20 for <stox@ietf.org>; Wed, 21 Aug 2013 12:28:06 -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:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=dwU/pueFCb3jRLtA7Pt16B/eYdF6tslAMClq6gDTBX0=; b=sdUJGs1ijEppQhnUvsuVWQtNOSszebVsmBmPX0jhlOLdU2TdqcsOFDMDFffMLtP/lm Bci6s8sc3PAunMO6hC2mv26BJcdRVH1Ghz+3PpaQn/93RzP7oSmwhJgoxmFacvxyotyQ wCrMaa4z44ypFJNrJj6/U1gTkFJV6mIVZuFgQPmr3nIIvgJzpbDqjdxGLzKivpGNtfaW 1/WXgLsRpvKqtfOx51nAHpax+7xYRW4JFZUSr0NdXRjZWrKealZeC2xnABWUdu78t83S 2eD/0iJU8DYU1w1v5FT7991gwdXktKdZ0QGmTAY7SiSum7CH1R3Viaa++pT88USWOfuQ ljyw==
X-Received: by 10.14.108.9 with SMTP id p9mr12602741eeg.8.1377113286445; Wed, 21 Aug 2013 12:28:06 -0700 (PDT)
Received: from [127.0.0.1] (ns.asipto.com. [213.133.111.169]) by mx.google.com with ESMTPSA id d8sm12059835eeh.8.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 12:28:05 -0700 (PDT)
Message-ID: <521514C4.60605@gmail.com>
Date: Wed, 21 Aug 2013 21:28:04 +0200
From: Daniel-Constantin Mierla <miconda@gmail.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0
MIME-Version: 1.0
To: stox@ietf.org
References: <E44893DD4E290745BB608EB23FDDB7620A07605C@008-AM1MPN1-042.mgdnok.nokia.com> <52125D9C.5080609@stpeter.im> <3816E434-747C-4E45-A713-393B4E1AAD01@edvina.net> <5213ED3D.2010709@stpeter.im> <5213F090.4000104@gmail.com> <521400CF.8020801@alum.mit.edu> <521469A0.80104@gmail.com> <52150EF5.5060401@alum.mit.edu>
In-Reply-To: <52150EF5.5060401@alum.mit.edu>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Subject: Re: [Stox] core issues
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: Wed, 21 Aug 2013 19:28:21 -0000

On 8/21/13 9:03 PM, Paul Kyzivat wrote:
> On 8/21/13 3:17 AM, Daniel-Constantin Mierla wrote:
>>
>> On 8/21/13 1:50 AM, Paul Kyzivat wrote:
>
>>> You can make it sound easy by ignoring the details, but at the expense
>>> of quality of implementation.
>>>
>>> The problem is that you may get multiple early dialogs, with media. At
>>> that time you don't know which one will answer first. So what do you
>>> do with the media while awaiting a 2xx?
>>>
>>> You can't "pick one" without the risk that it is the wrong one.
>>>
>>> You can "pick one" and switch it if it turns out to be the wrong one.
>>> But unless you relay the media the xmpp side will see a change, and so
>>> there must be some plan for how that is handled.
>> My comments were for the remark related to multiple 200ok, I haven't
>> said sending BYE for additional early dialogs.
>
> They are tightly connected issues.

If you just look at parallel forking, but handling of them is totally 
different.

>
>> For multiple early dialogs, the gateway has to maintain all of them
>> until a 200ok. It's also implementation decision which of early media
>> streams is sent to xmpp/jingle (again, it looks like it's mostly the
>> first one from experiences out there).
>
> This is straightforward if the GW terminates/relays media.
> But that is a cost.
>
> A signaling-only GW can't easily or thoroughly prevent the multiple 
> early media streams from reaching the xmpp client. (It may be able to 
> send updates to all but one to stop their media, but that takes some 
> time, and not all will support it.)
>
> So either you mandate that the GW terminate the media, or else you 
> have to acknowledge the situation and warn the xmpp client to be 
> prepared.
 From what's being repeated here, the idea is not to change existing 
protcols by enforcing new behaviour/support for features. It would be 
easier and more logical if changes can be made in both sides, but again, 
it's out of defined scope. Thus I guess the gateway should do stripping 
of what is not supported on the other side.

Since the issue is for calls from xmpp to sip, perhaps the multiple 
early media streams issue can be overcome by initiating the SIP side 
call with INVITE without SDP. The gateway needs to hold the SDP for ACK, 
but that should be no problem as I guess it has to be transaction 
stateful at least.

Daniel

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