Re: [rtcweb] JSEP-01 Handling Early Media, using SIP, clarifications

Iñaki Baz Castillo <ibc@aliax.net> Tue, 03 July 2012 22:13 UTC

Return-Path: <ibc@aliax.net>
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 7F43111E808C for <rtcweb@ietfa.amsl.com>; Tue, 3 Jul 2012 15:13:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.677
X-Spam-Level:
X-Spam-Status: No, score=-2.677 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-1]
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 QAO9rYXH6b3o for <rtcweb@ietfa.amsl.com>; Tue, 3 Jul 2012 15:13:37 -0700 (PDT)
Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by ietfa.amsl.com (Postfix) with ESMTP id 958CF11E8093 for <rtcweb@ietf.org>; Tue, 3 Jul 2012 15:13:35 -0700 (PDT)
Received: by lbbgo11 with SMTP id go11so10491980lbb.31 for <rtcweb@ietf.org>; Tue, 03 Jul 2012 15:13:44 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=QVOA6MEQv7OPiZHd85AM7XRoD+9voLYmyCtVhGaf+LM=; b=SJUlmcsOGKWPgH5/xdd+3XSvFz/SgEansehA90o/zlC7aK4vBRMOfSAxRLyb43YAYj ZPipXNRYsXfpcXT/fBYB3LOABAvFSckS8zrMmWeo0tj9QBXf0AEITP6Ajr539iRbv+hj JZXMhGO/Oe8i/vUsRXTzrVeGWoMiiU6CMvSvxkO85MNNqjm4Nj536UGMS1mbl0XDFOGo xL0t3PgW4VGm0vigLKn2nJf6yLLHPvvgurNLz2JMN9pfH2rpiyilIQjU42m6IcJAj9ir M7NglCQxZ2f7U2oEBqAfIifIvYl1NGBnQPz41U3LMn0gtuI7D1lazcTf6YL1wCD3nOPo ZERg==
Received: by 10.112.27.226 with SMTP id w2mr9032401lbg.57.1341353623988; Tue, 03 Jul 2012 15:13:43 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.114.23.2 with HTTP; Tue, 3 Jul 2012 15:13:23 -0700 (PDT)
In-Reply-To: <0434463FDA60A94FA978ACA44617682DFAA28B688B@EUSAACMS0702.eamcs.ericsson.se>
References: <CABcZeBNFVqSS8p+NGmz=BKxhAg5Cf6rc51fTbTTx60jLh4hitg@mail.gmail.com> <BEBF190F-58F2-40E3-B2C5-463056D92CED@iii.ca> <D7437196-E5C9-43AB-8623-68CD283758FE@ericsson.com> <0434463FDA60A94FA978ACA44617682DFAA28B688B@EUSAACMS0702.eamcs.ericsson.se>
From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Wed, 04 Jul 2012 00:13:23 +0200
Message-ID: <CALiegf=HwsC=dgH2Tu3Zn0869-2qbvkTh4MqzWqqRCqyT+7e_Q@mail.gmail.com>
To: Anne Raby <anne.raby@ericsson.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQkuhy00toMt6MjEmWMTiLKotHlEKvwwrgS9Q8Gl4YCQU4isbOePyAc+fLs5ulrdrasDMRml
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] JSEP-01 Handling Early Media, using SIP, clarifications
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, 03 Jul 2012 22:13:37 -0000

2012/6/29 Anne Raby <anne.raby@ericsson.com>:
> I am trying to reconcile this example with RFC3261, RFC3262 and RFC3264. With the help of RFC 6337, I understand that if a UAC receives a SDP answer in a reliable response, it should ignore any SDP ANSWER in a subsequent response in the same INVITE transaction. If the 2nd SDP is different then the UAC should only consider the 1st SDP answer.

Hi, that's not correct. Let me improve it:

If a UAC receives a SDP answer in a reliable response (with To-tag =
AAAA), then any subsequent provisional or final response (with SDP)
within the same transaction and *same* To-tag MUST contain the same
SDP. Otherwise it would be a violation of RFC 3261.

But within the same INVITE transaction, the UAC could receive
different provisional (and also final 2XX) responses with *different*
To-tag and, therefore, with different SDP. And yes, the UAC could
choose which media stream(s) to render (or render all of them in some
exotic way).



> If this is the case, then the SDP answer from the 200 OK should be the same as in the 180. What is then the advantage of using the "pranswer" state? I am trying to figure out in which case the "pranswer" could be used?

Imagine you call a mobile number, the mobile rings for a while and you
get a 183 with To-tag = AAAA and SDP 1. After 30 seconds the operator
decides to route your call to a voicemail server which automatically
answers your call and replies a 200 OK with a different To-tag = BBBB
(since it's a different UAS) and SDP 2 (of course not the same as SDP
1).  That's a simple example of SIP serial forking, but the same is
tru for parallel forking (in which you could get different 18X
responses at the same time, with different To-tag and SDP).


Regards.


-- 
Iñaki Baz Castillo
<ibc@aliax.net>