Re: [sipcore] RFC5626 and REGISTER with multiple contacts

Iñaki Baz Castillo <ibc@aliax.net> Mon, 07 May 2012 17:50 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 ECA1E21F8620 for <sipcore@ietfa.amsl.com>; Mon, 7 May 2012 10:50:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.015
X-Spam-Level:
X-Spam-Status: No, score=-2.015 tagged_above=-999 required=5 tests=[AWL=-0.538, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_37=0.6, J_CHICKENPOX_38=0.6, 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 4sWGZDxTsY0X for <sipcore@ietfa.amsl.com>; Mon, 7 May 2012 10:50:49 -0700 (PDT)
Received: from mail-qc0-f172.google.com (mail-qc0-f172.google.com [209.85.216.172]) by ietfa.amsl.com (Postfix) with ESMTP id 45DDF21F861E for <sipcore@ietf.org>; Mon, 7 May 2012 10:50:46 -0700 (PDT)
Received: by qcsq13 with SMTP id q13so1049477qcs.31 for <sipcore@ietf.org>; Mon, 07 May 2012 10:50:45 -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=IP1hqBwF8CB7tUwx6HrvoMdC4u0A0+N90AH4nTRYQpM=; b=cy3jcpTzljzMhyQgQAMYDtALxbXxq1Gr4j0hjGRABU2XR+P18wy9dudQUUfNLzNmWE uSKGyYYLgjoTBazFifrtsyM/VlXBMwoyUYHgOhBMVCzgeDP044uiAAyZlUC/BOotcEPU oy28FE3Nc3/R0GIQULqBcrs2RE5gLEfp/f21GXD3CPnbCK0I/Z7wcr0j7PT++bvjNLgJ HRLT1uhNBY53dSeMzetsnnv8MLIT1x+9GcMk4JS6RbaSlZBgmhbWYsEHGiC6c4iIwBc3 BHgW6CVrmShQzEJbR6Mym04NbgQlNWvC7XNTkNREeEdo2V7EN8Cn3fFkIz7nNaz7g84Y p/yg==
Received: by 10.220.222.13 with SMTP id ie13mr1588890vcb.52.1336413045593; Mon, 07 May 2012 10:50:45 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.52.107.199 with HTTP; Mon, 7 May 2012 10:50:25 -0700 (PDT)
In-Reply-To: <3A324A65CCACC64289667DFAC0B88E12197E438967@ESESSCMS0360.eemea.ericsson.se>
References: <3A324A65CCACC64289667DFAC0B88E12197E3BB890@ESESSCMS0360.eemea.ericsson.se> <CD5674C3CD99574EBA7432465FC13C1B22726A0AA4@DC-US1MBEX4.global.avaya.com> <3A324A65CCACC64289667DFAC0B88E12197E3BBBC8@ESESSCMS0360.eemea.ericsson.se> <CALiegfmdb5PHiXk0fiveHAiM6zwUTB8Fi5gPhM-WgzYT_J2uUg@mail.gmail.com> <3A324A65CCACC64289667DFAC0B88E12197E3BBDF5@ESESSCMS0360.eemea.ericsson.se> <CALiegfk5t5p=sw0MVcrzVshYs2Z3kiw0KYmqzLRGmdcPZj3YfA@mail.gmail.com> <3A324A65CCACC64289667DFAC0B88E12197E3BBEA3@ESESSCMS0360.eemea.ericsson.se> <4FA3EFD8.2080903@digium.com> <3A324A65CCACC64289667DFAC0B88E12197E438967@ESESSCMS0360.eemea.ericsson.se>
From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Mon, 07 May 2012 19:50:25 +0200
Message-ID: <CALiegf=PuzHXJ0ZuDYFRYDyhNZsmN4kh_1_oMLG7YKBKPforbw@mail.gmail.com>
To: Ivo Sedlacek <ivo.sedlacek@ericsson.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Gm-Message-State: ALoCoQl0/sbgz9T9UQUj5NJomsUO+3V97nU5RHF0xkUeGv5Zbbi/7gxU44JOO75evJZMbNgBelEs
Cc: "sipcore@ietf.org" <sipcore@ietf.org>, "Kevin P. Fleming" <kpfleming@digium.com>
Subject: Re: [sipcore] RFC5626 and REGISTER with multiple contacts
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: Mon, 07 May 2012 17:50:50 -0000

2012/5/7 Ivo Sedlacek <ivo.sedlacek@ericsson.com>:
> When reading RFC3261, I was not able to find any text stating that a SIP UA can have only a single contact. Quite the opposite, RFC3261 states that UA can register several Contacts and update its own contact addresses:
> --------------------------------------------------
> 10.2.1 Adding Bindings
> ...
>   The REGISTER request sent to a registrar includes the contact
>   address(es) to which SIP requests for the address-of-record should be
>   forwarded.
> ...
> Typically, a UA
>   only updates its own contact addresses.
> ...
> --------------------------------------------------


Right, it could occur that the same UA register a UDP and a TCP binding.



> I have not found any statement that when outbound is used, each contact of a UA must be the same. Can you please point me to such text in RFC5626?
>
> Moreover, when outbound is used, each contact is different due to reg-id even if UA is monolithic. Given Kevin's statement above, each such contact would have to have different sip.instance which defeats the purpose of the outbound.
>
> Moreover, Inaki stated that contacts can differ even for the same sip.instance:

>> First it's registered fom my home WiFi network but then I leave my home and my mobile connects via 3G to Internet. So the SIP app sends a new REGISTER indicating the same sip.instance but a different Contact SIP URI (i.e. different IP).

Yes, but all those Contact SIP URIs point to the same UA so to the
same instance, that's the purpose of Outbound.



> To Inaki:
>> Said that, IMHO it's useless that you set different SIP URI usernames in each Contact header since Contact matching in the registrar just considers the sip.instace and reg-id Contact parameters.
>> With this in mind, a REGISTER with multiple Contact headers providing the same sip.instance is useless and/or invalid.
>
> Disagree. Several contacts enable expressing user agent capabilities which cannot be expressed in single contact. See the example in the other mail.

But user agent capabilities mean *UA* capabilities, and a UA is
represented by a single and unique sip.instance.

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