What SIP client app are you using to test presence ?<div>Please try to post the client configuration, too.</div><div><br></div><div>Also try to go through the entire config file from the guide and compare what is different from your config file. That might give you a clue of what is wrong<br>
<br><div class="gmail_quote">2011/5/3 Bucur Marius <span dir="ltr">&lt;<a href="mailto:bucur_marius_ovidiu@yahoo.com">bucur_marius_ovidiu@yahoo.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Hello,</font></div><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><br>
</font></div><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">If you disable&nbsp;&quot;#!define WITH_PRECENCE&quot; you will not use presence at all - so it is most probably that you don&#39;t want that.</font></div>
<div><font face="&#39;times new roman&#39;, &#39;new york&#39;, 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 face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Also, if the subscribers are not authorized, they will only be in
 the &quot;watchers&quot; table - not active_watchers.</font></div><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Can you check if there is something in the &quot;watchers&quot; table?</font></div>
<div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Also, can you check your system and see if it works without the xcap server?</font></div><div><span style="white-space:pre-wrap"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><br>
</font></span></div><div><span style="white-space:pre-wrap"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">modparam(&quot;presence_xml&quot;, &quot;force_active&quot;, 1)</font></span></div><div>
<font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><span style="white-space:pre-wrap"></span><span style="white-space:pre-wrap">#modparam(&quot;presence_xml&quot;, &quot;integrated_xcap_server&quot;, 1)</span></font></div>
<div><span style="white-space:pre-wrap"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><br></font></span></div><div><span style="white-space:pre-wrap"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Cheers,</font></span></div>
<div><span style="white-space:pre-wrap"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif">Marius</font></span></div><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;<a href="mailto:hhb.1988@163.com" target="_blank">hhb.1988@163.com</a>&gt;<br><b><span style="font-weight:bold">To:</span></b> <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><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><div><div></div><div class="h5"><br>


<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
&quot;<a 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" target="_blank">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>&quot;
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;
&quot;#!define WITH_PRECENCE&quot; in &quot;kamailio.cfg&quot;, it
can show the state of the contacts. However, when i check the
database, there was nothing in &quot;Active Watchers&quot; and
&quot;Presentity&quot; 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>#!ifdef WITH_PRESENCE
loadmodule &quot;<a href="http://presence.so" target="_blank">presence.so</a>&quot;
loadmodule &quot;<a href="http://presence_xml.so" target="_blank">presence_xml.so</a>&quot;
#!endif
&nbsp;
#!ifdef WITH_PRESENCE
# ----- presence params -----
modparam(&quot;presence&quot;, &quot;db_url&quot;, DBURL)
modparam(&quot;presence&quot;, &quot;fallback2db&quot;, 1)
modparam(&quot;presence&quot;, &quot;db_update_period&quot;, 20)
&nbsp;
# ----- presence_xml params -----
modparam(&quot;presence_xml&quot;, &quot;db_url&quot;, DBURL)
modparam(&quot;presence_xml&quot;, &quot;force_active&quot;, 0)
modparam(&quot;presence_xml&quot;, &quot;integrated_xcap_server&quot;, 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><hr>
<a rel="nofollow" href="http://mail.163.com/html/110414_attachment/att1.htm" target="_blank">体验网易邮箱2G超大附件,轻松发优质大电影、大照片,提速3倍!</a>
</span></span></div></div></div></div><div style="font-size:10pt;font-family:arial, helvetica, sans-serif"></div>


</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>