[SR-Users] Bad config - you can not call 'handle_publish' function (db_url not set)
Juha Heinanen
jh at tutpro.com
Mon May 10 15:36:43 CEST 2021
Marrold writes:
> Any suggestions appreciated.
>
> # ----- presence params -----
> modparam("presence", "db_url", DBURL)
> modparam("presence", "db_update_period", 20)
> modparam("presence", "clean_period", 60)
> modparam("presence", "local_log_facility", "LOG_LOCAL3")
> modparam("presence", "max_expires", 14430)
>
> # ----- presence_xml params -----
> modparam("presence_xml", "db_url", DBURL)
> modparam("presence_xml", "force_active", 1)
Mine starts with the following presence config:
loadmodule "presence"
loadmodule "presence_dialoginfo"
loadmodule "presence_reginfo"
loadmodule "presence_mwi"
loadmodule "presence_profile"
loadmodule "presence_xml"
# -- presence params
modparam("presence", "db_url", "MYSQL_PRES_SERV_URL")
modparam("presence", "server_address", "sip:PRESENCE_SERVER_IP:PRESENCE_SERVER_PORT;transport=tcp")
modparam("presence", "max_expires", 15552000) # 6 months
modparam("presence", "pres_subs_mode", 0)
# -- presence_xml params
modparam("presence_xml", "db_url", "MYSQL_PRES_SERV_URL")
modparam("presence_xml", "force_active", 1)
modparam("presence_xml", "integrated_xcap_server", 1)
-- Juha
More information about the sr-users
mailing list