Re: [rtcweb] JSEP: Relaxing SDP O/A rules?

Christer Holmberg <christer.holmberg@ericsson.com> Sat, 06 October 2012 18:38 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 4E94721F8455 for <rtcweb@ietfa.amsl.com>; Sat, 6 Oct 2012 11:38:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.105
X-Spam-Level:
X-Spam-Status: No, score=-6.105 tagged_above=-999 required=5 tests=[AWL=0.144, BAYES_00=-2.599, HELO_EQ_SE=0.35, RCVD_IN_DNSWL_MED=-4]
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 7H1BO+eo7v4o for <rtcweb@ietfa.amsl.com>; Sat, 6 Oct 2012 11:38:51 -0700 (PDT)
Received: from mailgw2.ericsson.se (mailgw2.ericsson.se [193.180.251.37]) by ietfa.amsl.com (Postfix) with ESMTP id 4F8B421F8452 for <rtcweb@ietf.org>; Sat, 6 Oct 2012 11:38:51 -0700 (PDT)
X-AuditID: c1b4fb25-b7f046d00000644c-e5-50707ab90304
Received: from esessmw0237.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw2.ericsson.se (Symantec Mail Security) with SMTP id 23.49.25676.9BA70705; Sat, 6 Oct 2012 20:38:49 +0200 (CEST)
Received: from ESESSCMS0356.eemea.ericsson.se ([169.254.1.243]) by esessmw0237.eemea.ericsson.se ([153.88.115.90]) with mapi; Sat, 6 Oct 2012 20:38:49 +0200
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: Martin Thomson <martin.thomson@gmail.com>
Date: Sat, 06 Oct 2012 20:38:49 +0200
Thread-Topic: [rtcweb] JSEP: Relaxing SDP O/A rules?
Thread-Index: Ac2jT++0dz09b0CmTciyh3RNj762sQAoJQ4b
Message-ID: <7F2072F1E0DE894DA4B517B93C6A0585340BAFAA5E@ESESSCMS0356.eemea.ericsson.se>
References: <7F2072F1E0DE894DA4B517B93C6A0585340A1E3AB1@ESESSCMS0356.eemea.ericsson.se> <CABkgnnUFvw_J2+tvVBoHrzR9ZRkPT-6LhXvbaz_U1P7gqtJ4xw@mail.gmail.com> <7F2072F1E0DE894DA4B517B93C6A0585340A7BC848@ESESSCMS0356.eemea.ericsson.se> <CABkgnnV6NcTeh=L_fpkpLv5UpkUSuacmQUtYwNKKwAfcb5+JQA@mail.gmail.com> <506D4F7A.5020109@alvestrand.no> <CABkgnnUgHRw4dtihk2fZppmzVWuV4hpvWtXt70N1HWQpJ+KsZw@mail.gmail.com> <7F2072F1E0DE894DA4B517B93C6A05853409FF2FDF@ESESSCMS0356.eemea.ericsson.se> <CABkgnnV+jHWF3t8s3t37pbQyXJEP9N_MyHWd3SsfoNrhMU=NXw@mail.gmail.com> <7F2072F1E0DE894DA4B517B93C6A0585340A7BD0C5@ESESSCMS0356.eemea.ericsson.se> <CABkgnnVFWDroiTWVOm6F3FRQ6dDkRjKdyV8apRK=0Y_ReYtmPA@mail.gmail.com> <7F2072F1E0DE894DA4B517B93C6A05853409FF2FE5@ESESSCMS0356.eemea.ericsson.se>, <CABkgnnUR6XL4QLmZAUVqnB5S+UFh7sfmzkDzfjK52+e9_FFkJg@mail.gmail.com>
In-Reply-To: <CABkgnnUR6XL4QLmZAUVqnB5S+UFh7sfmzkDzfjK52+e9_FFkJg@mail.gmail.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: H4sIAAAAAAAAA+NgFnrMLMWRmVeSWpSXmKPExsUyM+Jvre7OqoIAg+6/uhbH+rrYLK6d+cdo sfZfO7sDs8eVCVdYPXbOusvusWTJT6YA5igum5TUnMyy1CJ9uwSujNu/m1gK3nFWtKx/zNrA +Ji9i5GTQ0LARGLegW+MELaYxIV769m6GLk4hAROMUo8bT3GAuEsYJRYt76dtYuRg4NNwEKi +582SIOIgK7EorMPwAYxCwRL9HZNZgWxWQRUJBZsvs4CYgsLGEt0fj7GBFFvIrFmxxoWCNtI YuXUBWC9vALhErOOv2WE2HWLTWLq9LdgCU6BQIl3rW1sIDYj0HXfT61hglgmLnHryXwmiKsF JJbsOc8MYYtKvHz8jxWiXlTiTvt6Roh6HYkFuz+xQdjaEssWvmaGWCwocXLmE5YJjGKzkIyd haRlFpKWWUhaFjCyrGIUzk3MzEkvN9JLLcpMLi7Oz9MrTt3ECIyog1t+q+5gvHNO5BCjNAeL kjiv9dY9/kIC6YklqdmpqQWpRfFFpTmpxYcYmTg4pRoYeVtFOrc+Vzt2buvvRi6TpOBOwYd5 v0t0lqzfEWevV/6A/dcKjYi1u95s+ZJ7MchgxdSo2hMWT+VSDFN6Ct79WHp3lVm4q9SKfZ2t h7rPNd93sX7+Tj2CzU7L+9Qpmf3nN/5yWc76pefO312Ghoo181nLNk3sOFx3atPjm8rCz872 3vijqPCKSYmlOCPRUIu5qDgRAIP4T+92AgAA
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] JSEP: Relaxing SDP O/A rules?
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: Sat, 06 Oct 2012 18:38:52 -0000

Hi,

>>>> Can I use the same local descriptor for every setLocal() call?
>>>
>>> My experience suggests that you can.  However, that's not stipulated
>>> in the API specification, so it's not an ironclad guarantee.
>>
>> If it doesn't, and a new local descripor is created, you would need to send that one to the remote 
>> endpoint.
>
> You don't create a new description, you just set one.

Correct.

> The only problem arises when you can't set the local description because
> something broke since you last set it.  (Maybe setting the answer
> caused the browser to release something that you need to set the
> offer.)

That is the main difference between PRANSWER and ANSWER: PRANSWER does not release local resources based on the answer.

> If that happens, you are hosed.  You could try to make a new PeerConnection, but you'll have to resend your INVITE because you will
> get a new set of candidates, ufrag, pwd, etc...

Or, you could set the new local descriptor BEFORE you apply the answer to the previous one. I think that is how the cloning is currently described in JSEP: the cloning happens first (eventhough it may never be used, if no additional remote peers are contacted).

Regards,

Christer