<!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>
Hello,<BR>
<BR>
You don't need to worry about the contents of the presentity, watcher, and active watcher tables.&nbsp; Entries in these tables will be deleted if the user un-subscribes or logs out properly, and failing that automatically cleaned up when the records themselves expire.<BR>
<BR>
When you remove a user you probably should remove any documents belonging to them in xcap.&nbsp; At the moment this is a manual process and not tied into the kamctl command.<BR>
<BR>
Regards,<BR>
<BR>
Peter<BR>
<BR>
On Tue, 2011-09-27 at 13:49 -0500, Krishna Kurapati wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    Hi,
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    When a user is removed using &quot;kamctl rm&quot;, is there way way to clean up presence information
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    in the database (xcap, presentity, watcher and active watcher tables) and in the cache? Is there a&nbsp;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    event that gets fired when the user &nbsp;is removed from subscriber table which I could handle in config&nbsp;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    file and and cleanup?
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    <BR>
    <BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Thanks
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
    Krish Kura
</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>