From 7ab84de6c8ae131938235df615def94c0f28154b Mon Sep 17 00:00:00 2001 From: lazedo Date: Mon, 8 Sep 2014 01:57:58 +0100 Subject: [PATCH 1/2] KAZOO-2902 missing tables and defition in version changed body column to blob in presentity --- kamailio/dbtext/active_watchers | 1 + kamailio/dbtext/location | 1 + kamailio/dbtext/presentity | 2 +- kamailio/dbtext/version | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 kamailio/dbtext/active_watchers create mode 100755 kamailio/dbtext/location diff --git a/kamailio/dbtext/active_watchers b/kamailio/dbtext/active_watchers new file mode 100755 index 0000000..5b5f5aa --- /dev/null +++ b/kamailio/dbtext/active_watchers @@ -0,0 +1 @@ +id(int,auto) presentity_uri(string) watcher_username(string) watcher_domain(string) to_user(string) to_domain(string) event(string) event_id(string,null) to_tag(string) from_tag(string) callid(string) local_cseq(int) remote_cseq(int) contact(string) record_route(string,null) expires(int) status(int) reason(string,null) version(int) socket_info(string) local_contact(string) from_user(string) from_domain(string) updated(int) updated_winfo(int) diff --git a/kamailio/dbtext/location b/kamailio/dbtext/location new file mode 100755 index 0000000..df30d7f --- /dev/null +++ b/kamailio/dbtext/location @@ -0,0 +1 @@ +id(int,auto) ruid(string) username(string) domain(string,null) contact(string) received(string,null) path(string,null) expires(int) q(double) callid(string) cseq(int) last_modified(int) flags(int) cflags(int) user_agent(string) socket(string,null) methods(int,null) instance(string,null) reg_id(int) diff --git a/kamailio/dbtext/presentity b/kamailio/dbtext/presentity index a2eec51..62d1646 100644 --- a/kamailio/dbtext/presentity +++ b/kamailio/dbtext/presentity @@ -1 +1 @@ -id(int,auto) username(string) domain(string) event(string) etag(string) expires(int) received_time(int) body(string) sender(string) +id(int,auto) username(string) domain(string) event(string) etag(string) expires(int) received_time(int) body(blob) sender(string) diff --git a/kamailio/dbtext/version b/kamailio/dbtext/version index a7109eb..38547e6 100644 --- a/kamailio/dbtext/version +++ b/kamailio/dbtext/version @@ -2,5 +2,7 @@ table_name(string) table_version(int) address:6 trusted:5 pua:7 +active_watchers:11 presentity:3 watchers:3 +location:6 From 88488968609eff353ffbc04b0d2b3596ff27ac68 Mon Sep 17 00:00:00 2001 From: lazedo Date: Mon, 8 Sep 2014 15:25:50 +0100 Subject: [PATCH 2/2] KAZOO-2902 subscriptions db_mode = 1 --- kamailio/presence-role.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kamailio/presence-role.cfg b/kamailio/presence-role.cfg index 6147569..7589833 100644 --- a/kamailio/presence-role.cfg +++ b/kamailio/presence-role.cfg @@ -4,7 +4,7 @@ loadmodule "presence_dialoginfo.so" loadmodule "presence_mwi.so" loadmodule "presence_xml.so" -modparam("presence", "subs_db_mode", 0) +modparam("presence", "subs_db_mode", 1) modparam("presence", "expires_offset", 60) modparam("presence", "send_fast_notify", 0) modparam("presence", "clean_period", 30)