What SIP client app are you using to test presence ?
Please try to post the client configuration, too.
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
2011/5/3 Bucur Marius <bucur_marius_ovidiu(a)yahoo.com>
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(a)163.com>
*To:* sr-users(a)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=9d78d513d99a12f00bb6ca255001d7175b14d7226b8b8142…
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倍!<http://mail.163.com/html/110414_attachme…
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users