<!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.4.3">
</HEAD>
<BODY>
Hi,<BR>
<BR>
The xcap-caps document is hard-coded in kamailio.cfg and provides a list of the document types the XCAP server supports.&nbsp; This part of the configuration from the tutorial builds and returns the xcap-caps document:
<BLOCKQUOTE>
<PRE>
                if($xcapuri(u=&gt;auid)==&quot;xcap-caps&quot;)
                {
                        $var(xbody) =
&quot;&lt;?xml version='1.0' encoding='UTF-8'?&gt;
&lt;xcap-caps xmlns='urn:ietf:params:xml:ns:xcap-caps'&gt;
  &lt;auids&gt;
    &lt;auid&gt;rls-services&lt;/auid&gt;
    &lt;auid&gt;pidf-manipulation&lt;/auid&gt;
    &lt;auid&gt;xcap-caps&lt;/auid&gt;
    &lt;auid&gt;resource-lists&lt;/auid&gt;
    &lt;auid&gt;pres-rules&lt;/auid&gt;
    &lt;auid&gt;org.openmobilealliance.pres-rules&lt;/auid&gt;
  &lt;/auids&gt;
  &lt;extensions&gt;
  &lt;/extensions&gt;
  &lt;namespaces&gt;
    &lt;namespace&gt;urn:ietf:params:xml:ns:rls-services&lt;/namespace&gt;
    &lt;namespace&gt;urn:ietf:params:xml:ns:pidf&lt;/namespace&gt;
    &lt;namespace&gt;urn:ietf:params:xml:ns:xcap-caps&lt;/namespace&gt;
    &lt;namespace&gt;urn:ietf:params:xml:ns:resource-lists&lt;/namespace&gt;
    &lt;namespace&gt;urn:ietf:params:xml:ns:pres-rules&lt;/namespace&gt;
  &lt;/namespaces&gt;
&lt;/xcap-caps&gt;&quot;;
                        xhttp_reply(&quot;200&quot;, &quot;ok&quot;, &quot;application/xcap-caps+xml&quot;,
                                        &quot;$var(xbody)&quot;);
                        exit;
                }
</PRE>
</BLOCKQUOTE>
This tutorial has always worked for me in the past (although it has been well over a year since I last used it), so it looks like either a problem with Jitsi (which is unlikely) or some misconfiguration on the Kamailio side.<BR>
<BR>
A tcpdump of the traffic between Jitsi and Kamailio would help with working out which side has the problem.<BR>
<BR>
Regards,<BR>
<BR>
Peter<BR>
<BR>
On Thu, 2012-08-09 at 15:30 +0500, SamyGo wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    Hi,
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    I've followed the tutorial on <A HREF="http://kab.asipto.com">kab.asipto.com</A> for presence using built-in xcap server.&nbsp;<A HREF="http://kb.asipto.com/kamailio:presence:k31-made-simple">http://kb.asipto.com/kamailio:presence:k31-made-simple</A>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    I'm using Kamailio version 3.3.1 and did minor changes in modparams and rtpproxy function calls and the kamailio accepted the configurations file posted on the page and started.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    But the problem is that I don't get the presence status of the contacts still. Please&nbsp;suggest&nbsp;what to look for and how to troubleshoot this.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    I get this error on Jitsi - image attached.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    ERROR: <FONT COLOR="#ff0000">&quot;<A HREF="http://ip.of.server/xcap-root/xcap-caps/global/index">http://ip.of.server/xcap-root/xcap-caps/global/index</A> resource can not be read&quot;</FONT>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Regards,
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Sammy
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<PRE>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<A HREF="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</A>
<A HREF="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</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>