Browse Source

add ruid to w_location_contact view

update-rsyslog-config
lazedo 7 years ago
parent
commit
08a807ce94
2 changed files with 8 additions and 8 deletions
  1. +4
    -4
      kamailio/db_scripts/db_kazoo-specific
  2. +4
    -4
      kamailio/db_scripts/vw_w_location_contact.sql

+ 4
- 4
kamailio/db_scripts/db_kazoo-specific View File

@ -130,10 +130,10 @@ SELECT id, slot, selected, failed, case when instr(contact,";") > 0
from keepalive; from keepalive;
CREATE VIEW w_location_contact as 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; from location;
CREATE VIEW w_watchers_contact as CREATE VIEW w_watchers_contact as


+ 4
- 4
kamailio/db_scripts/vw_w_location_contact.sql View File

@ -1,6 +1,6 @@
CREATE VIEW w_location_contact as 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 from location

Loading…
Cancel
Save