Re: [dispatch] URI schemes in P-Asserted-Identity

Emil Ivov <emcho@jitsi.org> Sun, 03 March 2013 16:08 UTC

Return-Path: <emil@sip-communicator.org>
X-Original-To: dispatch@ietfa.amsl.com
Delivered-To: dispatch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ABAF421F8726 for <dispatch@ietfa.amsl.com>; Sun, 3 Mar 2013 08:08:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.999
X-Spam-Level:
X-Spam-Status: No, score=-2.999 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, J_CHICKENPOX_74=0.6, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XayLjcr5WP7A for <dispatch@ietfa.amsl.com>; Sun, 3 Mar 2013 08:08:34 -0800 (PST)
Received: from mail-bk0-f48.google.com (mail-bk0-f48.google.com [209.85.214.48]) by ietfa.amsl.com (Postfix) with ESMTP id 32DE721F8715 for <dispatch@ietf.org>; Sun, 3 Mar 2013 08:08:33 -0800 (PST)
Received: by mail-bk0-f48.google.com with SMTP id jf20so2020114bkc.21 for <dispatch@ietf.org>; Sun, 03 Mar 2013 08:08:33 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:organization:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding:x-gm-message-state; bh=Q6apWngRuAcjFPUgqAYg7p3JiXMRQRBuPxYZ+E9vXkw=; b=JRJmKd0yqgMXTnWgT541VWV6WMusGdm4/Xb7d3M6xKYoYmme1ua2+eisnOlGef1O09 OHiCO1d6+4HiiupG2sYFDdiFhma+xtvLSebBR4/lbdxxthMB8Sa9xiyTuQJN6zApQWet 1QWPjSfhkbXNdNtvxO+4zosrqC5zh1uEdIgcPGZXzArar+wLOy2F1TJTgQzxJ8/6msqR uzBr7mmApjg+iKSHyuhm+mls+wL/4bzZ8b51Z1llv0q3QIzFBuIXoYDrJs1Pv/8/GhXq 8jtBaHh8LI+JK+bDtTn/PfQSrAZ2IS5LtqS6lg8aEMhhhzzEjBJiUGxEcR6VjOqcHlxn wXAA==
X-Received: by 10.204.11.212 with SMTP id u20mr6087396bku.55.1362326912942; Sun, 03 Mar 2013 08:08:32 -0800 (PST)
Received: from camionet.local (77-85-164-78.btc-net.bg. [77.85.164.78]) by mx.google.com with ESMTPS id ge12sm4815095bkc.19.2013.03.03.08.08.30 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 03 Mar 2013 08:08:31 -0800 (PST)
Message-ID: <5133757C.90908@jitsi.org>
Date: Sun, 03 Mar 2013 18:08:28 +0200
From: Emil Ivov <emcho@jitsi.org>
Organization: Jitsi
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:16.0) Gecko/20121026 Thunderbird/16.0.2
MIME-Version: 1.0
To: "Cullen Jennings (fluffy)" <fluffy@cisco.com>
References: <51102D21.10503@stpeter.im> <C5E08FE080ACFD4DAE31E4BDBF944EB11340A073@xmb-aln-x02.cisco.com> <CAPvvaaJn4j0+bqK-de8ecou8fRRfDiXyF4d7piDDgyp8BWZsDg@mail.gmail.com> <C5E08FE080ACFD4DAE31E4BDBF944EB11340B040@xmb-aln-x02.cisco.com>
In-Reply-To: <C5E08FE080ACFD4DAE31E4BDBF944EB11340B040@xmb-aln-x02.cisco.com>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Gm-Message-State: ALoCoQmTgGH38SKLRieY/c1w0NrG3MXZTp0nNZaDvl3ZA6UWqwUonZhcuOZnnsPV0iCm4WxBxTR4
Cc: "dispatch@ietf.org" <dispatch@ietf.org>
Subject: Re: [dispatch] URI schemes in P-Asserted-Identity
X-BeenThere: dispatch@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: DISPATCH Working Group Mail List <dispatch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dispatch>, <mailto:dispatch-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dispatch>
List-Post: <mailto:dispatch@ietf.org>
List-Help: <mailto:dispatch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dispatch>, <mailto:dispatch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 03 Mar 2013 16:08:36 -0000

On 03.03.13, 15:12, Cullen Jennings (fluffy) wrote:
> 
> If you don't want to do the vcard 

On the contrary, vCard seems quite reasonable to me. I am also
comfortable with using the xmpp: address in such a vCard as a general
IMPP address. Do you see a problem with it?

> but just want the xmpp address directly, I'd probably suggest something like 
> 
> Call-Info: <xmpp:aice@example.com> ;purpose=impp
>
> To just indicate that the URL provided the IM and Presence service for that user
> 
> RFC 3261 section 20.9 says that the IANA section of 3261 will define how to add a new purpose but as far as I can tell it does not. However, the IANA SIP registry for the URI purpose at
> 
> http://www.iana.org/assignments/sip-parameters/sip-parameters.xml#sip-parameters-13
> 
> is just spec required so I think think you might be able to trivial add a "impp" purpose. 

Even if it is trivial, can we actually do that from an informational
document?

> As a side note, I'm very much in favor of the SIP messages being able to provide the XMPP address related to the user so glad to see this work getting done.

Great! Thanks for your support.

> Cullen
> 
> PS -  Seriously,  PAI is not the header your are looking for. 

OK sure. We weren't particularly stuck on it anyway. It did seem to be
somewhat overloaded and if we can just do a "card" XMPP URI in a
Call-Info then this really seems like the easiest way forward.

Cheers,
Emil


> 
> 
> 
> On Mar 3, 2013, at 6:31 AM, Emil Ivov <emcho@jitsi.org>
> wrote:
> 
>> Hey Cullen,
>>
>> On Sun, Mar 3, 2013 at 1:33 AM, Cullen Jennings (fluffy)
>> <fluffy@cisco.com> wrote:
>>>
>>>
>>> I'd be fascinated to hear the need for this
>>
>> As Peter already mentioned: we need to be able to match an incoming
>> INVITE to a JID so we are looking for the most convenient way to do
>> this without defining a new header. Partially because we'd like to
>> keep all this as an informational effort and in part because, as you
>> said it your self in Vancouver: there has to be an existing header
>> that we could use for this.
>>
>>> - PAI is such a disaster zone that I'd want to make sure the envisioned
>>> usage did not run into the many land mines around PAI. It might be that
>>> some other header might meet the needs better than PAI.
>>
>> Well right now we basically say that if you are operating in a trusted
>> domain, then you use PAI, if not you can still use
>> P-Preferred-Identity as an indication but then you still have to
>> validate that the JID from PPI has a vCard that matches the caller. In
>> other words, you still have to get the vCard but at least you can do
>> so for a single contact and not your entire roster.
>>
>>> Cullen - co-authors of the ill fated RFC 3325
>>>
>>> PS - you might want consider the "Call-Info" header -
>>
>> OK, this does look like it could also do the job and we even have the
>> "card" info-param. Thanks for the tip!
>>
>>> it would be very cool to the have HTTP URL in that pointed at the
>>> JSON vCard for the user.
>>
>> Does it have to be HTTP? Would it make sense to use it with an xmpp:
>> URI? The grammar seems to allow for a generic URI and I don't think
>> there would be much ambiguity in a header that looks like this:
>>
>> Call-Info: <xmpp:aice@example.com> ;purpose=card
>>
>> It seems like this could only mean that Alice's vCard can be retrieved
>> through XMPP and it would probably be safe to infer that the XMPP URI
>> mentioned there is her own JID (and "safe to infer" is really what
>> this draft is all about). WDYT?
>>
>> I am also wondering if we should repeat the URI with purpose=icon in
>> order to get the XMPP avatar or if having "card" one would suffice.
>>
>> Finally, we'd still need to keep the requirement for a cross check:
>> whatever Call-Info says, one needs to download that vCard and make
>> sure that a number in there matches the source of the current call.
>> Otherwise this can be an attack.
>>
>> Cheers,
>> Emil
>>
>>
>>>
>>> On Feb 4, 2013, at 3:50 PM, Peter Saint-Andre <stpeter@stpeter.im> wrote:
>>>
>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>> Hash: SHA1
>>>>
>>>> Dear DISPATCHers,
>>>>
>>>> At the XMPP Summit last week, for various reasons that aren't
>>>> particularly relevant here, we talked a bit about how to include an
>>>> XMPP address in the header of a SIP message. Folks at the meeting
>>>> concluded that the P-Asserted-Identity header would work quite well
>>>> (certainly better than a second Contact header). Unfortunately, RFC
>>>> 3225 defines the P-Asserted-Identity as follows:
>>>>
>>>> A P-Asserted-Identity header field value MUST consist of exactly one
>>>> name-addr or addr-spec.  There may be one or two P-Asserted-Identity
>>>> values.  If there is one value, it MUST be a sip, sips, or tel URI.
>>>> If there are two values, one value MUST be a sip or sips URI and the
>>>> other MUST be a tel URI.
>>>>
>>>> It's not clear to me why the definition restricts the scheme to sip,
>>>> sips, or tel. Could someone provide some insight about that? Would
>>>> things break if we allowed more URI schemes there, in particular the
>>>> xmpp scheme?
>>>>
>>>> Thanks!
>>>>
>>>> Peter
>>>>
>>>> - --
>>>> Peter Saint-Andre
>>>> https://stpeter.im/
>>>>
>>>>
>>>> -----BEGIN PGP SIGNATURE-----
>>>> Version: GnuPG/MacGPG2 v2.0.18 (Darwin)
>>>> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>>>>
>>>> iEYEARECAAYFAlEQLSEACgkQNL8k5A2w/vyr8ACfcAqzu+1ceGZxu0qvQLECL4rg
>>>> 6DIAoMFh0zKEs2sjN1R3yUy6HyJGU2N/
>>>> =lu3v
>>>> -----END PGP SIGNATURE-----
>>>> _______________________________________________
>>>> dispatch mailing list
>>>> dispatch@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/dispatch
>>>
>>> _______________________________________________
>>> dispatch mailing list
>>> dispatch@ietf.org
>>> https://www.ietf.org/mailman/listinfo/dispatch
>>
>>
>>
>>
>> --
>> Emil Ivov, Ph.D.                       67000 Strasbourg,
>> Project Lead                           France
>> Jitsi
>> emcho@jitsi.org                        PHONE: +33.1.77.62.43.30
>> http://jitsi.org                       FAX:   +33.1.77.62.47.31
> 
> 

-- 
https://jitsi.org