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`)
	)