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

15 lines
383 B
MySQL
Raw Normal View History

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`.`queueConfig` `c` ON(`q`.`config` = `c`.`id`)
)