Queue Auto Pause is Pausing agents who have DND set

Asterisk 16.15.1

Hello,

I have been looking at the Auto Pause options of a call Queue (configured by FreePBX) but it seems that when any extension’s DND is activated and they receive a call, those agents become automatically paused, even if I set Auto Pause on Busy to No.

[3000]
announce-frequency=0
announce-holdtime=no
announce-position=no
autofill=no
autopause=all
autopausebusy=no
autopausedelay=0
autopauseunavail=no
joinempty=yes
leavewhenempty=no
maxlen=0
memberdelay=0
min-announce-frequency=15
penaltymemberslimit=0
periodic-announce-frequency=0
queue-callswaiting=silence/1
queue-thereare=silence/1
queue-youarenext=silence/1
reportholdtime=no
retry=1
ringinuse=no
servicelevel=60
strategy=leastrecent
timeout=15
timeoutpriority=app
timeoutrestart=yes
weight=0
wrapuptime=0
context=

Agnet has DND set:

[[email protected] /]# asterisk -rx “database show” | grep “/DND/3081”
/DND/3081 : YES

[2021-02-03 18:07:54] VERBOSE[12957][C-0000005a] app_queue.c: Called Local/[email protected]/n
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:1] Set(“Local/[email protected];2”, “QAGENT=3081”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:2] Set(“Local/[email protected];2”, “__FROMQ=true”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:3] GotoIf(“Local/[email protected];2”, “0?hangup”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:4] GotoIf(“Local/[email protected];2”, “1?3000,1:hangup”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx_builtins.c: Goto (from-queue,3000,1)
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:1] Goto(“Local/[email protected];2”, “from-queue-exten-only,3081,1”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx_builtins.c: Goto (from-queue-exten-only,3081,1)
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:1] GotoIf(“Local/[email protected];2”, “0?hangup”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:2] GotoIf(“Local/[email protected];2”, “0?from-queue-exten-only-x,3081,1”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:3] Set(“Local/[email protected];2”, “RingGroupMethod=none”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:4] Set(“Local/[email protected];2”, “CHANNEL(language)=en_GB”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:5] Set(“Local/[email protected];2”, “QDOPTS=”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:6] Set(“Local/[email protected];2”, “CALLTYPE_OVERRIDE=external”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:7] ExecIf(“Local/[email protected];2”, “0?Set(FROMEXTEN=3000)”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:8] Gosub(“Local/[email protected];2”, “sub-record-check,s,1(exten,3081,)”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:1] GotoIf(“Local/[email protected];2”, “11?initialized”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx_builtins.c: Goto (sub-record-check,s,10)
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:10] NoOp(“Local/[email protected];2”, “Recordings initialized”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:11] ExecIf(“Local/[email protected];2”, “1?Set(ARG3=dontcare)”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:12] Set(“Local/[email protected];2”, “REC_POLICY_MODE_SAVE=YES”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:13] ExecIf(“Local/[email protected];2”, “0?Set(REC_STATUS=NO)”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:14] GotoIf(“Local/[email protected];2”, “5?checkaction”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx_builtins.c: Goto (sub-record-check,s,17)
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:17] GotoIf(“Local/[email protected];2”, “1?sub-record-check,exten,1”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx_builtins.c: Goto (sub-record-check,exten,1)
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:1] NoOp(“Local/[email protected];2”, “Exten Recording Check between 01XXXXXXXXX and 3081”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:2] Set(“Local/[email protected];2”, “CALLTYPE=internal”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:3] ExecIf(“Local/[email protected];2”, “8?Set(CALLTYPE=external)”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:4] Set(“Local/[email protected];2”, “CALLEE=yes”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:5] ExecIf(“Local/[email protected];2”, “0?Set(CALLEE=dontcare)”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:6] GotoIf(“Local/[email protected];2”, “1?callee”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx_builtins.c: Goto (sub-record-check,exten,11)
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:11] Gosub(“Local/[email protected];2”, “recordcheck,1(yes,external,3081)”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:1] NoOp(“Local/[email protected];2”, “Starting recording check against yes”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:2] Goto(“Local/[email protected];2”, “yes”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx_builtins.c: Goto (sub-record-check,recordcheck,9)
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:9] ExecIf(“Local/[email protected];2”, “1?Return()”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:12] Return(“Local/[email protected];2”, “”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:9] Macro(“Local/[email protected];2”, “dial-one,tr,3081”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:1] Set(“Local/[email protected];2”, “DEXTEN=3081”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:2] ExecIf(“Local/[email protected];2”, “1?Set(__EXTTOCALL=3081)”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:3] Set(“Local/[email protected];2”, “DIALSTATUS_CW=”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:4] GosubIf(“Local/[email protected];2”, “0?screen,1()”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:5] GosubIf(“Local/[email protected];2”, “0?cf,1()”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:6] GotoIf(“Local/[email protected];2”, “0?skip1”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:7] Set(“Local/[email protected];2”, “DEXTEN=”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:8] Set(“Local/[email protected];2”, “DIALSTATUS=BUSY”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:9] GotoIf(“Local/[email protected];2”, “1?nodial”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx_builtins.c: Goto (macro-dial-one,s,60)
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:60] NoOp(“Local/[email protected];2”, “”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:61] ExecIf(“Local/[email protected];2”, “0?Set(DIALSTATUS=NOANSWER)”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:62] NoOp(“Local/[email protected];2”, “Returned from dial-one with nothing to call and DIALSTATUS: BUSY”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:63] MacroExit(“Local/[email protected];2”, “”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:10] GotoIf(“Local/[email protected];2”, “0?,”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:11] Hangup(“Local/[email protected];2”, “”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Spawn extension (from-queue-exten-only, 3081, 11) exited non-zero on ‘Local/[email protected];2’
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:1] Macro(“Local/[email protected];2”, “hangupcall,”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:1] GotoIf(“Local/[email protected];2”, “1?theend”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:3] ExecIf(“Local/[email protected];2”, “0?Set(CDR(recordingfile)=)”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:4] NoOp(“Local/[email protected];2”, " montior file= ") in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:5] GotoIf(“Local/[email protected];2”, “1?skipagi”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx_builtins.c: Goto (macro-hangupcall,s,7)
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:7] Hangup(“Local/[email protected];2”, “”) in new stack
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on ‘Local/[email protected];2’ in macro ‘hangupcall’
[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Spawn extension (from-queue-exten-only, h, 1) exited non-zero on ‘Local/[email protected];2’
[2021-02-03 18:07:54] VERBOSE[12957][C-0000005a] app_queue.c: Nobody picked up in 0 ms
[2021-02-03 18:07:54] VERBOSE[12957][C-0000005a] app_queue.c: Auto-Pausing Queue Member Local/[email protected]/n in all queues since they failed to answer on queue 3000.
[2021-02-03 18:07:54] VERBOSE[12957][C-0000005a] app_queue.c: – LazyMembers debugging - Numbusies: 0, Nummems: 4

As DND was set, the extension returned BUSY

[2021-02-03 18:07:54] VERBOSE[13587][C-0000005a] pbx.c: Executing [[email protected]:62] NoOp(“Local/[email protected];2”, “Returned from dial-one with nothing to call and DIALSTATUS: BUSY”) in new stack

So why was the extension automatically paused when

[3000]
autopausebusy=no

…is set?

The desired outcome would be that any agents who are a member of a queue and have DND set are skipped and not automatically paused.

Is this possible so only extensions that actually ring and miss the call are automatically set to Pause?

Thanks,
Fraser

I posted over on the asterisk forums too


and someone said:

On searching my logs, I do not see any “was busy” messages so prephaps this is the issue.

Any advice would be appreciated.

Thanks,
Fraser

Hello, I am still having this problem and therefore unable to use the Lazy Agent feature.

Would any be able to assist?

Thanks,
Fraser

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.