[sr-dev] oma_status-icon auid

Peter Dunkley peter.dunkley at crocodile-rcs.com
Tue Oct 4 11:07:40 CEST 2011


There is already support in there for preseContent and I have had it
working with Jitsi.

The problem is that Jitsi seems to use a differently formatted path for
the icon than OMA clients do. In fact, several of the paths appeared to
be different.

I worked around this by using a reg-ex to identify and fix the incorrect
path in the xhttp event route.  Something like:

		# Jitsi...
		if ($hu=~"^/xcap-root/resource-lists/users/.*/index$")
			$var(doc_uri) = $(hu{re.subst,/(^\/xcap-root\/resource-lists\/users
\/.*\/).*$/\1generallist.xml/});
		else if ($hu=~"^/xcap-root/pres-rules/users/.*/presrules$")
			$var(doc_uri) = $(hu{re.subst,/(^\/xcap-root\/)pres-rules(\/users\/.*
\/)presrules/\1org.openmobilealliance.pres-rules\2pres-rules/});
		else if ($hu=~"^/xcap-root/oma_status-icon/users/.*/.*$")
			$var(doc_uri) = $(hu{re.subst,/(^\/xcap-root
\/)oma_status-icon(\/users\/.*\/).*
$/\1org.openmobilealliance.pres-content\2oma_status-icon\/preseImage/});

Regards,

Peter

On Tue, 2011-10-04 at 11:05 +0300, Juha Heinanen wrote:

> would it be a big job to add support in xcap server for auid
> oma_status-icon?
> 
> now when i start jitsi, i get to syslog error message
> 
> Oct  4 10:58:58 sip /usr/sbin/pres-serv[3493]: ERROR: xcap_server [xcap_misc.c:202]: unsupported auid in [/xcap-root/oma_status-icon/users/sip:jh at test.fi/sip_communicator]
> 
> i think it is a bug in jitsi that i doesn't check xcap-caps of the
> server, before sending oma_status_icon put, but that is another story.
> 
> -- juha
> 
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20111004/945e8a33/attachment.htm>


More information about the sr-dev mailing list