#!trydef INCLUDE-DB-KAZOO ######## Generic Hash Table container in shared memory ######## modparam("htable", "htable", "dbkp=>size=16;autoexpire=7200") ######## Presence User Agent module ######## loadmodule "pua_dialoginfo.so" modparam("pua_dialoginfo", "library_mode", 1) ######## Presence server module ######## loadmodule "presence.so" loadmodule "presence_dialoginfo.so" modparam("presence", "subs_db_mode", 1) modparam("presence", "expires_offset", 60) modparam("presence", "publ_cache", 0) ####### Presence Logic ######## route[HANDLE_SUBSCRIBE] { if (is_method("SUBSCRIBE")) { #!ifdef NAT-TRAVERSAL-ROLE route(NAT_TEST_AND_CORRECT); #!endif if (!t_newtran()) { sl_reply_error(); exit; } handle_subscribe(); t_release(); exit; } } route[HANDLE_PUBLISH] { if (is_method("PUBLISH")) { if (!t_newtran()) { sl_reply_error(); exit; } handle_publish(); t_release(); exit; } } # vim: tabstop=4 softtabstop=4 shiftwidth=4 expandtab