FreePBX 13.0.190.7
Phone - GrandStream GXP2140
Queue - 700
Agent - 204 (Dynamic agent of Queue 700)
When BLF key (red) is pressed recording states agent is logged in (CLI queue show confirms). Pressing BLF key (still red) again, same recording “agent logged in…”.
Same results if agent dials *45204*700
Phone setup:
VPK - BLF, *45204*700
core show hints
-= Registered Asterisk Dial Plan Hints =-
---
204@ext-local : SIP/204&Custom:DND20 State:Idle Watchers 0
_*46*XXX*700@ext-queues : qpause:${EXTEN:8}:Lo State:Unavailable Watchers 0
_*46*XXX*701@ext-queues : qpause:${EXTEN:8}:Lo State:Unavailable Watchers 0
_*45*X.@ext-queues : ${DB(AMPUSER/${EXTEN State:Unavailable Watchers 0 *** I don't know if this if why. If so, how to enable? ***
_*46*X.@ext-queues : ${DB(AMPUSER/${EXTEN State:Unavailable Watchers 0
*45204*700@ext-queues : Custom:QUEUE204*700 State:InUse Watchers 2
*45203*700@ext-queues : Custom:QUEUE203*700 State:InUse Watchers 3
_*45XXX*XXX@ext-queues : Custom:QUEUE${EXTEN: State:Unavailable Watchers 0 *** same as above ***
CLI output -
Pressing BLF first time
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [*45204*700@from-internal:1] Set("SIP/204-00005641", "QUEUENO=700") in new stack
-- Executing [*45204*700@from-internal:2] Set("SIP/204-00005641", "QUEUEUSER=204") in new stack
-- Executing [*45204*700@from-internal:3] Goto("SIP/204-00005641", "app-queue-toggle,s,start") in new stack
-- Goto (app-queue-toggle,s,1)
-- Executing [s@app-queue-toggle:1] Answer("SIP/204-00005641", "") in new stack
> 0xb67e3558 -- Probation passed - setting RTP source address to 10.215.72.204:5004
-- Executing [s@app-queue-toggle:2] Wait("SIP/204-00005641", "1") in new stack
-- Executing [s@app-queue-toggle:3] Macro("SIP/204-00005641", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/204-00005641", "TOUCH_MONITOR=1484698483.46852") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/204-00005641", "AMPUSER=204") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/204-00005641", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/204-00005641", "1?Set(REALCALLERIDNUM=204)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/204-00005641", "AMPUSER=204") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/204-00005641", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/204-00005641", "AMPUSERCIDNAME=Rod") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/204-00005641", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/204-00005641", "AMPUSERCID=204") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/204-00005641", "__DIAL_OPTIONS=Ttr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/204-00005641", "CALLERID(all)="Rod" <204>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/204-00005641", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/204-00005641", "0?Set(GROUP(concurrency_limit)=204)") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("SIP/204-00005641", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/204-00005641", "0?continue") in new stack
-- Executing [s@macro-user-callerid:16] ExecIf("SIP/204-00005641", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
-- Executing [s@macro-user-callerid:17] Set("SIP/204-00005641", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:18] GotoIf("SIP/204-00005641", "1?continue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] Set("SIP/204-00005641", "CALLERID(number)=204") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/204-00005641", "CALLERID(name)=Rod") in new stack
-- Executing [s@macro-user-callerid:31] GotoIf("SIP/204-00005641", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/204-00005641", "CDR(cnam)=Rod") in new stack
-- Executing [s@macro-user-callerid:33] Set("SIP/204-00005641", "CDR(cnum)=204") in new stack
-- Executing [s@macro-user-callerid:34] Set("SIP/204-00005641", "CHANNEL(language)=en") in new stack
-- Executing [s@app-queue-toggle:4] Set("SIP/204-00005641", "QUEUEUSER=204") in new stack
-- Executing [s@app-queue-toggle:5] Set("SIP/204-00005641", "QUEUESTAT=LOGGEDOUT") in new stack
-- Executing [s@app-queue-toggle:6] AGI("SIP/204-00005641", "queue_devstate.agi,getqueues,204") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/queue_devstate.agi
-- <SIP/204-00005641>AGI Script queue_devstate.agi completed, returning 0
-- Executing [s@app-queue-toggle:7] GotoIf("SIP/204-00005641", "1?activate") in new stack
-- Goto (app-queue-toggle,s,16)
-- Executing [s@app-queue-toggle:16] NoOp("SIP/204-00005641", "Agent Logged In") in new stack
-- Executing [s@app-queue-toggle:17] Macro("SIP/204-00005641", "toggle-add-agent,") in new stack
-- Executing [s@macro-toggle-add-agent:1] Macro("SIP/204-00005641", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/204-00005641", "TOUCH_MONITOR=1484698483.46852") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/204-00005641", "AMPUSER=204") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/204-00005641", "3?report") in new stack
-- Goto (macro-user-callerid,s,15)
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/204-00005641", "1?continue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] Set("SIP/204-00005641", "CALLERID(number)=204") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/204-00005641", "CALLERID(name)=Rod") in new stack
-- Executing [s@macro-user-callerid:31] GotoIf("SIP/204-00005641", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/204-00005641", "CDR(cnam)=Rod") in new stack
-- Executing [s@macro-user-callerid:33] Set("SIP/204-00005641", "CDR(cnum)=204") in new stack
-- Executing [s@macro-user-callerid:34] Set("SIP/204-00005641", "CHANNEL(language)=en") in new stack
-- Executing [s@macro-toggle-add-agent:2] Set("SIP/204-00005641", "QUEUEUSER=204") in new stack
-- Executing [s@macro-toggle-add-agent:3] Set("SIP/204-00005641", "QUEUEUSERCIDNAME=Rod") in new stack
-- Executing [s@macro-toggle-add-agent:4] GotoIf("SIP/204-00005641", "0?invalid") in new stack
-- Executing [s@macro-toggle-add-agent:5] ExecIf("SIP/204-00005641", "1?AddQueueMember(700,Local/204@from-queue/n,1,,Rod,hint:204@ext-local)") in new stack
[2017-01-17 17:14:50] NOTICE[32073][C-000010c8]: app_queue.c:6899 aqm_exec: Added interface 'Local/204@from-queue/n' to queue '700'
-- Executing [s@macro-toggle-add-agent:6] ExecIf("SIP/204-00005641", "0?AddQueueMember(700,Local/204@from-queue/n,1,,Rod)") in new stack
-- Executing [s@macro-toggle-add-agent:7] UserEvent("SIP/204-00005641", "AgentLogin,Agent: 204") in new stack
-- Executing [s@macro-toggle-add-agent:8] QueueLog("SIP/204-00005641", "700,MANAGER,Rod,ADDMEMBER,") in new stack
-- Executing [s@macro-toggle-add-agent:9] MacroExit("SIP/204-00005641", "") in new stack
-- Executing [s@app-queue-toggle:18] GotoIf("SIP/204-00005641", "0?logout") in new stack
-- Executing [s@app-queue-toggle:19] Set("SIP/204-00005641", "STATE=INUSE") in new stack
-- Executing [s@app-queue-toggle:20] Gosub("SIP/204-00005641", "sstate,1()") in new stack
-- Executing [sstate@app-queue-toggle:1] Set("SIP/204-00005641", "DEVICES=204") in new stack
-- Executing [sstate@app-queue-toggle:2] GotoIf("SIP/204-00005641", "0?return") in new stack
-- Executing [sstate@app-queue-toggle:3] Set("SIP/204-00005641", "LOOPCNT=1") in new stack
-- Executing [sstate@app-queue-toggle:4] Set("SIP/204-00005641", "ITER=1") in new stack
-- Executing [sstate@app-queue-toggle:5] Set("SIP/204-00005641", "DEVICE_STATE(Custom:QUEUE204*700)=INUSE") in new stack
-- Executing [sstate@app-queue-toggle:6] Set("SIP/204-00005641", "ITER=2") in new stack
-- Executing [sstate@app-queue-toggle:7] GotoIf("SIP/204-00005641", "0?begin") in new stack
-- Executing [sstate@app-queue-toggle:8] Return("SIP/204-00005641", "") in new stack
-- Executing [s@app-queue-toggle:21] Playback("SIP/204-00005641", "agent-loginok") in new stack
-- <SIP/204-00005641> Playing 'agent-loginok.ulaw' (language 'en')
-- Executing [s@app-queue-toggle:22] SayDigits("SIP/204-00005641", "204") in new stack
-- <SIP/204-00005641> Playing 'digits/2.ulaw' (language 'en')
-- <SIP/204-00005641> Playing 'digits/0.ulaw' (language 'en')
-- <SIP/204-00005641> Playing 'digits/4.ulaw' (language 'en')
-- Executing [s@app-queue-toggle:23] Macro("SIP/204-00005641", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] ExecIf("SIP/204-00005641", "0?Set(CDR(recordingfile)=.)") in new stack
-- Executing [s@macro-hangupcall:2] GotoIf("SIP/204-00005641", "1?theend") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] ExecIf("SIP/204-00005641", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:5] Hangup("SIP/204-00005641", "") in new stack
== Spawn extension (macro-hangupcall, s, 5) exited non-zero on 'SIP/204-00005641' in macro 'hangupcall'
== Spawn extension (app-queue-toggle, s, 23) exited non-zero on 'SIP/204-00005641'
Pressing BLF second time
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [*45204*700@from-internal:1] Set("SIP/204-00005642", "QUEUENO=700") in new stack
-- Executing [*45204*700@from-internal:2] Set("SIP/204-00005642", "QUEUEUSER=204") in new stack
-- Executing [*45204*700@from-internal:3] Goto("SIP/204-00005642", "app-queue-toggle,s,start") in new stack
-- Goto (app-queue-toggle,s,1)
-- Executing [s@app-queue-toggle:1] Answer("SIP/204-00005642", "") in new stack
> 0xb67e3558 -- Probation passed - setting RTP source address to 10.215.72.204:5004
-- Executing [s@app-queue-toggle:2] Wait("SIP/204-00005642", "1") in new stack
-- Executing [s@app-queue-toggle:3] Macro("SIP/204-00005642", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/204-00005642", "TOUCH_MONITOR=1484698503.46853") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/204-00005642", "AMPUSER=204") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/204-00005642", "0?report") in new stack
-- Executing [s@macro-user-callerid:4] ExecIf("SIP/204-00005642", "1?Set(REALCALLERIDNUM=204)") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/204-00005642", "AMPUSER=204") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/204-00005642", "0?limit") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/204-00005642", "AMPUSERCIDNAME=Rod") in new stack
-- Executing [s@macro-user-callerid:8] GotoIf("SIP/204-00005642", "0?report") in new stack
-- Executing [s@macro-user-callerid:9] Set("SIP/204-00005642", "AMPUSERCID=204") in new stack
-- Executing [s@macro-user-callerid:10] Set("SIP/204-00005642", "__DIAL_OPTIONS=Ttr") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/204-00005642", "CALLERID(all)="Rod" <204>") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/204-00005642", "0?limit") in new stack
-- Executing [s@macro-user-callerid:13] ExecIf("SIP/204-00005642", "0?Set(GROUP(concurrency_limit)=204)") in new stack
-- Executing [s@macro-user-callerid:14] ExecIf("SIP/204-00005642", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/204-00005642", "0?continue") in new stack
-- Executing [s@macro-user-callerid:16] ExecIf("SIP/204-00005642", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
-- Executing [s@macro-user-callerid:17] Set("SIP/204-00005642", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:18] GotoIf("SIP/204-00005642", "1?continue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] Set("SIP/204-00005642", "CALLERID(number)=204") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/204-00005642", "CALLERID(name)=Rod") in new stack
-- Executing [s@macro-user-callerid:31] GotoIf("SIP/204-00005642", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/204-00005642", "CDR(cnam)=Rod") in new stack
-- Executing [s@macro-user-callerid:33] Set("SIP/204-00005642", "CDR(cnum)=204") in new stack
-- Executing [s@macro-user-callerid:34] Set("SIP/204-00005642", "CHANNEL(language)=en") in new stack
-- Executing [s@app-queue-toggle:4] Set("SIP/204-00005642", "QUEUEUSER=204") in new stack
-- Executing [s@app-queue-toggle:5] Set("SIP/204-00005642", "QUEUESTAT=LOGGEDOUT") in new stack
-- Executing [s@app-queue-toggle:6] AGI("SIP/204-00005642", "queue_devstate.agi,getqueues,204") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/queue_devstate.agi
-- <SIP/204-00005642>AGI Script queue_devstate.agi completed, returning 0
-- Executing [s@app-queue-toggle:7] GotoIf("SIP/204-00005642", "1?activate") in new stack
-- Goto (app-queue-toggle,s,16)
-- Executing [s@app-queue-toggle:16] NoOp("SIP/204-00005642", "Agent Logged In") in new stack
-- Executing [s@app-queue-toggle:17] Macro("SIP/204-00005642", "toggle-add-agent,") in new stack
-- Executing [s@macro-toggle-add-agent:1] Macro("SIP/204-00005642", "user-callerid,SKIPTTL,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/204-00005642", "TOUCH_MONITOR=1484698503.46853") in new stack
-- Executing [s@macro-user-callerid:2] Set("SIP/204-00005642", "AMPUSER=204") in new stack
-- Executing [s@macro-user-callerid:3] GotoIf("SIP/204-00005642", "3?report") in new stack
-- Goto (macro-user-callerid,s,15)
-- Executing [s@macro-user-callerid:15] GotoIf("SIP/204-00005642", "1?continue") in new stack
-- Goto (macro-user-callerid,s,29)
-- Executing [s@macro-user-callerid:29] Set("SIP/204-00005642", "CALLERID(number)=204") in new stack
-- Executing [s@macro-user-callerid:30] Set("SIP/204-00005642", "CALLERID(name)=Rod") in new stack
-- Executing [s@macro-user-callerid:31] GotoIf("SIP/204-00005642", "0?cnum") in new stack
-- Executing [s@macro-user-callerid:32] Set("SIP/204-00005642", "CDR(cnam)=Rod") in new stack
-- Executing [s@macro-user-callerid:33] Set("SIP/204-00005642", "CDR(cnum)=204") in new stack
-- Executing [s@macro-user-callerid:34] Set("SIP/204-00005642", "CHANNEL(language)=en") in new stack
-- Executing [s@macro-toggle-add-agent:2] Set("SIP/204-00005642", "QUEUEUSER=204") in new stack
-- Executing [s@macro-toggle-add-agent:3] Set("SIP/204-00005642", "QUEUEUSERCIDNAME=Rod") in new stack
-- Executing [s@macro-toggle-add-agent:4] GotoIf("SIP/204-00005642", "0?invalid") in new stack
-- Executing [s@macro-toggle-add-agent:5] ExecIf("SIP/204-00005642", "1?AddQueueMember(700,Local/204@from-queue/n,1,,Rod,hint:204@ext-local)") in new stack
[2017-01-17 17:15:05] WARNING[32078][C-000010c9]: app_queue.c:6904 aqm_exec: Unable to add interface 'Local/204@from-queue/n' to queue '700': Already there *** agree ***
-- Executing [s@macro-toggle-add-agent:6] ExecIf("SIP/204-00005642", "0?AddQueueMember(700,Local/204@from-queue/n,1,,Rod)") in new stack
-- Executing [s@macro-toggle-add-agent:7] UserEvent("SIP/204-00005642", "AgentLogin,Agent: 204") in new stack
-- Executing [s@macro-toggle-add-agent:8] QueueLog("SIP/204-00005642", "700,MANAGER,Rod,ADDMEMBER,") in new stack
-- Executing [s@macro-toggle-add-agent:9] MacroExit("SIP/204-00005642", "") in new stack
-- Executing [s@app-queue-toggle:18] GotoIf("SIP/204-00005642", "0?logout") in new stack
-- Executing [s@app-queue-toggle:19] Set("SIP/204-00005642", "STATE=INUSE") in new stack
-- Executing [s@app-queue-toggle:20] Gosub("SIP/204-00005642", "sstate,1()") in new stack
-- Executing [sstate@app-queue-toggle:1] Set("SIP/204-00005642", "DEVICES=204") in new stack
-- Executing [sstate@app-queue-toggle:2] GotoIf("SIP/204-00005642", "0?return") in new stack
-- Executing [sstate@app-queue-toggle:3] Set("SIP/204-00005642", "LOOPCNT=1") in new stack
-- Executing [sstate@app-queue-toggle:4] Set("SIP/204-00005642", "ITER=1") in new stack
-- Executing [sstate@app-queue-toggle:5] Set("SIP/204-00005642", "DEVICE_STATE(Custom:QUEUE204*700)=INUSE") in new stack
-- Executing [sstate@app-queue-toggle:6] Set("SIP/204-00005642", "ITER=2") in new stack
-- Executing [sstate@app-queue-toggle:7] GotoIf("SIP/204-00005642", "0?begin") in new stack
-- Executing [sstate@app-queue-toggle:8] Return("SIP/204-00005642", "") in new stack
-- Executing [s@app-queue-toggle:21] Playback("SIP/204-00005642", "agent-loginok") in new stack
-- <SIP/204-00005642> Playing 'agent-loginok.ulaw' (language 'en')
-- Executing [s@app-queue-toggle:22] SayDigits("SIP/204-00005642", "204") in new stack
-- <SIP/204-00005642> Playing 'digits/2.ulaw' (language 'en')
-- <SIP/204-00005642> Playing 'digits/0.ulaw' (language 'en')
-- <SIP/204-00005642> Playing 'digits/4.ulaw' (language 'en')
-- Executing [s@app-queue-toggle:23] Macro("SIP/204-00005642", "hangupcall,") in new stack
-- Executing [s@macro-hangupcall:1] ExecIf("SIP/204-00005642", "0?Set(CDR(recordingfile)=.)") in new stack
-- Executing [s@macro-hangupcall:2] GotoIf("SIP/204-00005642", "1?theend") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] ExecIf("SIP/204-00005642", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:5] Hangup("SIP/204-00005642", "") in new stack
== Spawn extension (macro-hangupcall, s, 5) exited non-zero on 'SIP/204-00005642' in macro 'hangupcall'
== Spawn extension (app-queue-toggle, s, 23) exited non-zero on 'SIP/204-00005642'