<!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/3.32.2">
</HEAD>
<BODY>
Hi Laura,<BR>
<BR>
I have recently been testing presence with Kamailio as well.<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
    -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The change status of the presentity is immediately visible &nbsp;by watcher with the only exception, when the user goes offline, the presentity keeps online in the watcher buddy list, any idea? Can you help me?<BR>
    <BR>
</BLOCKQUOTE>
I have had the same issue with clients I was testing with.&nbsp; In my case it turned out to be problems with the client.<BR>
<BR>
You should take a LAN trace from the client side and check that the client logging out is properly updating presence status on log-out.&nbsp; If that is OK, then take a trace on the client still logged in, it could be that the client is receiving the status update but not displaying it.<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    The xcap table is empty. Do I need to configure also the xcap table? Or it&#8217;s automically done by kamailio presence server?<BR>
    <BR>
</BLOCKQUOTE>
The xcap table will be empty for new subscribers.&nbsp; When the client requests a document (of supported type) from Kamailio that is not on the server it will get a &quot;404 Not Found&quot; response.&nbsp; The client should then create a new document (with sensible defaults for the client) on the server using an HTTP PUT.<BR>
<BR>
If the client requests a document that is not of supported type Kamailio will return a &quot;500 Server Error&quot; response and the client should continue (if it can) without support for that document.<BR>
<BR>
During my testing I came across a client that didn't support HTTP authentication properly, so when Kamailio responded with a 401 the client gave up instead of authenticating.&nbsp; Disabling HTTP authentication (take out the &quot;#!define WITH_XHTTPAUTH&quot; line in kamailio.cfg).<BR>
<BR>
Regards,<BR>
<BR>
Peter<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<PRE>
-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</PRE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>