From 2c9845db4bc00221bc3c2343a020208f7f532166 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Thu, 31 Oct 2024 21:36:39 -0400 Subject: many fixes --- .../local/etc/asterisk/queues.conf.asterisk_server | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'files/usr/local/etc/asterisk') 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 < 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 < PJSIP/${member},0,${member_name},PJSIP/${member} +EOF + done +done) -- cgit v1.2.3