aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/asterisk/queues.conf.asterisk_server
blob: 8849690be9353a76d7f7a95a0a6adeb9ab38f01f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[general]
persistentmembers       = yes
autofill                = yes
monitor-type            = MixMonitor
shared_lastcall         = yes
log_membername_as_agent = yes

$(for queue in ${asterisk_queues:-}; do
  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:-}"
  cat <<EOF
[${queue}]
strategy                    = ${queue_strategy}
timeout                     = ${queue_timeout}
retry                       = ${queue_retry}
timeoutpriority             = app
announce-frequency          = 0
announce-holdtime           = no
announce-position           = no
periodic-announce-frequency = 0
joinempty                   = yes
leavewhenempty              = no
ringinuse                   = ${queue_ringinuse}
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)