|
|
@ -17,12 +17,12 @@ modparam("presence_xml", "force_active", 1) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
######## Presence User Agent module ######## |
|
|
######## Presence User Agent module ######## |
|
|
loadmodule "pua.so" |
|
|
|
|
|
modparam("pua", "db_mode", 0) |
|
|
|
|
|
modparam("pua", "db_url", "text:///etc/kazoo/kamailio/dbtext") |
|
|
|
|
|
modparam("pua", "update_period", 6) |
|
|
|
|
|
modparam("pua", "min_expires", 300) |
|
|
|
|
|
modparam("pua", "outbound_proxy", "sip:MY_IP_ADDRESS") |
|
|
|
|
|
|
|
|
#loadmodule "pua.so" |
|
|
|
|
|
#modparam("pua", "db_mode", 0) |
|
|
|
|
|
#modparam("pua", "db_url", "text:///etc/kazoo/kamailio/dbtext") |
|
|
|
|
|
#modparam("pua", "update_period", 6) |
|
|
|
|
|
#modparam("pua", "min_expires", 300) |
|
|
|
|
|
#modparam("pua", "outbound_proxy", "sip:MY_IP_ADDRESS") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
####### Presence Logic ######## |
|
|
####### Presence Logic ######## |
|
|
@ -75,6 +75,8 @@ route[HANDLE_PUBLISH] |
|
|
event_route[kazoo:consumer-event-presence-update] |
|
|
event_route[kazoo:consumer-event-presence-update] |
|
|
{ |
|
|
{ |
|
|
kazoo_pua_publish($kzE); |
|
|
kazoo_pua_publish($kzE); |
|
|
|
|
|
pres_refresh_watchers("$(kzE{kz.json,From})", "$(kzE{kz.json,Event-Package})", 1); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab |
|
|
# vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab |