From 9649e7e978bef51ef0cfafca11f935e95c962b94 Mon Sep 17 00:00:00 2001 From: lazedo Date: Tue, 19 Mar 2019 01:56:52 +0000 Subject: [PATCH] add ruid to w_location_contact view --- kamailio/db_scripts/db_kazoo-specific | 8 ++++---- kamailio/db_scripts/vw_w_location_contact.sql | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/kamailio/db_scripts/db_kazoo-specific b/kamailio/db_scripts/db_kazoo-specific index 800bb26..2f87516 100644 --- a/kamailio/db_scripts/db_kazoo-specific +++ b/kamailio/db_scripts/db_kazoo-specific @@ -130,10 +130,10 @@ SELECT id, slot, selected, failed, case when instr(contact,";") > 0 from keepalive; CREATE VIEW w_location_contact as -SELECT id, case when instr(contact,";") > 0 - then substr(contact, 1, instr(contact,";")-1) - else contact - end as contact +SELECT id, ruid, case when instr(contact,";") > 0 + then substr(contact, 1, instr(contact,";")-1) + else contact + end as contact from location; CREATE VIEW w_watchers_contact as diff --git a/kamailio/db_scripts/vw_w_location_contact.sql b/kamailio/db_scripts/vw_w_location_contact.sql index 6227b0c..6914519 100644 --- a/kamailio/db_scripts/vw_w_location_contact.sql +++ b/kamailio/db_scripts/vw_w_location_contact.sql @@ -1,6 +1,6 @@ CREATE VIEW w_location_contact as - select id, case when instr(contact,";") > 0 - then substr(contact, 1, instr(contact,";")-1) - else contact - end as contact + select id, ruid, case when instr(contact,";") > 0 + then substr(contact, 1, instr(contact,";")-1) + else contact + end as contact from location