Hi. I trying to implement full presence server
I set config like this (part of it)
#!define FLT_DLG 9#!define FLT_DLGINFO 10
modparam("dialog", "timeout_avp", "$avp(i:10)")
modparam("dialog", "dlg_flag", 4)
modparam("dialog", "initial_cbs_inscript", 1)
modparam("dialog", "profiles_with_value", "caller")
modparam("dialog", "track_cseq_updates", 1)
modparam("dialog", "enable_stats", 1)
modparam("dialog", "dlg_flag", FLT_DLG)
modparam("presence", "db_url", DBURL)
modparam("presence", "server_address", SIPURI)
modparam("presence", "send_fast_notify", 1)
modparam("presence", "db_update_period", 20)
modparam("presence", "clean_period", 40)
modparam("presence", "subs_db_mode", 1)
modparam("presence", "fetch_rows", 1000)
modparam("presence", "local_log_level", 3)
# ----- presence_xml params -----
modparam("presence_xml", "db_url", DBURL)
modparam("presence_xml", "force_active", 1)
#-------presence_dialoginfo params -----
modparam("presence_dialoginfo", "force_dummy_dialog", 1)
modparam("presence_dialoginfo", "force_single_dialog",1)
# ----- pua params -----
modparam("pua", "db_url", DBURL)
modparam("pua", "db_mode", 2)
modparam("pua", "update_period", 10)
modparam("pua", "dlginfo_increase_version", 0)
modparam("pua", "reginfo_increase_version", 0)
modparam("pua", "check_remote_contact", 1)
modparam("pua", "fetch_rows", 1000)
# ----- pua_dialoginfo params -----
modparam("pua_dialoginfo", "include_callid", 1)
modparam("pua_dialoginfo", "send_publish_flag", FLT_DLGINFO)
modparam("pua_dialoginfo", "caller_confirmed", 0)
modparam("pua_dialoginfo", "include_tags", 1)
modparam("pua_dialoginfo", "override_lifetime", 124)
modparam("presence", "db_url", DBURL)
modparam("presence", "server_address", SIPURI)
modparam("presence", "send_fast_notify", 1)
modparam("presence", "db_update_period", 20)
modparam("presence", "clean_period", 40)
modparam("presence", "subs_db_mode", 1)
modparam("presence", "fetch_rows", 1000)
modparam("presence", "local_log_level", 3)
# ----- presence_xml params -----
modparam("presence_xml", "db_url", DBURL)
modparam("presence_xml", "force_active", 1)
#-------presence_dialoginfo params -----
modparam("presence_dialoginfo", "force_dummy_dialog", 1)
modparam("presence_dialoginfo", "force_single_dialog",1)
# ----- pua params -----
modparam("pua", "db_url", DBURL)
modparam("pua", "db_mode", 2)
modparam("pua", "update_period", 10)
modparam("pua", "dlginfo_increase_version", 0)
modparam("pua", "reginfo_increase_version", 0)
modparam("pua", "check_remote_contact", 1)
modparam("pua", "fetch_rows", 1000)
# ----- pua_dialoginfo params -----
modparam("pua_dialoginfo", "include_callid", 1)
modparam("pua_dialoginfo", "send_publish_flag", FLT_DLGINFO)
modparam("pua_dialoginfo", "caller_confirmed", 0)
modparam("pua_dialoginfo", "include_tags", 1)
modparam("pua_dialoginfo", "override_lifetime", 124)
At the config file i made some changes
route[BLF]
{
# absorb retransmissions
if (! t_newtran())
{
sl_reply_error();
exit;
};
if(is_method("PUBLISH"))
{
if (handle_publish()) {
xlog("L_INFO","{$rm} handled");
};
t_release();
} else if( is_method("SUBSCRIBE")) {
if (handle_subscribe()) {
xlog("L_INFO","{$rm} handled");
};
t_release();
};
exit;
}
Also added for evey call dlg_manage() function
So for now i have issue that no NOTIFY event was sent at the any
update of any device
I see PUBLISH events and SUBSCRIBE events but it looks like
handle_publish()
and
handle_subscribe()
not sending any NOTIFY
But at the dump i see
xlog("L_INFO","{$rm} handled"); where $rm is correct SUBSCRIBE and
PUBLISH if it is.
Just dont know what i need to change.
I will be very grateful if someone heps me to resolve this issue.
Thanks