<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.0.1">
</HEAD>
<BODY>
There is already support in there for preseContent and I have had it working with Jitsi.<BR>
<BR>
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.<BR>
<BR>
I worked around this by using a reg-ex to identify and fix the incorrect path in the xhttp event route.&nbsp; Something like:<BR>
<BR>
                # Jitsi...<BR>
                if ($hu=~&quot;^/xcap-root/resource-lists/users/.*/index$&quot;)<BR>
                        $var(doc_uri) = $(hu{re.subst,/(^\/xcap-root\/resource-lists\/users\/.*\/).*$/\1generallist.xml/});<BR>
                else if ($hu=~&quot;^/xcap-root/pres-rules/users/.*/presrules$&quot;)<BR>
                        $var(doc_uri) = $(hu{re.subst,/(^\/xcap-root\/)pres-rules(\/users\/.*\/)presrules/\1org.openmobilealliance.pres-rules\2pres-rules/});<BR>
                else if ($hu=~&quot;^/xcap-root/oma_status-icon/users/.*/.*$&quot;)<BR>
                        $var(doc_uri) = $(hu{re.subst,/(^\/xcap-root\/)oma_status-icon(\/users\/.*\/).*$/\1org.openmobilealliance.pres-content\2oma_status-icon\/preseImage/});<BR>
<BR>
Regards,<BR>
<BR>
Peter<BR>
<BR>
On Tue, 2011-10-04 at 11:05 +0300, Juha Heinanen wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
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/<A HREF="sip:jh@test.fi/sip_communicator">sip:jh@test.fi/sip_communicator</A>]

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
<A HREF="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</A>
<A HREF="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</A>
</PRE>
</BLOCKQUOTE>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>