3 ; Global settings for call queues
6 ; Store each dynamic member in each queue in the astdb so that
7 ; when asterisk is restarted, each member will be automatically
8 ; read into their recorded queues. Default is 'yes'.
10 persistentmembers = yes
13 ; The old behavior of the queue (autofill=no) is to have a serial type behavior
14 ; in that the queue will make all waiting callers wait in the queue
15 ; even if there is more than one available member ready to take
16 ; calls until the head caller is connected with the member they
17 ; were trying to get to. The next waiting caller in line then
18 ; becomes the head caller, and they are then connected with the
19 ; next available member and all available members and waiting callers
20 ; waits while this happens. The new behavior, enabled by setting
21 ; autofill=yes makes sure that when the waiting callers are connecting
22 ; with available members in a parallel fashion until there are
23 ; no more available members or no more waiting callers. This is
24 ; probably more along the lines of how a queue should work and
25 ; in most cases, you will want to enable this behavior. If you
26 ; do not specify or comment out this option, it will default to yes.
31 ; By setting monitor-type = MixMonitor, when specifying monitor-format
32 ; to enable recording of queue member conversations, app_queue will
33 ; now use the new MixMonitor application instead of Monitor so
34 ; the concept of "joining/mixing" the in/out files now goes away
35 ; when this is enabled. You can set the default type for all queues
36 ; here, and then also change monitor-type for individual queues within
37 ; queue by using the same configuration parameter within a queue
38 ; configuration block. If you do not specify or comment out this option,
39 ; it will default to the old 'Monitor' behavior to keep backward
42 monitor-type = MixMonitor
45 ; This option is implemented to mimic chan_agents behavior of populating
46 ; CDR dstchannel field of a call with an agent name, which you can set
47 ; at the login time with AddQueueMember membername parameter.
52 ; Note that a timeout to fail out of a queue may be passed as part of
53 ; an application call from extensions.conf:
54 ; Queue(queuename,[options],[optionalurl],[announceoverride],[timeout])
55 ; example: Queue(dave,t,,,45)
57 ; shared_lastcall will make the lastcall and calls received be the same in
58 ; members logged in more than one queue. This is useful to make the queue
59 ; respect the wrapuptime of another queue for a shared member.
60 ; The default value is yes.
64 ; Negative_penalty_invalid will treat members with a negative penalty as logged off
66 ;negative_penalty_invalid = no
68 ; log_membername_as_agent will cause app_queue to log the membername rather than
69 ; the interface for the ADDMEMBER and REMOVEMEMBER events when a state_interface
70 ; is set. The default value (no) maintains backward compatibility.
72 ;log_membername_as_agent = no
78 ; Musicclass sets which music applies for this particular call queue.
79 ; The only class which can override this one is if the MOH class is set
80 ; directly on the channel using Set(CHANNEL(musicclass)=whatever) in the
85 ; An announcement may be specified which is played for the member as
86 ; soon as they answer a call, typically to indicate to them which queue
87 ; this call should be answered as, so that agents or members who are
88 ; listening to more than one queue can differentiated how they should
91 ;announce = queue-markq
93 ; A strategy may be specified. Valid strategies include:
95 ; ringall - ring all available channels until one answers (default)
96 ; leastrecent - ring interface which was least recently called by this queue
97 ; fewestcalls - ring the one with fewest completed calls from this queue
98 ; random - ring random interface
99 ; rrmemory - round robin with memory, remember where we left off last ring pass
100 ; rrordered - same as rrmemory, except the queue member order from config file
102 ; linear - rings interfaces in the order specified in this configuration file.
103 ; If you use dynamic members, the members will be rung in the order in
104 ; which they were added
105 ; wrandom - rings random interface, but uses the member's penalty as a weight
106 ; when calculating their metric. So a member with penalty 0 will have
107 ; a metric somewhere between 0 and 1000, and a member with penalty 1 will
108 ; have a metric between 0 and 2000, and a member with penalty 2 will have
109 ; a metric between 0 and 3000. Please note, if using this strategy, the member
110 ; penalty is not the same as when using other queue strategies. It is ONLY used
111 ; as a weight for calculating metric.
115 ; Second settings for service level (default 0)
116 ; Used for service level statistics (calls answered within service level time
120 ; A context may be specified, in which if the user types a SINGLE
121 ; digit extension while they are in the queue, they will be taken out
122 ; of the queue and sent to that extension in this context.
126 ; A limit can be set to disregard penalty settings when the queue has
127 ; too few members. No penalty will be weighed in if there are only X
128 ; or fewer queue members. (default 0)
130 ;penaltymemberslimit = 5
132 ;----------------------QUEUE TIMING OPTIONS------------------------------------
133 ; A Queue has two different "timeout" values associated with it. One is the
134 ; timeout parameter configured in queues.conf. This timeout specifies the
135 ; amount of time to try ringing a member's phone before considering the
136 ; member to be unavailable. The other timeout value is the second argument
137 ; to the Queue() application. This timeout represents the absolute amount
138 ; of time to allow a caller to stay in the queue before the caller is
139 ; removed from the queue. In certain situations, these two timeout values
140 ; may clash. For instance, if the timeout in queues.conf is set to 5 seconds,
141 ; the retry value in queues.conf is set to 4, and the second argument to Queue()
142 ; is 10, then the following may occur:
144 ; A caller places a call to a queue.
145 ; The queue selects a member and attempts to ring that member.
146 ; The member's phone is rung for 5 seconds and he does not answer.
147 ; The retry time of 4 seconds occurs.
148 ; The queue selects a second member to call.
150 ; How long does that second member's phone ring? Does it ring for 5 seconds
151 ; since the timeout set in app_queue is 5 seconds? Does it ring for 1 second since
152 ; the caller has been in the queue for 9 seconds and is supposed to be removed after
153 ; being in the queue for 10 seconds? This is configurable with the timeoutpriority
154 ; option. By setting the timeoutpriority to "conf" then you are saying that you would
155 ; rather use the time specified in the configuration file even if it means having the
156 ; caller stay in the queue longer than the time specified in the application argument.
157 ; For the scenario described above, timeoutpriority=conf would result in the second
158 ; member's phone ringing for 5 seconds. By specifying "app" as the value for
159 ; timeoutpriority, you are saying that the timeout specified as the argument to the
160 ; Queue application is more important. In the scenario above, timeoutpriority=app
161 ; would result in the second member's phone ringing for 1 second.
163 ; There are a few exceptions to the priority rules. For instance, if timeoutpriority=appp
164 ; and the configuration file timeout is set to 0, but the application argument timeout is
165 ; non-zero, then the timeoutpriority is ignored and the application argument is used as
166 ; the timeout. Furthermore, if no application argument timeout is specified, then the
167 ; timeoutpriority option is ignored and the configuration file timeout is always used
168 ; when calling queue members.
170 ; In timeoutpriority=conf mode however timeout specified in config file will take higher
171 ; priority than timeout in application arguments, so if config file has timeout 0, each
172 ; queue member will be called indefineately and application timeout will be checked only
173 ; after this call attempt. This is useful for having queue members with custom timeouts
174 ; specified within Dial application of Local channel, and allows handling NO ANSWER which
175 ; would otherwise be interrupted by queue destroying child channel on timeout.
177 ; The default value for timeoutpriority is "app" since this was how previous versions of
182 ;timeoutpriority = app|conf
184 ;-----------------------END QUEUE TIMING OPTIONS---------------------------------
185 ; Weight of queue - when compared to other queues, higher weights get
186 ; first shot at available channels when the same channel is included in
187 ; more than one queue.
191 ; After a successful call, how long to wait before sending a potentially
192 ; free member another call (default is 0, or no delay)
196 ; Autofill will follow queue strategy but push multiple calls through
197 ; at same time until there are no more waiting callers or no more
198 ; available members. The per-queue setting of autofill allows you
199 ; to override the default setting on an individual queue level.
203 ; Autopause will pause a queue member if they fail to answer a call
204 ; no: Member will not be paused
205 ; yes: Member will be paused only in the queue where the timeout took place
206 ; all: Memeber will be paused in all queues he/she is a member
209 ; Autopausedelay delay autopause for autopausedelay seconds from the
210 ; last call if a member has not taken a call the delay has no effect.
213 ; Autopausebusy controls whether or not a queue member is set as paused
214 ; automatically upon the member device reporting busy. The autopausedelay
215 ; option applies. Defaults to 'no'.
218 ; Autopauseunavail controls whether or not a queue member is set as paused
219 ; automatically upon the member device reporting congestion. The autopausedely
220 ; option applies. Defaults to 'no'.
223 ; Maximum number of people waiting in the queue (0 for unlimited)
227 ; If set to yes, just prior to the caller being bridged with a queue member
228 ; the following variables will be set
229 ; MEMBERINTERFACE is the interface name (eg. Agent/1234)
230 ; MEMBERNAME is the member name (eg. Joe Soap)
231 ; MEMBERCALLS is the number of calls that interface has taken,
232 ; MEMBERLASTCALL is the last time the member took a call.
233 ; MEMBERPENALTY is the penalty of the member
234 ; MEMBERDYNAMIC indicates if a member is dynamic or not
235 ; MEMBERREALTIME indicates if a member is realtime or not
239 ; If set to yes, just prior to the caller being bridged with a queue member
240 ; the following variables will be set:
241 ; QEHOLDTIME callers hold time
242 ; QEORIGINALPOS original position of the caller in the queue
246 ; If set to yes, the following variables will be set
247 ; just prior to the caller being bridged with a queue member
248 ; and just prior to the caller leaving the queue
249 ; QUEUENAME name of the queue
250 ; QUEUEMAX maxmimum number of calls allowed
251 ; QUEUESTRATEGY the strategy of the queue;
252 ; QUEUECALLS number of calls currently in the queue
253 ; QUEUEHOLDTIME current average hold time
254 ; QUEUECOMPLETED number of completed calls for the queue
255 ; QUEUEABANDONED number of abandoned calls
256 ; QUEUESRVLEVEL queue service level
257 ; QUEUESRVLEVELPERF current service level performance
261 ; if set, run this macro when connected to the queue member
262 ; you can override this macro by setting the macro option on
263 ; the queue application
265 ; membermacro=somemacro
267 ; How often to announce queue position and/or estimated
268 ; holdtime to caller (0=off)
269 ; Note that this value is ignored if the caller's queue
270 ; position has changed (see min-announce-frequency)
272 ;announce-frequency = 90
274 ; The absolute minimum time between the start of each
275 ; queue position and/or estimated holdtime announcement
276 ; This is useful for avoiding constant announcements
277 ; when the caller's queue position is changing frequently
278 ; (see announce-frequency)
280 ;min-announce-frequency = 15
282 ; How often to make any periodic announcement (see periodic-announce)
284 ;periodic-announce-frequency=60
286 ; Should the periodic announcements be played in a random order? Default is no.
288 ;random-periodic-announce=no
290 ; If set to yes, the periodic announcment frequency will be timed from the end
291 ; of each announcment rather than from the start of each announcment. This
294 ;relative-periodic-announce=yes
296 ; Should we include estimated hold time in position announcements?
297 ; Either yes, no, or only once.
298 ; Hold time will be announced as the estimated time.
300 ;announce-holdtime = yes|no|once
302 ; Queue position announce?
303 ; Valid values are "yes," "no," "limit," or "more." If set to "no," then the caller's position will
304 ; never be announced. If "yes," then the caller's position in the queue will be announced
305 ; to the caller. If set to "more," then if the number of callers is more than the number
306 ; specified by the announce-position-limit option, then the caller will hear that there
307 ; are more than that many callers waiting (i.e. if a caller number 6 is in a queue with the
308 ; announce-position-limit set to 5, then that caller will hear that there are more than 5
309 ; callers waiting). If set to "limit," then only callers within the limit specified by announce-position-limit
310 ; will have their position announced.
312 ;announce-position = yes
314 ; If you have specified "limit" or "more" for the announce-position option, then the following
315 ; value is what is used to determine what announcement to play to waiting callers. If you have
316 ; set the announce-position option to anything else, then this will have no bearing on queue operation
318 ;announce-position-limit = 5
320 ; What's the rounding time for the seconds?
321 ; If this is non-zero, then we announce the seconds as well as the minutes
322 ; rounded to this value.
323 ; Valid values are 0, 5, 10, 15, 20, and 30.
325 ; announce-round-seconds = 10
327 ; Use these sound files in making position/holdtime announcements. The
328 ; defaults are as listed below -- change only if you need to.
330 ; Keep in mind that you may also prevent a sound from being played if you
331 ; explicitly set a sound to be an empty string. For example, if you want to
332 ; prevent the queue from playing queue-thankyou, you may set the sound using
333 ; the following line:
337 ; ("You are now first in line.")
338 ;queue-youarenext = queue-youarenext
340 ;queue-thereare = queue-thereare
342 ;queue-callswaiting = queue-callswaiting
343 ; ("The current est. holdtime is")
344 ;queue-holdtime = queue-holdtime
346 ;queue-minute = queue-minute
348 ;queue-minutes = queue-minutes
350 ;queue-seconds = queue-seconds
351 ; ("Thank you for your patience.")
352 ;queue-thankyou = queue-thankyou
354 ;queue-reporthold = queue-reporthold
355 ; ("All reps busy / wait for next")
356 ;periodic-announce = queue-periodic-announce
358 ; A set of periodic announcements can be defined by separating
359 ; periodic announcements to reproduce by commas. For example:
360 ;periodic-announce = queue-periodic-announce,your-call-is-important,please-wait
362 ; The announcements will be played in the order in which they are defined. After
363 ; playing the last announcement, the announcements begin again from the beginning.
365 ; Calls may be recorded using Asterisk's monitor/MixMonitor resource
366 ; This can be enabled from within the Queue application, starting recording
367 ; when the call is actually picked up; thus, only successful calls are
368 ; recorded, and you are not recording while people are listening to MOH.
369 ; To enable monitoring, simply specify "monitor-format"; it will be disabled
372 ; You can specify the monitor filename with by calling
373 ; Set(MONITOR_FILENAME=foo)
374 ; Otherwise it will use MONITOR_FILENAME=${UNIQUEID}
376 ; Pick any one valid extension for monitor format recording. If you leave
377 ; monitor-format commented out, it will not record calls.
379 ; monitor-format = gsm|wav|wav49
382 ; By setting monitor-type = MixMonitor, when specifying monitor-format
383 ; to enable recording of queue member conversations, app_queue will
384 ; now use the new MixMonitor application instead of Monitor so
385 ; the concept of "joining/mixing" the in/out files now goes away
386 ; when this is enabled. If you do not specify or comment out this option,
387 ; it will default to the old 'Monitor' behavior to keep backward
390 ; monitor-type = MixMonitor
392 ; ----------------------- TYPE MIXMONITOR OPTIONS -----------------------------
395 ; You can specify the options supplied to MixMonitor by calling (from the dialplan)
396 ; Set(MONITOR_OPTIONS=av(<x>)V(<x>)W(<x>))
397 ; The 'b' option for MixMonitor (only save audio to the file while bridged) is
400 ; You can specify a post recording command to be executed after the end of
401 ; recording by calling (from the dialplan)
402 ; Set(MONITOR_EXEC=mv /var/spool/asterisk/monitor/^{MONITOR_FILENAME} /tmp/^{MONITOR_FILENAME})
404 ; The command specified within the contents of MONITOR_EXEC will be executed when
405 ; the recording is over. Any strings matching ^{X} will be unescaped to ${X} and
406 ; all variables will be evaluated just prior to recording being started.
408 ; The contents of MONITOR_FILENAME will also be unescaped from ^{X} to ${X} and
409 ; all variables will be evaluated just prior to recording being started.
411 ; ---------------------- Queue Empty Options ----------------------------------
413 ; Asterisk has provided the "joinempty" and "leavewhenempty" options for a while
414 ; with tenuous definitions of what they actually mean. The "joinempty" option controls
415 ; whether a caller may join a queue depending on several factors of member availability.
416 ; Similarly, then leavewhenempty option controls whether a caller may remain in a queue
417 ; he has already joined. Both options take a comma-separated list of factors which
418 ; contribute towards whether a caller may join/remain in the queue. The list of
419 ; factors which contribute to these option is as follows:
421 ; paused: a member is not considered available if he is paused
422 ; penalty: a member is not considered available if his penalty is less than QUEUE_MAX_PENALTY
423 ; inuse: a member is not considered available if he is currently on a call
424 ; ringing: a member is not considered available if his phone is currently ringing
425 ; unavailable: This applies mainly to Agent channels. If the agent is a member of the queue
426 ; but has not logged in, then do not consider the member to be available
427 ; invalid: Do not consider a member to be available if he has an "invalid" device state.
428 ; This generally is caused by an error condition in the member's channel driver.
429 ; unknown: Do not consider a member to be available if we are unable to determine the member's
430 ; current device state.
431 ; wrapup: A member is not considered available if he is currently in his wrapuptime after
434 ; For the "joinempty" option, when a caller attempts to enter a queue, the members of that
435 ; queue are examined. If all members are deemed to be unavailable due to any of the conditions
436 ; listed for the "joinempty" option, then the caller will be unable to enter the queue. For the
437 ; "leavewhenempty" option, the state of the members of the queue are checked periodically during
438 ; the caller's stay in the queue. If all of the members are unavailable due to any of the above
439 ; conditions, then the caller will be removed from the queue.
443 ;joinempty = paused,inuse,invalid
445 ; A caller will not be able to enter a queue if at least one member cannot be found
446 ; who is not paused, on the phone, or who has an invalid device state.
448 ;leavewhenempty = inuse,ringing
450 ; A caller will be removed from the queue if at least one member cannot be found
451 ; who is not on the phone, or whose phone is not ringing.
453 ; For the sake of backwards-compatibility, the joinempty and leavewhenempty
454 ; options also accept the strings "yes" "no" "strict" and "loose". The following
455 ; serves as a translation for these values:
457 ; yes - (empty) for joinempty; penalty,paused,invalid for leavewhenempty
458 ; no - penalty,paused,invalid for joinempty; (empty) for leavewhenempty
459 ; strict - penalty,paused,invalid,unavailable
460 ; loose - penalty,invalid
463 ; If this is set to yes, the following manager events will be generated:
464 ; AgentCalled, AgentDump, AgentConnect, AgentComplete; setting this to
465 ; vars also sends all channel variables with the event.
466 ; (may generate some extra manager events, but probably ones you want)
468 ; eventwhencalled = yes|no|vars
470 ; If this is set to yes, the following manager events will be generated:
472 ; (may generate a WHOLE LOT of extra manager events)
473 ; The default value is yes and this can not be set globally.
475 ; eventmemberstatus = no
477 ; If you wish to report the caller's hold time to the member before they are
478 ; connected to the caller, set this to yes.
480 ; reportholdtime = no
482 ; If you want the queue to avoid sending calls to members whose devices are
483 ; known to be 'in use' (via the channel driver supporting that device state)
484 ; uncomment this option. (Note: only the SIP channel driver currently is able
485 ; to report 'in use'.)
487 ; A member can have the ignorebusy flag set or unset when ringinuse is set to
488 ; allow a per member control.
492 ; If you wish to have a delay before the member is connected to the caller (or
493 ; before the member hears any announcement messages), set this to the number of
498 ; If timeoutrestart is set to yes, then the timeout for an agent to answer is
499 ; reset if a BUSY or CONGESTION is received. This can be useful if agents
500 ; are able to cancel a call with reject or similar.
502 ; timeoutrestart = no
504 ; If you wish to implement a rule defined in queuerules.conf (see
505 ; configs/queuerules.conf.sample from the asterisk source directory for
506 ; more information about penalty rules) by default, you may specify this
507 ; by setting defaultrule to the rule's name
509 ; defaultrule = myrule
511 ; Each member of this call queue is listed on a separate line in
512 ; the form technology/dialstring. "member" means a normal member of a
513 ; queue. An optional penalty may be specified after a comma, such that
514 ; entries with higher penalties are considered last. An optional member
515 ; name may also be specified after a second comma, which is used in log
516 ; messages as a "friendly name". Multiple interfaces may share a single
517 ; member name. An optional state interface may be specified after a third
518 ; comma. This interface will be the one for which app_queue receives device
519 ; state notifications, even though the first interface specified is the one
520 ; that is actually called.
522 ; A hint can also be used in place of the state interface using the format
523 ; hint:<extension>@<context>. If no context is specified then 'default' will
526 ; It is important to ensure that channel drivers used for members are loaded
527 ; before app_queue.so itself or they may be marked invalid until reload. This
528 ; can be accomplished by explicitly listing them in modules.conf before
529 ; app_queue.so. Additionally, if you use Local channels as queue members, you
530 ; must also preload pbx_config.so and chan_local.so (or pbx_ael.so, pbx_lua.so,
531 ; or pbx_realtime.so, depending on how your dialplan is configured).
534 ;member => DAHDI/2,10
535 ;member => DAHDI/3,10,Bob Johnson
536 ;member => Agent/1001
537 ;member => Agent/1002
538 ;member => Local/1000@default,0,John Smith,SIP/1000
541 ; Note that using agent groups is probably not what you want. Strategies do
542 ; not propagate down to the Agent system so if you want round robin, least
543 ; recent, etc, you should list all the agents in this file individually and not
546 ;member => Agent/@1 ; Any agent in group 1
547 ;member => Agent/:1,1 ; Any agent in group 1, wait for first
548 ; available, but consider with penalty