<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Hello,</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">If you disable&nbsp;"#!define WITH_PRECENCE" you will not use presence at all - so it is most probably that you don't want that.</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">When you use db_fallback mode, the subscribers are only written to database once in a while (in your case every 20 seconds).</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Also, if the subscribers are not authorized, they will only be in
 the "watchers" table - not active_watchers.</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Can you check if there is something in the "watchers" table?</font></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Also, can you check your system and see if it works without the xcap server?</font></div><div><span class="Apple-style-span" style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></span></div><div><span class="Apple-style-span" style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">modparam("presence_xml", "force_active", 1)</font></span></div><div><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><span class="Apple-style-span" style="white-space: pre; "></span><span class="Apple-style-span"
 style="white-space: pre; ">#modparam("presence_xml", "integrated_xcap_server", 1)</span></font></div><div><span class="Apple-style-span" style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif"><br></font></span></div><div><span class="Apple-style-span" style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Cheers,</font></span></div><div><span class="Apple-style-span" style="white-space: pre; "><font class="Apple-style-span" face="'times new roman', 'new york', times, serif">Marius</font></span></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> hb
 &lt;hhb.1988@163.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> sr-users@lists.sip-router.org<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, May 3, 2011 11:44:16 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [SR-Users] : about presence<br></font><br>
<style type="text/css">pre.western {font-family:"DejaVu Sans";}pre.cjk {font-family:"DejaVu Sans";}pre.ctl {font-family:monospace;}p {margin-bottom:0.21cm;}</style>

<p style="margin-bottom:0cm;"><font face="DejaVu Serif, serif">Dear
everyone:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I use
kamalio 3.1.<br><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I
want to add the xcap_sever and presence modules into my kamailio. I
followed the lists
"<a target="_blank" href="http://cache.baidu.com/c?m=9d78d513d99a12f00bb6ca255001d7175b14d7226b8b814268d4e21bc22200051071e2cb30256413d2b5393447fe130baab12235775d2feddd8eca5ddcc88f3576d83034074fc71a509544b8cb31749c7f8d03baf04abce4ab6f84afa1919f03129d0f542d97f1f8030117dd6f864b62b5f18e48631e4be5af6e32&amp;p=c0759a459d904ea904b88c3953&amp;user=baidu&amp;fm=sc&amp;query=kamailio+presence+active_watchers&amp;qid=bd42092e08822178&amp;p1=2">http://cache.baidu.com/c?m=9d78d513d99a12f00bb6ca255001d7175b14d7226b8b814268d4e21bc22200051071e2cb30256413d2b5393447fe130baab12235775d2feddd8eca5ddcc88f3576d83034074fc71a509544b8cb31749c7f8d03baf04abce4ab6f84afa1919f03129d0f542d97f1f8030117dd6f864b62b5f18e48631e4be5af6e32&amp;p=c0759a459d904ea904b88c3953&amp;user=baidu&amp;fm=sc&amp;query=kamailio+presence+active_watchers&amp;qid=bd42092e08822178&amp;p1=2</a>"
step by step. The only difference is that i use the database
postgresql. </span><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; When i start the
server, it worked well, but the softphone was not able to show the
presence of the contacts. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I
tried many times and found that when i disable the sentence&nbsp;
"#!define WITH_PRECENCE" in "kamailio.cfg", it
can show the state of the contacts. However, when i check the
database, there was nothing in "Active Watchers" and
"Presentity" tables. <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I
think there must have something wrong with the configure of presence.
Any response will be appreciated.<br><br><br><br>ps: the
configuration of the presence in kamailio.cfg as follows(same as the
<span lang="en">Tutorial</span>):</font></p>
<pre class="cjk">#!ifdef WITH_PRESENCE
loadmodule "<a target="_blank" href="http://presence.so">presence.so</a>"
loadmodule "<a target="_blank" href="http://presence_xml.so">presence_xml.so</a>"
#!endif
&nbsp;
#!ifdef WITH_PRESENCE
# ----- presence params -----
modparam("presence", "db_url", DBURL)
modparam("presence", "fallback2db", 1)
modparam("presence", "db_update_period", 20)
&nbsp;
# ----- presence_xml params -----
modparam("presence_xml", "db_url", DBURL)
modparam("presence_xml", "force_active", 0)
modparam("presence_xml", "integrated_xcap_server", 1)
#!endif &nbsp; &nbsp; &nbsp;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; haibo huang<br><br></pre>
        
<br><br><span title="neteasefooter"><span id="netease_mail_footer"><hr>
<a rel="nofollow" target="_blank" href="http://mail.163.com/html/110414_attachment/att1.htm">体验网易邮箱2G超大附件,轻松发优质大电影、大照片,提速3倍!</a>
</span></span></div></div><div style="position: fixed; font-size: 10pt; font-family: arial, helvetica, sans-serif; "></div>


</div></body></html>