Re: [rtcweb] Add, remove, add, remove, add, remove a media stream (lines in SDP)

Saúl Ibarra Corretgé <saul@ag-projects.com> Mon, 23 April 2012 08:12 UTC

Return-Path: <saul@ag-projects.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 12F8821F85DF for <rtcweb@ietfa.amsl.com>; Mon, 23 Apr 2012 01:12:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.363
X-Spam-Level:
X-Spam-Status: No, score=-1.363 tagged_above=-999 required=5 tests=[AWL=-0.275, BAYES_00=-2.599, HELO_MISMATCH_NET=0.611, J_CHICKENPOX_18=0.6, MIME_8BIT_HEADER=0.3]
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 dz507ECUAXcN for <rtcweb@ietfa.amsl.com>; Mon, 23 Apr 2012 01:12:17 -0700 (PDT)
Received: from mail.sipthor.net (node06.dns-hosting.info [85.17.186.6]) by ietfa.amsl.com (Postfix) with ESMTP id E07F021F84E4 for <rtcweb@ietf.org>; Mon, 23 Apr 2012 01:12:14 -0700 (PDT)
Received: by mail.sipthor.net (Postfix, from userid 5001) id 1D04AB01A2; Mon, 23 Apr 2012 10:12:14 +0200 (CEST)
Received: from imac.saghul.lan (ip3e830637.speed.planet.nl [62.131.6.55]) by mail.sipthor.net (Postfix) with ESMTPSA id 4F084B019C; Mon, 23 Apr 2012 10:12:13 +0200 (CEST)
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="iso-8859-1"
From: Saúl Ibarra Corretgé <saul@ag-projects.com>
In-Reply-To: <CALiegfmZNMjeLWjvS-7iAABCvRfoq8WeZ83ap2e7nmUzT5-07g@mail.gmail.com>
Date: Mon, 23 Apr 2012 10:12:12 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <AC5A9A3E-B744-428D-AC6D-19359949600F@ag-projects.com>
References: <CALiegfkBFNv6emEg6gkxV+iPkx52rUwn+qcyEjk2r4iDYEXrAA@mail.gmail.com> <7F2072F1E0DE894DA4B517B93C6A05852C4400131A@ESESSCMS0356.eemea.ericsson.se> <CALiegfnDOFipBMK1DU=G5RUH0sHDDcL0C+smwJqRmazJB_xdJg@mail.gmail.com> <5D37D3F0-9A1C-4116-9A19-47E5A8929F71@ag-projects.com> <CALiegfmZNMjeLWjvS-7iAABCvRfoq8WeZ83ap2e7nmUzT5-07g@mail.gmail.com>
To: Iñaki Baz Castillo <ibc@aliax.net>
X-Mailer: Apple Mail (2.1084)
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Add, remove, add, remove, add, remove a media stream (lines in SDP)
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: Mon, 23 Apr 2012 08:12:21 -0000

On Apr 23, 2012, at 10:03 AM, Iñaki Baz Castillo wrote:

> 2012/4/23 Saúl Ibarra Corretgé <saul@ag-projects.com>:
>> On Apr 23, 2012, at 9:29 AM, Iñaki Baz Castillo wrote:
>>> Maybe the previosly used UDP port is not available later. Probably
>>> there are no more reasons :)
>>> 
>> 
>> But when you disabled the stream you did set the port to zero, so when you resurrect the stream you'd allocate a new port.
> 
> The stack could try to allocate the same port as default bahavior.
> 

Well, then the stack needs to be fixed :-) The stack should 'forget' the port as soon as it sets it as zero in the stream, and allocate a new one, the same way it would do for a brand new stream.

> 
> 
>> Were you thinking about setting the stream as inactive (a=inactive in SDP terms) instead?
> 
> But setting a=inactive just pauses the stream in a single direction
> (according to RFC 4566). You could be interested in stopping sending
> and receiving video.
> 

IIRC inactive pauses the stream in both directions. For pausing it in a single direction you can use sendonly / recvonly.


Regards,

--
Saúl Ibarra Corretgé
AG Projects