salix/db/routines/pbx/views/queueConf.sql

15 lines
388 B
SQL

CREATE OR REPLACE DEFINER=`root`@`localhost`
SQL SECURITY DEFINER
VIEW `pbx`.`queueConf`
AS SELECT `q`.`name` AS `name`,
`c`.`strategy` AS `strategy`,
`c`.`timeout` AS `timeout`,
`c`.`retry` AS `retry`,
`c`.`weight` AS `weight`,
`c`.`maxLen` AS `maxlen`,
`c`.`ringInUse` AS `ringinuse`
FROM (
`pbx`.`queue` `q`
JOIN `pbx`.`queueMultiConfig` `c` ON(`q`.`config` = `c`.`id`)
)