Re: [rtcweb] Minimal SDP negotiation mechanism

Christer Holmberg <christer.holmberg@ericsson.com> Tue, 20 September 2011 12:06 UTC

Return-Path: <christer.holmberg@ericsson.com>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EF84921F8C1E for <rtcweb@ietfa.amsl.com>; Tue, 20 Sep 2011 05:06:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.535
X-Spam-Level:
X-Spam-Status: No, score=-6.535 tagged_above=-999 required=5 tests=[AWL=0.064, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 OwSEguKGhZT8 for <rtcweb@ietfa.amsl.com>; Tue, 20 Sep 2011 05:06:23 -0700 (PDT)
Received: from mailgw10.se.ericsson.net (mailgw10.se.ericsson.net [193.180.251.61]) by ietfa.amsl.com (Postfix) with ESMTP id 1CCE221F8BF8 for <rtcweb@ietf.org>; Tue, 20 Sep 2011 05:06:22 -0700 (PDT)
X-AuditID: c1b4fb3d-b7c47ae000000b17-29-4e7882505d80
Received: from esessmw0256.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw10.se.ericsson.net (Symantec Mail Security) with SMTP id EC.88.02839.052887E4; Tue, 20 Sep 2011 14:08:48 +0200 (CEST)
Received: from ESESSCMS0356.eemea.ericsson.se ([169.254.1.250]) by esessmw0256.eemea.ericsson.se ([10.2.3.125]) with mapi; Tue, 20 Sep 2011 14:08:48 +0200
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Hadriel Kaplan <HKaplan@acmepacket.com>, Harald Alvestrand <harald@alvestrand.no>
Date: Tue, 20 Sep 2011 14:08:46 +0200
Thread-Topic: [rtcweb] Minimal SDP negotiation mechanism
Thread-Index: AQHMdzYrM8NQBuqbMkGVQzMD9HmeUZVWLKng
Message-ID: <7F2072F1E0DE894DA4B517B93C6A05852233F6F222@ESESSCMS0356.eemea.ericsson.se>
References: <4E777500.5030201@alvestrand.no> <69262135-CF5D-4E79-85CD-82DFDC4250C0@acmepacket.com>
In-Reply-To: <69262135-CF5D-4E79-85CD-82DFDC4250C0@acmepacket.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: AAAAAA==
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Minimal SDP negotiation mechanism
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Real-Time Communication in WEB-browsers working group list <rtcweb.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtcweb>
List-Post: <mailto:rtcweb@ietf.org>
List-Help: <mailto:rtcweb-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtcweb>, <mailto:rtcweb-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 20 Sep 2011 12:06:24 -0000

Hi, 

>In SIP it's possible to get two or more different answers 
>back for one offer, due to forking.  I'm not sure you 
>want/need to handle that case, but it can and does 
>in-practice happen in SIP.

Whether we want the browser to support forking is one thing, and I guess it much depends on whether we want to be able to do things on the media plane during the early phase of a session establishment.

But, at least the API needs to allow a JS SIP app to "replace" a previously received SDP with a new one (if the SIP app, in the forking case, for example chooses to always use the latest received SDP answer).

Regards,

Christer





> 
> Also, in SIP it's technically possible to generate SDP which 
> is neither an offer nor an answer, but is rather 
> "capabilities".  This is described in RFC 3264 section 9, and 
> used in responses to SIP OPTIONS requests by some devices.  
> As Cullen noted in some earlier email in the mailing list, 
> this could probably be hacked around with a fake SDP answer 
> or error, but ya may want to keep things clean and just 
> handle this case explicitly instead.
> 
> -hadriel
> 
> 
> On Sep 19, 2011, at 12:59 PM, Harald Alvestrand wrote:
> 
> > I am looking at the WEBRTC API spec, which specifies a 
> rudimentary negotiation framework: SDP objects prefixed by 
> the string "SDP".
> > 
> > It seems clear to me that this needs at least information 
> about whether something is an offer or an answer, and some 
> way to complete the transaction when an offer is sent and 
> something prevents it from completing.
> > Until we know we need more, what about the following, to be 
> specified in the WEBRTC API?
> > 
> > SDP objects are sent through the API, prefixed with either of
> > 
> > SDP OFFER
> > SDP ANSWER
> > 
> > Alternatively, one can pass
> > 
> > SDP ERROR
> > 
> > to reply to an SDP OFFER when something goes wrong.
> > 
> > If one gets an OFFER and sends out an ANSWER, state changes.
> > If OFFER gets an ANSWER back, state changes.
> > In all other cases, state is as before.
> > 
> > We need to handle glare - when one sends an OFFER and gets 
> back an OFFER, reply with SDP ERROR, enter a "glare" state, 
> wait a bit, and send out an offer again.
> > 
> > Do we really have to have anything else?
> > 
> > 
> > 
> > 
> > _______________________________________________
> > rtcweb mailing list
> > rtcweb@ietf.org
> > https://www.ietf.org/mailman/listinfo/rtcweb
> 
> _______________________________________________
> rtcweb mailing list
> rtcweb@ietf.org
> https://www.ietf.org/mailman/listinfo/rtcweb
>