<br><font size=2 face="sans-serif">Hi there, </font>
<br>
<br><font size=2 face="sans-serif">I found what the problem was. </font>
<br>
<br><font size=2 face="sans-serif">I did the following changes in my config
file: </font>
<br>
<br><font size=2 face="sans-serif">Remove the following line (this allows
the get_rules_doc in xcap_auth.c to resume executing and fetch the document)
: </font>
<br>
<br><font size=2 face="sans-serif">modparam("presence_xml", "force_active",
0) </font>
<br>
<br><font size=2 face="sans-serif">Add the following line (this tells the
presence server to look for the xcap docs in the database)</font>
<br>
<br><font size=2 face="sans-serif">modparam("presence_xml", "integrated_xcap_server",
1)</font>
<br>
<br>
<br><font size=2 face="sans-serif">I hope this helps</font>
<br>
<br><font size=2 face="sans-serif">Best Regards</font>
<br>
<br><font size=2 face="sans-serif">Gus<br>
</font>
<table>
<tr>
<td valign=top>
<td>
<tr>
<td rowspan=3>
<td valign=top>
<tr valign=top>
<td>
<tr valign=top>
<td></table>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Gustavo Santana Robledo/Fedetec</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">users@lists.opensips.org</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">17/03/2009 15:06</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">ERROR:presence:mi_refreshWatchers: no
rules doc found for the user</font></table>
<br>
<hr noshade>
<br>
<br><font size=2 face="sans-serif">Hi there, </font>
<br>
<br><font size=2 face="sans-serif">I'm encountering this error, when I
import a presence rule for a particular user. </font>
<br>
<br><font size=2 face="sans-serif">This is the scenario: </font>
<br>
<br>
<br><font size=2 face="sans-serif">Presence rules for user pepe: </font>
<br>
<br><font size=2 face="sans-serif"><?xml version="1.0" encoding="UTF-8"?></font>
<br><font size=2 face="sans-serif"><ruleset xmlns="urn:ietf:params:xml:ns:common-policy"
xmlns:pr="urn:ietf:params:xml:ns:pres-rules"></font>
<br><font size=2 face="sans-serif"> <rule
id="blacklist"></font>
<br><font size=2 face="sans-serif">
<conditions></font>
<br><font size=2 face="sans-serif">
<identity></font>
<br><font size=2 face="sans-serif">
<one id = "sip:gustavo@sip2.fedetec.es"/></font>
<br><font size=2 face="sans-serif">
</identity></font>
<br><font size=2 face="sans-serif">
</conditions></font>
<br><font size=2 face="sans-serif">
<actions></font>
<br><font size=2 face="sans-serif">
<pr:sub-handling>block</pr:sub-handling></font>
<br><font size=2 face="sans-serif">
</actions></font>
<br><font size=2 face="sans-serif">
<transformations/></font>
<br><font size=2 face="sans-serif"> </rule></font>
<br><font size=2 face="sans-serif"></ruleset></font>
<br>
<br>
<br><font size=2 face="sans-serif">I can see that the xcap entry gets written
to the DB, however, the rule doesn´t take effect. Checking the logs, I
can see that opensips is complaining that I can´t find the rules doc (see
below)</font>
<br>
<br><font size=2 face="sans-serif">Any clues?</font>
<br>
<br><font size=2 face="sans-serif">Ta</font>
<br>
<br>
<br><font size=2 face="sans-serif">Mar 17 14:58:33 linux1 /usr/sbin/opensips[30181]:
DBG:presence:mi_refreshWatchers: start</font>
<br><font size=2 face="sans-serif">Mar 17 14:58:33 linux1 /usr/sbin/opensips[30181]:
DBG:presence:mi_refreshWatchers: event 'presence'</font>
<br><font size=2 face="sans-serif">Mar 17 14:58:33 linux1 /usr/sbin/opensips[30181]:
DBG:presence:search_event: start event= [presence]</font>
<br><font size=2 face="sans-serif">Mar 17 14:58:33 linux1 /usr/sbin/opensips[30181]:
ERROR:presence:mi_refreshWatchers: no rules doc found for the user</font>
<br><font size=2 face="sans-serif">Mar 17 14:58:33 linux1 /usr/sbin/opensips[30181]:
ERROR:mi_xmlrpc:default_method: command (refreshWatchers) processing failed.</font>
<br>
<br><font size=2 face="sans-serif"><br>
</font>
<table>
<tr>
<td valign=top>
<td><img src=cid:_2_05C7FB3005C7F73000347C2EC125757D>
<tr>
<td rowspan=3><img src=cid:_1_073F5994073F568400347C2EC125757D>
<td valign=top><font size=2 color=#2f2f2f face="Arial"><b>Gustavo Santana
Robledo<br>
Departamento de I+D </b></font>
<tr valign=top>
<td><font size=1 color=#3f621f face="TheSansCorrespondence">Homeland Security<br>
FEDETEC - Efectivos de Técnicas S.A.<br>
Autovía de Andalucía Km 12,700<br>
Polígono Industrial Los Ángeles<br>
28906 - Getafe - Madrid<br>
España</font>
<tr valign=top>
<td><font size=1 color=#3f621f face="TheSansCorrespondence">Tel + 34 91
453 24 00 - ext: 4137<br>
Fax + 34 91 724 30 14<br>
e-mail: </font><a href=mailto:gsantana@fedetec.es><font size=1 color=blue face="TheSansCorrespondence"><u>gsantana@fedetec.es</u></font></a></table>
<br>
<br>
<br>