[SR-Users] : about presence

Bucur Marius bucur_marius_ovidiu at yahoo.com
Tue May 3 11:24:26 CEST 2011


Hello,

If you disable "#!define WITH_PRECENCE" you will not use presence at all - so it 
is most probably that you don't want that.
When you use db_fallback mode, the subscribers are only written to database once 
in a while (in your case every 20 seconds).
Also, if the subscribers are not authorized, they will only be in the "watchers" 
table - not active_watchers.
Can you check if there is something in the "watchers" table?
Also, can you check your system and see if it works without the xcap server?

modparam("presence_xml", "force_active", 1)
#modparam("presence_xml", "integrated_xcap_server", 1)

Cheers,
Marius



________________________________
From: hb <hhb.1988 at 163.com>
To: sr-users at lists.sip-router.org
Sent: Tue, May 3, 2011 11:44:16 AM
Subject: [SR-Users] : about presence

 
Dear everyone:
         I use kamalio 3.1.
         I want to add the xcap_sever and presence modules into my kamailio. I 
followed the lists 
"http://cache.baidu.com/c?m=9d78d513d99a12f00bb6ca255001d7175b14d7226b8b814268d4e21bc22200051071e2cb30256413d2b5393447fe130baab12235775d2feddd8eca5ddcc88f3576d83034074fc71a509544b8cb31749c7f8d03baf04abce4ab6f84afa1919f03129d0f542d97f1f8030117dd6f864b62b5f18e48631e4be5af6e32&p=c0759a459d904ea904b88c3953&user=baidu&fm=sc&query=kamailio+presence+active_watchers&qid=bd42092e08822178&p1=2"
 step by step. The only difference is that i use the database postgresql. 

       When i start the server, it worked well, but the softphone was not able 
to show the presence of the contacts. 

       I tried many times and found that when i disable the sentence  "#!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. 

      I think there must have something wrong with the configure of presence. 
Any response will be appreciated.



ps: the configuration of the presence in kamailio.cfg as follows(same as the 
Tutorial):
#!ifdef WITH_PRESENCE loadmodule "presence.so" loadmodule "presence_xml.so" 
#!endif   #!ifdef WITH_PRESENCE # ----- presence params ----- 
modparam("presence", "db_url", DBURL) modparam("presence", "fallback2db", 1) 
modparam("presence", "db_update_period", 20)   # ----- presence_xml params ----- 
modparam("presence_xml", "db_url", DBURL) modparam("presence_xml", 
"force_active", 0) modparam("presence_xml", "integrated_xcap_server", 1) #!endif 
     
                                                            haibo huang




________________________________
 体验网易邮箱2G超大附件,轻松发优质大电影、大照片,提速3倍! 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110503/cb3d1288/attachment-0001.htm>


More information about the sr-users mailing list