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=9d78d513d99a12f00bb6ca255001d7175b14d7226b8b81426..." 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 theTutorial):
#!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