Re: [rtcweb] Interest and need for Websocket subprotocol - JSEP over websockets

Iñaki Baz Castillo <ibc@aliax.net> Wed, 03 December 2014 23:14 UTC

Return-Path: <ibc@aliax.net>
X-Original-To: rtcweb@ietfa.amsl.com
Delivered-To: rtcweb@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E44061A877C for <rtcweb@ietfa.amsl.com>; Wed, 3 Dec 2014 15:14:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.678
X-Spam-Level:
X-Spam-Status: No, score=-1.678 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_LOW=-0.7] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ScERi-5CsTuI for <rtcweb@ietfa.amsl.com>; Wed, 3 Dec 2014 15:14:37 -0800 (PST)
Received: from mail-qc0-f177.google.com (mail-qc0-f177.google.com [209.85.216.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1EAA81A8797 for <rtcweb@ietf.org>; Wed, 3 Dec 2014 15:14:37 -0800 (PST)
Received: by mail-qc0-f177.google.com with SMTP id x3so11773141qcv.22 for <rtcweb@ietf.org>; Wed, 03 Dec 2014 15:14:36 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=OwQ8ltpp5sjBsPR8yReUNIBW2kBsaOEx+/JRAQwKoMo=; b=kp0Ww3yzJUqa7q87KYejdG8QdbuNYz2mY6vcDyv0+3TDGSrxajyO7ORhlU0iMGLOjl xR62/ja1hVcfboSdNnSs5ZMJQdlRsDEK2nLEZknbbn81t23j47iRnSx6qD3klf/XpOCh WOq5Nijc11caT34y4iKgDT7+5kcX/6b+i3qcMVx6DqZh+Yi2k+0nQEyW8Jhi+HXu3EDr jlpt0cYzzACJDi61G/tX/uX+opBs/9RhC1fYzj1Nzn+HX7zPeMEmT/lfygtGKjj8vbMO YfvfJh/zHkt4YUHyAOtH8TWV6WyyTWFvifFr1/U19iklZHmWY5K1rIv3/HWN2rcbRPsa LJxg==
X-Gm-Message-State: ALoCoQmP98Z+RN0Zlb5Hw+XaI0h1StFORIYP5c4v1yRDccAoPCNHDm1WGEsT6hZO2PWv3NphXPR0
X-Received: by 10.224.166.131 with SMTP id m3mr12029820qay.6.1417648476337; Wed, 03 Dec 2014 15:14:36 -0800 (PST)
MIME-Version: 1.0
Received: by 10.96.26.135 with HTTP; Wed, 3 Dec 2014 15:14:15 -0800 (PST)
In-Reply-To: <554d17d3779404eed3868ae587510e2f@ranjitvoip.com>
References: <6bef1cce67d1c9da7c29d8e0804f2551@ranjitvoip.com> <CAD5OKxs07wAu3V-x2gDnEmoAOEYL-X6njYmCTnfTBQB-YzD02w@mail.gmail.com> <E1FE4C082A89A246A11D7F32A95A17828E64BCAB@US70UWXCHMBA02.zam.alcatel-lucent.com> <554d17d3779404eed3868ae587510e2f@ranjitvoip.com>
From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Thu, 04 Dec 2014 00:14:15 +0100
Message-ID: <CALiegfnwt5NNTq2s6hKMjTwz6nO=Sfd8pdRPUBg111ULfRnhMg@mail.gmail.com>
To: ranjit@ranjitvoip.com
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/rtcweb/O8d8yrTgaiH_4Tm50jKN2u2nEw8
Cc: "rtcweb@ietf.org" <rtcweb@ietf.org>
Subject: Re: [rtcweb] Interest and need for Websocket subprotocol - JSEP over websockets
X-BeenThere: rtcweb@ietf.org
X-Mailman-Version: 2.1.15
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: Wed, 03 Dec 2014 23:14:39 -0000

2014-12-03 19:57 GMT+01:00  <ranjit@ranjitvoip.com>:
> While I agree SIP over Websockets is default signaling protocol for WebRTC
> while working with IMS, there could be scenarios where WebRTC calls can get
> initiated from non SIP UAs like web browsers which do not support SIP.

There are not "browsers which do not support SIP" and there are not
browsers supporting SIP. But fortunately browsers do support WebSocket
and JavaScript, so we can implement&use SIP, XMPP, fooJSON or barJSON
over WebSocket, or even CHICKEN over WebSocket.


>  Then
> in such cases, the following things could happen
> 1) the WebRTC client on the browser can use JSEP to send its signaling
> information over WebSocket,

OK, I know your SDP. Can you also tell me *who* you are?


> now we see JSEP messages getting exchanged over Websockets. so if the
> websocket sub-protocol does not define the type as "jsep", then the WebRTC
> GW would not know the incoming message type and hence may discard it or its
> behavior may be uncertain.

You don't get the point. If you use SIP over WebSocket (within a
WebRTC context) or XMPP over WebSocket or whatever other protocol, you
are already using JSEP. Where?

- When you use the W3C WebRTC API.
- When you transmit the SDP offer from peerA to peerB (using
SIP/XMPP/CHICKEN over WebSocket).
- etc.


> Also the JSEP message needs to be enhanced to add more message types (along
> with current OFFER / ANSWER) to be able to map it with standard signaling
> protocol like SIP as defined in
> https://tools.ietf.org/html/draft-partha-rtcweb-jsep-sip-01

Fortunately it won't happen. But feel free to design your own wire
protocol to transmit media related information among with your custom
signaling information (who you are, who you are calling to, etc). Just
don't request it to be a standard please.





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