Hello,
FreePBX 16
Asterisk 18.20.0
Call trace: [2024-05-16 15:45:51] VERBOSE[57540][C-00021d19] pbx.c: Executing [8004448888@fr - Pastebin.com
Call logic:
- Caller calls in, enters extension 106 which forwards the call to queue 8002.
- 8002 has an agent ringtime of 8 seconds, wrapuptime of 8 seconds and the ring strategy is rrmemory.
- We are using the U option to call a custom context so we can pass the agent information (answered) to an external application, as well as an hangup handler (hangup details)
The call rang by extension 329 (pastebin line 608)
[2024-05-16 15:46:06] VERBOSE[58083][C-00021d19] app_dial.c: Called PJSIP/329/sip:[email protected]:5060
[2024-05-16 15:46:06] VERBOSE[57540][C-00021d19] app_queue.c: Local/329@from-queue-0010f30f;1 is ringing
[2024-05-16 15:46:06] VERBOSE[58083][C-00021d19] app_dial.c: Connected line update to Local/329@from-queue-0010f30f;2 prevented.
[2024-05-16 15:46:06] VERBOSE[58083][C-00021d19] app_dial.c: PJSIP/329-000595c3 is ringing
[2024-05-16 15:46:06] VERBOSE[57540][C-00021d19] app_queue.c: Local/329@from-queue-0010f30f;1 is ringing
They answered the call on the 8th second (pastebin line 613)
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] app_dial.c: PJSIP/329-000595c3 answered Local/329@from-queue-0010f30f;2
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-auto-blkvm:1] ExecIf("PJSIP/329-000595c3", "1?Set(CDR(recordingfile)=in-8004448888-2120001111-20240516-154551-1715888751.2659624.wav)") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-auto-blkvm:2] Set("PJSIP/329-000595c3", "__MACRO_RESULT=") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-auto-blkvm:3] Set("PJSIP/329-000595c3", "CFIGNORE=") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-auto-blkvm:4] Set("PJSIP/329-000595c3", "MASTER_CHANNEL(CFIGNORE)=") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-auto-blkvm:5] Set("PJSIP/329-000595c3", "FORWARD_CONTEXT=from-internal") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-auto-blkvm:6] Set("PJSIP/329-000595c3", "MASTER_CHANNEL(FORWARD_CONTEXT)=from-internal") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-auto-blkvm:7] Macro("PJSIP/329-000595c3", "blkvm-clr,") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-blkvm-clr:1] Set("PJSIP/329-000595c3", "SHARED(BLKVM,PJSIP/Upstream1-000595bb)=") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-blkvm-clr:2] Set("PJSIP/329-000595c3", "GOSUB_RETVAL=") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-blkvm-clr:3] MacroExit("PJSIP/329-000595c3", "") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-auto-blkvm:8] ExecIf("PJSIP/329-000595c3", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=329/sip:[email protected]:5060)") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-auto-blkvm:9] ExecIf("PJSIP/329-000595c3", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=)") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] app_stack.c: PJSIP/329-000595c3 Internal Gosub(post-incomingCall,s,1(s,1)) start
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-incomingCall:1] NoOp("PJSIP/329-000595c3", "INBOUND - Send Post") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-incomingCall:2] ExecIf("PJSIP/329-000595c3", "0?Goto(call-volume-pickup,s,1)") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-incomingCall:3] GotoIf("PJSIP/329-000595c3", "1?setVar:continue") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx_builtins.c: Goto (post-incomingCall,s,4)
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-incomingCall:4] Set("PJSIP/329-000595c3", "CallerID=ABC Company") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-incomingCall:5] GotoIf("PJSIP/329-000595c3", "0?setVar2:post") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx_builtins.c: Goto (post-incomingCall,s,7)
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-incomingCall:7] AGI("PJSIP/329-000595c3", "post_inbound.sh,ABC Company,2120001111,329,1715888766.2659656,Answered") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/post_inbound.sh
But the queue decided to ignore the call and continue (line 636)
[2024-05-16 15:46:14] VERBOSE[57540][C-00021d19] app_queue.c: Nobody picked up in 8000 ms
[2024-05-16 15:46:14] VERBOSE[57540][C-00021d19] app_queue.c: -- LazyMembers debugging - Numbusies: 0, Nummems: 6
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] res_agi.c: <PJSIP/329-000595c3>AGI Script post_inbound.sh completed, returning 0
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-incomingCall:8] Set("PJSIP/329-000595c3", "CHANNEL(hangup_handler_push)=post-hangup-inbound,s,1") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-incomingCall:9] NoOp("PJSIP/329-000595c3", "Continue call") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-incomingCall:10] Return("PJSIP/329-000595c3", "") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] app_stack.c: Spawn extension (macro-dial-one, s, 1) exited non-zero on 'PJSIP/329-000595c3'
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] app_stack.c: PJSIP/329-000595c3 Internal Gosub(post-incomingCall,s,1(s,1)) complete GOSUB_RETVAL=
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] app_stack.c: PJSIP/329-000595c3 Internal Gosub(post-hangup-inbound,s,1) start
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-hangup-inbound:1] Set("PJSIP/329-000595c3", "CallerID=ABC Company") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-hangup-inbound:2] GotoIf("PJSIP/329-000595c3", "0?setVar2:post") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx_builtins.c: Goto (post-hangup-inbound,s,4)
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-hangup-inbound:4] AGI("PJSIP/329-000595c3", "post_inbound.sh,ABC Company,2120001111,329,1715888766.2659656,CallEnded") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/post_inbound.sh
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] res_agi.c: <PJSIP/329-000595c3>AGI Script post_inbound.sh completed, returning 0
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@post-hangup-inbound:5] Return("PJSIP/329-000595c3", "") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] app_stack.c: Spawn extension (macro-dial-one, s, 1) exited non-zero on 'PJSIP/329-000595c3'
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] app_stack.c: PJSIP/329-000595c3 Internal Gosub(post-hangup-inbound,s,1) complete GOSUB_RETVAL=
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] app_stack.c: PJSIP/329-000595c3 Internal Gosub(crm-hangup,s,1) start
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@crm-hangup:1] NoOp("PJSIP/329-000595c3", "Sending Hangup to CRM") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@crm-hangup:2] NoOp("PJSIP/329-000595c3", "HANGUP CAUSE: 16") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@crm-hangup:3] ExecIf("PJSIP/329-000595c3", "0?Set(__CRM_VOICEMAIL=)") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@crm-hangup:4] NoOp("PJSIP/329-000595c3", "MASTER CHANNEL: 1715888766.2659656 = 1715888751.2659624") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@crm-hangup:5] GotoIf("PJSIP/329-000595c3", "1?return") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx_builtins.c: Goto (crm-hangup,s,8)
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@crm-hangup:8] Return("PJSIP/329-000595c3", "") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] app_stack.c: Spawn extension (macro-dial-one, s, 1) exited non-zero on 'PJSIP/329-000595c3'
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] app_stack.c: PJSIP/329-000595c3 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] app_macro.c: Spawn extension (macro-dial-one, s, 56) exited non-zero on 'Local/329@from-queue-0010f30f;2' in macro 'dial-one'
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Spawn extension (from-queue-exten-internal, 329, 9) exited non-zero on 'Local/329@from-queue-0010f30f;2'
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [h@from-queue-exten-internal:1] Macro("Local/329@from-queue-0010f30f;2", "hangupcall,") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("Local/329@from-queue-0010f30f;2", "1?theend") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("Local/329@from-queue-0010f30f;2", "0?Set(CDR(recordingfile)=)") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Executing [s@macro-hangupcall:4] Hangup("Local/329@from-queue-0010f30f;2", "") in new stack
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/329@from-queue-0010f30f;2' in macro 'hangupcall'
[2024-05-16 15:46:14] VERBOSE[58083][C-00021d19] pbx.c: Spawn extension (from-queue-exten-internal, h, 1) exited non-zero on 'Local/329@from-queue-0010f30f;2'
And went to the next agent (line 673)
[2024-05-16 15:46:15] VERBOSE[57540][C-00021d19] app_queue.c: Called Local/335@from-queue/n
So… What am I missing? I thought that if the local channel is answered then the Queue Application would consider this an Answer. If so, why did it ignore the answer and move to the next agent?
Thanks