[Devel] Presence user/domain

Klaus Darilion klaus.mailinglists at pernau.at
Tue May 15 14:38:12 CEST 2007


Hi Dan!

Take a look at the thread "[Devel] presence and to uri" started from 
Juha and my answer:

from RFC 3903:
4.1.  Identification of Published Event State

    Identification of published event state is provided by three pieces
    of information: Request-URI, event type, and (optionally) an entity-
    tag.

    The Request-URI of a PUBLISH request contains enough information to
    route the request to the appropriate entity per the request routing
    procedures outlined in RFC 3261 [4].  It also contains enough
    information to identify the resource whose event state is to be
    published, but not enough information to determine the type of the
    published event state.

IMO the last sentence says that the RURI has to be used.

regards
klaus




Dan Pascu wrote:
> I see the following code in the presence module for handling PUBLISH:
> 
> 	/* get pres_uri from Request-URI*/
> 	if( parse_uri(msg->first_line.u.request.uri.s, 
> 				msg->first_line.u.request.uri.len, &pres_uri)< 0)
> 	{
> 		LOG(L_ERR, "PRESENCE: handle_publish:error parsing Request URI\n");
> 		goto error;
> 	}
> 	pres_user= pres_uri.user;
> 	pres_domain= pres_uri.host;
> 
> 
> which indicates that the user/domain are taken from the request uri.
> 
> The RFC however mentions that a PUBLISH is similar to a REGISTER, which 
> would indicate that the user/domain should be taken from the To header. 
> Unfortunately I found no direct reference to this in the RFC, only this 
> indication that PUBLISH is similar with REGISTER, but still using ruri 
> doesn't seem right.
> 



More information about the Devel mailing list