Re: [Simple] SUBSCRIBE for xcap-diff event sent by the presence server to the XCAP server
Jari Urpalainen <jari.urpalainen@nokia.com> Thu, 07 January 2010 11:17 UTC
Return-Path: <Jari.Urpalainen@nokia.com>
X-Original-To: simple@core3.amsl.com
Delivered-To: simple@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 4DC5B3A67E7 for <simple@core3.amsl.com>; Thu, 7 Jan 2010 03:17:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.299
X-Spam-Level:
X-Spam-Status: No, score=-6.299 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sTkDL7vtoENf for <simple@core3.amsl.com>; Thu, 7 Jan 2010 03:17:26 -0800 (PST)
Received: from mgw-mx06.nokia.com (smtp.nokia.com [192.100.122.233]) by core3.amsl.com (Postfix) with ESMTP id DCC003A67B2 for <simple@ietf.org>; Thu, 7 Jan 2010 03:17:25 -0800 (PST)
Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-mx06.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o07BGFrI003801; Thu, 7 Jan 2010 13:17:20 +0200
Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Jan 2010 13:15:32 +0200
Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 7 Jan 2010 13:15:31 +0200
Received: from [172.21.37.231] (esdhcp037231.research.nokia.com [172.21.37.231]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o07BFS2B022798; Thu, 7 Jan 2010 13:15:29 +0200
From: Jari Urpalainen <jari.urpalainen@nokia.com>
To: ext Iñaki Baz Castillo <ibc@aliax.net>
In-Reply-To: <200912280036.15514.ibc@aliax.net>
References: <200912280036.15514.ibc@aliax.net>
Content-Type: text/plain; charset="UTF-8"
Date: Thu, 07 Jan 2010 13:15:27 +0200
Message-ID: <1262862927.2797.140.camel@localhost>
Mime-Version: 1.0
X-Mailer: Evolution 2.28.1
Content-Transfer-Encoding: 8bit
X-OriginalArrivalTime: 07 Jan 2010 11:15:32.0353 (UTC) FILETIME=[BA12BF10:01CA8F8A]
X-Nokia-AV: Clean
Cc: "simple@ietf.org" <simple@ietf.org>
Subject: Re: [Simple] SUBSCRIBE for xcap-diff event sent by the presence server to the XCAP server
X-BeenThere: simple@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: SIP for Instant Messaging and Presence Leveraging Extensions <simple.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/simple>, <mailto:simple-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/simple>
List-Post: <mailto:simple@ietf.org>
List-Help: <mailto:simple-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/simple>, <mailto:simple-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Jan 2010 11:17:27 -0000
On Mon, 2009-12-28 at 00:36 +0100, ext Iñaki Baz Castillo wrote: > Hi, the way a presence server receives notifications for changes in XCAP > documents (so it can notify the watchers) is by subscribing to the XCAP server > for the event "xcap-diff" as specified in: > http://tools.ietf.org/html/draft-ietf-sip-xcapevent > > I would like to understand how such SUBSCRIBE sent by the presence server > looks. The above draft just shows examples when a SIP user send such SUBSCRIBE > but no one example when the subscriber is the presence server. a presence server can be a "normal" xcap-diff client. Acls though would be quite different than with the typical use-case. > > For example, let's imagine a simplified case in which there are just two XCAP > applications ("pres-rules" and "resource-lists"). > > The presence server should subscribe to users documents. AFAIK the presence > server would send a SUBSCRIBE as follows: > > > SUBSCRIBE sip:xcap-server@domain.org SIP/2.0 > From: sip:presence-server@domain.org > Accept: application/xcap-diff+xml > Event: xcap-diff; diff-processing=no-patching > Content-Type: application/resource-lists+xml > > <?xml version="1.0" encoding="UTF-8"?> > <resource-lists xmlns="urn:ietf:params:xml:ns:resource-lists"> > <list> > <entry uri="pres-users/users/" /> > <entry uri="resource-lists/users/" /> > </list> > </resource-lists> > > > Then when any user creates or modifies a XCAP document for those auids, then > XCAP server would sent a NOTIFY to the presence-server telling the document > addition/modification. > > > Doubts: > > - Is the above correct? (is it defined somewhere?) theoretically yes, if you really have a distributed system, and you indeed must use a public interface (though acls are beyond the scope of xcap-diffevent). But in practice however, i'd assume you'd use some "internal" api for this, and you wouldn't need to have a duplicated xcap database (or equivalent). > > - Most probably the presence-server is just interested in "index" documents > for both XCAP applications. However it would receive notifications for every > document created by any user even if it's not called "index". Is it the > expected behavior? How to ask in the SUBSCRIBE that there is noly interest on > "index" called documents? there's no such thing like reg-expressions (or some search) in diff-event subscriptions, though i don't think it's a big problem in reality as you can easily skip those docs that you aren't interested in. > > - Could the notification from the XCAP server to the presence server work with > PUBLISH rather than SUBSCRIBE & NOTIFY? This is: when a XCAP document is > modified the XCAP server sends a PUBLISH to the presence server with xcap-diff > body. Does it make sense? Sure, but i cannot see any actual benefit > > - And last question. Are all my questions defined in IETF docs? or do they > require specifications on top of IETF docs as OMA specs? > at least rfc's will give you some hints how to make a system what you are probably aiming at, i don't know about other specs though. br, jari
- [Simple] SUBSCRIBE for xcap-diff event sent by th… Iñaki Baz Castillo
- Re: [Simple] SUBSCRIBE for xcap-diff event sent b… Iñaki Baz Castillo
- Re: [Simple] SUBSCRIBE for xcap-diff event sent b… Ben Campbell
- Re: [Simple] SUBSCRIBE for xcap-diff event sent b… Jari Urpalainen
- Re: [Simple] SUBSCRIBE for xcap-diff event sent b… Adrian Georgescu
- Re: [Simple] SUBSCRIBE for xcap-diff event sent b… Iñaki Baz Castillo
- Re: [Simple] SUBSCRIBE for xcap-diff event sent b… Adrian Georgescu
- Re: [Simple] SUBSCRIBE for xcap-diff event sent b… Iñaki Baz Castillo
- Re: [Simple] SUBSCRIBE for xcap-diff event sent b… Adrian Georgescu