aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/asterisk
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-10-31 21:36:39 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-10-31 21:36:39 -0400
commit2c9845db4bc00221bc3c2343a020208f7f532166 (patch)
tree843bc24a1bbf2cad33c4bdc8a17c3d0d838fceb4 /files/usr/local/etc/asterisk
parent7eb111136453d0e8d8451d7dd85ba9892318f294 (diff)
downloadinfrastructure-2c9845db4bc00221bc3c2343a020208f7f532166.tar.gz
many fixes
Diffstat (limited to 'files/usr/local/etc/asterisk')
-rw-r--r--files/usr/local/etc/asterisk/queues.conf.asterisk_server20
1 files changed, 12 insertions, 8 deletions
diff --git a/files/usr/local/etc/asterisk/queues.conf.asterisk_server b/files/usr/local/etc/asterisk/queues.conf.asterisk_server
index 87b8ed4..8849690 100644
--- a/files/usr/local/etc/asterisk/queues.conf.asterisk_server
+++ b/files/usr/local/etc/asterisk/queues.conf.asterisk_server
@@ -6,12 +6,12 @@ shared_lastcall = yes
log_membername_as_agent = yes
$(for queue in ${asterisk_queues:-}; do
- eval "queue_strategy=\${asterisk_queue_${queue}_strategy}"
+ eval "queue_strategy=\${asterisk_queue_${queue}_strategy:-ringall}"
eval "queue_timeout=\${asterisk_queue_${queue}_timeout:-15}"
eval "queue_retry=\${asterisk_queue_${queue}_retry:-5}"
eval "queue_ringinuse=\${asterisk_queue_${queue}_ringinuse:-yes}"
- eval "queue_members=\${asterisk_queue_${queue}_members}"
- echo "\
+ eval "queue_members=\${asterisk_queue_${queue}_members:-}"
+ cat <<EOF
[${queue}]
strategy = ${queue_strategy}
timeout = ${queue_timeout}
@@ -24,8 +24,12 @@ periodic-announce-frequency = 0
joinempty = yes
leavewhenempty = no
ringinuse = ${queue_ringinuse}
-timeoutrestart = yes"
-for member in $queue_members; do
- eval "member_name=\${asterisk_ext_${member}_cid_name}"
- echo "member => PJSIP/${member},0,${member_name},PJSIP/${member}"
-done; done)
+timeoutrestart = yes
+EOF
+ for member in $queue_members; do
+ eval "member_name=\${asterisk_ext_${member}_cid_name}"
+ cat <<EOF
+member => PJSIP/${member},0,${member_name},PJSIP/${member}
+EOF
+ done
+done)