Re: [sipcore] Open issues in draft-ietf-sipcore-sip-websocket-09

Iñaki Baz Castillo <ibc@aliax.net> Wed, 19 June 2013 22:09 UTC

Return-Path: <ibc@aliax.net>
X-Original-To: sipcore@ietfa.amsl.com
Delivered-To: sipcore@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3C69521F9D75 for <sipcore@ietfa.amsl.com>; Wed, 19 Jun 2013 15:09:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.657
X-Spam-Level:
X-Spam-Status: No, score=-1.657 tagged_above=-999 required=5 tests=[AWL=0.021, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, MIME_8BIT_HEADER=0.3, NO_RELAYS=-0.001]
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 cTRIUzOerVEL for <sipcore@ietfa.amsl.com>; Wed, 19 Jun 2013 15:09:44 -0700 (PDT)
Received: from mail-qa0-x22f.google.com (mail-qa0-x22f.google.com [IPv6:2607:f8b0:400d:c00::22f]) by ietfa.amsl.com (Postfix) with ESMTP id A496D21F9D71 for <sipcore@ietf.org>; Wed, 19 Jun 2013 15:09:44 -0700 (PDT)
Received: by mail-qa0-f47.google.com with SMTP id i13so753141qae.6 for <sipcore@ietf.org>; Wed, 19 Jun 2013 15:09: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=EW38DLLlMgYZDtgy41UMx5AWQTmJJdxe4Szvrz7yiSg=; b=BC1pdwpQns7ZbKL93p0vx++XTB5L0AaIHCSz3uAwHnzH/T50Rw6MMNioOi9bUimyUr zGDVrrfHycWHcDFZCP2g6b7SrVNESboZzit5oo9h7uvrjW1bnTkqhycmWZyOTrGalNhg 4Iw1zOx1FukAAzpB+r5dtJx5YltgySgsbGc/AlWX1qzeIytRivtAPy1RYEVCQqVEDaR3 xkCpM9VPdG/gnkLn9ZF3QAM86eUBm+kC52Cmswp32tlyOQeGdJTVMkvVUrxhDFkVpBsM DXRRZXdMNcoy9/Ukxhzb2+6VbNiRXUa4bx+tJpdyMQrPmwvTqfgT8wHo2VnxU0PABtQ5 ZWbw==
X-Received: by 10.229.124.68 with SMTP id t4mr1842415qcr.93.1371679783905; Wed, 19 Jun 2013 15:09:43 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.49.67.65 with HTTP; Wed, 19 Jun 2013 15:09:23 -0700 (PDT)
In-Reply-To: <E54AEADE791D51469F45E7FBB964391505C964@SGSIMBX001.nsn-intra.net>
References: <CALiegfmtohM8Nnf34o2EqMr-jV-LaQBP7mOB5qq+7OcQO9FkSA@mail.gmail.com> <003f01ce6aaf$aabda760$0038f620$@co.in> <CALiegfn=KrEsOT+HGkCpfkS3C7Tc0Jko6kautCHk3sP8zHrzVw@mail.gmail.com> <011e01ce6c44$3c70e290$b552a7b0$@co.in> <CALiegfnPeFf751QHLoeT_jO0u1LROtvkqseE7QcAZvLgSiqVZQ@mail.gmail.com> <E54AEADE791D51469F45E7FBB964391505C964@SGSIMBX001.nsn-intra.net>
From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Thu, 20 Jun 2013 00:09:23 +0200
Message-ID: <CALiegfk2sZowGakXmgwV-fMuA3E9M2TCzpdj-T41OSAw=0pG3g@mail.gmail.com>
To: "Avasarala, Ranjit (NSN - IN/Bangalore)" <ranjit.avasarala@nsn.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQmV3IkBLQ+JJCunBBMbEXZBj13u2dpWrE1ROfyL3kGIDmwBST2sJp8x2vUSGgnbt9BSFC0o
Cc: "SIPCORE (Session Initiation Protocol Core) WG" <sipcore@ietf.org>, Parthasarathi R <partha@parthasarathi.co.in>
Subject: Re: [sipcore] Open issues in draft-ietf-sipcore-sip-websocket-09
X-BeenThere: sipcore@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: SIP Core Working Group <sipcore.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sipcore>, <mailto:sipcore-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sipcore>
List-Post: <mailto:sipcore@ietf.org>
List-Help: <mailto:sipcore-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sipcore>, <mailto:sipcore-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 19 Jun 2013 22:09:45 -0000

2013/6/19 Avasarala, Ranjit (NSN - IN/Bangalore) <ranjit.avasarala@nsn.com>:
> Hi Inaki
>
> Usually contact header contains the address on which the callee can reach caller. But when a SIP message is sent in websocket, what is the use of putting contact header?


As said in my previous mail, that is just in case the client is a SIP
WebSocket Client but not a SIP WebSocket Server. Anyhow, the Contact
header MUST be added anyway as it can contain parameters other than
just the UA's address and transport. And it must be added in an INVITE
so the remote peer can create the "dialog target" and use its URI
value as Request-URI for in-dialog requests.

Those are SIP rules, they must be respected.


> Should Contact header contain browser's address, since SIP UA is anyway part of browser and the callee cannot anyway reach SIP UA directly.

Please take a look to the appendix B.1 of the draft:



B.1.  SIP WebSocket Client Considerations

   The JavaScript stack in web browsers does not have the ability to
   discover the local transport address used for originating WebSocket
   connections.  A SIP WebSocket client running in such an environment
   can construct a domain name consisting of a random token followed by
   the ".invalid" top-level domain name, as stated in [RFC2606], and
   uses it within its Via and Contact headers.

      The Contact URI provided by SIP UAs requesting (and receiving)
      Outbound support is not used for routing requests to those UAs,
      thus it is safe to set a random domain in the Contact URI
      hostport.


Clear? :)

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