Queue toggle does not work stable

Hi Folks

We are running a freePBX 2.9.0.1 with asterisk 1.6.2.18 and 16 sip phones.
The phones should work as dynamic agents for four differend queues.
The trouble is that very offten the agents can not log in to a queue by dialing 4520182050 (2018 is the agents and 2050 is the first queue).

In the log I found that freepbx is logging after the state of the phone and found out that 2018 is not a member of 2050 but just want´s to remove 2018 from 2050.

#[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2022 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2022 is assigned to queue 2052
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2016 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2016 is assigned to queue 2052
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2023 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2023 is assigned to queue 2052
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2024 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2024 is assigned to queue 2052
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent is assigned to queue 2052
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2018 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2018 is assigned to queue 2052
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2021 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2021 is assigned to queue 2052
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Finished processing members for 2052
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2022 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2022 is assigned to queue 2053
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2020 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2020 is assigned to queue 2053
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2024 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2024 is assigned to queue 2053
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2014 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2014 is assigned to queue 2053
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2018 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2018 is assigned to queue 2053
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2021 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2021 is assigned to queue 2053
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Finished processing members for 2053
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2023 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2023 is assigned to queue 2050
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2024 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2024 is assigned to queue 2050
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2022 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2022 is assigned to queue 2050
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2016 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2016 is assigned to queue 2050
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2023 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2023 is assigned to queue 2050
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: No Matches
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2020 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2020 is assigned to queue 2050
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2024 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2024 is assigned to queue 2050
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2014 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2014 is assigned to queue 2050
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2018 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2018 is assigned to queue 2050
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2021 is dynamic
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2021 is assigned to queue 2050
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Finished processing members for 2050
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Finished sorting
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Getting Queue Status for user 2018 in queue 2050
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – queue_devstate.agi,getqueues,2018: Agent 2018 is LOGGEDIN
[2011-05-16 08:24:33] VERBOSE[7993] res_agi.c: – <SIP/2018-000001aa>AGI Script queue_devstate.agi completed, returning 0
[2011-05-16 08:24:33] VERBOSE[7993] pbx.c: – Executing [s@app-queue-toggle:6] GotoIf(“SIP/2018-000001aa”, “0?activate”) in new stack
[2011-05-16 08:24:33] VERBOSE[7993] pbx.c: – Executing [s@app-queue-toggle:7] GotoIf(“SIP/2018-000001aa”, “1?deactivate”) in new stack
[2011-05-16 08:24:33] VERBOSE[7993] pbx.c: – Executing [s@app-queue-toggle:9] NoOp(“SIP/2018-000001aa”, “Agent Logged out”) in new stack
[2011-05-16 08:24:33] VERBOSE[7993] pbx.c: – Executing [s@app-queue-toggle:10] Macro(“SIP/2018-000001aa”, “toggle-del-agent,”) in new stack
[2011-05-16 08:24:33] VERBOSE[7993] pbx.c: – Executing [s@macro-toggle-del-agent:1] Wait(“SIP/2018-000001aa”, “1”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@macro-toggle-del-agent:2] Macro(“SIP/2018-000001aa”, “user-callerid,SKIPTTL,”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@macro-user-callerid:1] Set(“SIP/2018-000001aa”, “AMPUSER=2018”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@macro-user-callerid:2] GotoIf(“SIP/2018-000001aa”, “4?report”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@macro-user-callerid:13] GotoIf(“SIP/2018-000001aa”, “1?continue”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@macro-user-callerid:26] Set(“SIP/2018-000001aa”, “CALLERID(number)=2018”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@macro-user-callerid:27] Set(“SIP/2018-000001aa”, “CALLERID(name)=2018”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@macro-toggle-del-agent:3] Set(“SIP/2018-000001aa”, “CALLBACKNUM=2018”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@macro-toggle-del-agent:4] RemoveQueueMember(“SIP/2018-000001aa”, “2050,Local/2018@from-queue/n”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@macro-toggle-del-agent:5] RemoveQueueMember(“SIP/2018-000001aa”, “2050,Local/2018@from-internal/n”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@macro-toggle-del-agent:6] UserEvent(“SIP/2018-000001aa”, “RefreshQueue”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@macro-toggle-del-agent:7] MacroExit(“SIP/2018-000001aa”, “”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@app-queue-toggle:11] Set(“SIP/2018-000001aa”, “STATE=NOT_INUSE”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@app-queue-toggle:12] Gosub(“SIP/2018-000001aa”, “sstate,1”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [sstate@app-queue-toggle:1] Set(“SIP/2018-000001aa”, “DEVICES=2018”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [sstate@app-queue-toggle:2] GotoIf(“SIP/2018-000001aa”, “0?return”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [sstate@app-queue-toggle:3] Set(“SIP/2018-000001aa”, “LOOPCNT=1”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [sstate@app-queue-toggle:4] Set(“SIP/2018-000001aa”, “ITER=1”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [sstate@app-queue-toggle:5] Set(“SIP/2018-000001aa”, “DEVICE_STATE(Custom:QUEUE2018*2050)=NOT_INUSE”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [sstate@app-queue-toggle:6] Set(“SIP/2018-000001aa”, “ITER=2”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [sstate@app-queue-toggle:7] GotoIf(“SIP/2018-000001aa”, “0?begin”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [sstate@app-queue-toggle:8] Return(“SIP/2018-000001aa”, “”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] pbx.c: – Executing [s@app-queue-toggle:13] Playback(“SIP/2018-000001aa”, “agent-loggedoff”) in new stack
[2011-05-16 08:24:34] VERBOSE[7993] file.c: – <SIP/2018-000001aa> Playing ‘agent-loggedoff.slin’ (language ‘de’)
[2011-05-16 08:24:36] VERBOSE[7993] pbx.c: – Executing [s@app-queue-toggle:14] Macro(“SIP/2018-000001aa”, “hangupcall,”) in new stack
[2011-05-16 08:24:36] VERBOSE[7993] pbx.c: – Executing [s@macro-hangupcall:1] GotoIf(“SIP/2018-000001aa”, “1?theend”) in new stack
[2011-05-16 08:24:36] VERBOSE[7993] pbx.c: – Executing [s@macro-hangupcall:3] Hangup(“SIP/2018-000001aa”, “”) in new stack
[2011-05-16 08:24:36] VERBOSE[7993] app_macro.c: == Spawn extension (macro-hangupcall, s, 3) exited non-zero on ‘SIP/2018-000001aa’ in macro ‘hangupcall’
[2011-05-16 08:24:36] VERBOSE[7993] pbx.c: == Spawn extension (app-queue-toggle, s, 14) exited non-zero on ‘SIP/2018-000001aa’

Any ideas, or do I have found a problem with queue_devstate.agi?

Thanks a lot
Christian

Hello again

is there realy no one how have the same Problem?
Queue toggle is working well with emty queues bus do not work with working queues.
I have 6 six queue working with 14 agents and they all can not login sometimes to the queues.

Thanks
Christian

Hi Christian,

I have exactly the same issue. It looks like if there is someone in the queue, dynamic agents cannot log out. One some occasions dynamic agents cannot log in either.

Did you ever solve it?

Michel.

it’s probably not what you are going to want to hear, but…

If you can reproduce it on 1.8 preferable using FreePBX 2.10 but even with 2.9, and have the same issue and can give fairly details repro steps, then go file a bug with the information.

The issue with 1.6.X is that none of the devs are going to be running that version of Asterisk so won’t be able to easily reproduce it to try and see what is going on.

Philippe,

The reason we’re still running 1.6 is because there just are way too many things that are not working with 1.8. It’s a new setup, I DID try the FreePBX distro (it was my original intention to use it) and had nothing but issues especially with hints. With 1.8, I could not even get where the hints would show when doing a “core show hints” for the same feature.

I tried some other distros based on 1.8 and they all had the same problem; we needed to deploy at a customer, so back to good old 1.6.

Michel.

Seems to be an issue with the devstate. When I manual changed the devstate at the asterisk cli to INUSE , the agent was able to use their login button
(blfxer -> 44110*500) and enter the queue. This happens randomly and appears to be a mismatch of awareness between devstate and the queues. Below are some cli caps. If more info is needed let me know.

[May 22 12:38:28] VERBOSE[21404] res_agi.c: – queue_devstate.agi,getqueues,110: Agent 110 is dynamic
[May 22 12:38:28] VERBOSE[21404] res_agi.c: – queue_devstate.agi,getqueues,110: Agent 110 is assigned to queue 500
[May 22 12:38:28] VERBOSE[21404] res_agi.c: – queue_devstate.agi,getqueues,110: No Matches
[May 22 12:38:28] VERBOSE[21404] res_agi.c: – queue_devstate.agi,getqueues,110: No Matches
[May 22 12:38:28] VERBOSE[21404] res_agi.c: – queue_devstate.agi,getqueues,110: No Matches
[May 22 12:38:28] VERBOSE[21404] res_agi.c: – queue_devstate.agi,getqueues,110: No Matches
[May 22 12:38:28] VERBOSE[21404] res_agi.c: –
[
[May 22 12:38:28] VERBOSE[21404] res_agi.c: – queue_devstate.agi,getqueues,110: Finished sorting
[May 22 12:38:28] VERBOSE[21404] res_agi.c: – queue_devstate.agi,getqueues,110: Getting Queue Status for user 110 in queue 500
[May 22 12:38:28] VERBOSE[21404] res_agi.c: – queue_devstate.agi,getqueues,110: Agent 110 is LOGGEDIN <- Wrong not logged in
[May 22 12:38:28] VERBOSE[21404] res_agi.c: – <SIP/110-0000450e>AGI Script queue_devstate.agi completed, returning 0
[May 22 12:38:28] VERBOSE[21404] pbx.c: – Executing [s@app-queue-toggle:6] GotoIf(“SIP/110-0000450e”, “0?activate”) in new stack
[May 22 12:38:28] VERBOSE[21404] pbx.c: – Executing [s@app-queue-toggle:7] GotoIf(“SIP/110-0000450e”, “1?deactivate”) in new stack
[May 22 12:38:28] VERBOSE[21404] pbx.c: – Goto (app-queue-toggle,s,9)
[May 22 12:38:28] VERBOSE[21404] pbx.c: – Executing [s@app-queue-toggle:9] NoOp(“SIP/110-0000450e”, “Agent Logged out”) in new stack
[May 22 12:38:28] VERBOSE[21404] pbx.c: – Executing [s@app-queue-toggle:10] Macro(“SIP/110-0000450e”, “toggle-del-agent,”) in new stack
[May 22 12:38:28] VERBOSE[21404] pbx.c: – Executing [s@macro-toggle-del-agent:1] Wait(“SIP/110-0000450e”, “1”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@macro-toggle-del-agent:2] Macro(“SIP/110-0000450e”, “user-callerid,SKIPTTL,”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@macro-user-callerid:1] Set(“SIP/110-0000450e”, “AMPUSER=110”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@macro-user-callerid:2] GotoIf(“SIP/110-0000450e”, “15?report”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Goto (macro-user-callerid,s,11)
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@macro-user-callerid:11] GotoIf(“SIP/110-0000450e”, “1?continue”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Goto (macro-user-callerid,s,24)
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@macro-user-callerid:24] Set(“SIP/110-0000450e”, “CALLERID(number)=110”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@macro-user-callerid:25] Set(“SIP/110-0000450e”, “CALLERID(name)=”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@macro-user-callerid:26] Set(“SIP/110-0000450e”, “CHANNEL(language)=en”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@macro-toggle-del-agent:3] Set(“SIP/110-0000450e”, “CALLBACKNUM=110”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@macro-toggle-del-agent:4] RemoveQueueMember(“SIP/110-0000450e”, “500,Local/110@from-queue/n”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@macro-toggle-del-agent:5] RemoveQueueMember(“SIP/110-0000450e”, “500,Local/110@from-internal/n”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@macro-toggle-del-agent:6] UserEvent(“SIP/110-0000450e”, “RefreshQueue”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@macro-toggle-del-agent:7] MacroExit(“SIP/110-0000450e”, “”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@app-queue-toggle:11] Set(“SIP/110-0000450e”, “STATE=NOT_INUSE”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@app-queue-toggle:12] Gosub(“SIP/110-0000450e”, “sstate,1”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [sstate@app-queue-toggle:1] Set(“SIP/110-0000450e”, “DEVICES=110”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [sstate@app-queue-toggle:2] GotoIf(“SIP/110-0000450e”, “0?return”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [sstate@app-queue-toggle:3] Set(“SIP/110-0000450e”, “LOOPCNT=1”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [sstate@app-queue-toggle:4] Set(“SIP/110-0000450e”, “ITER=1”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [sstate@app-queue-toggle:5] Set(“SIP/110-0000450e”, “DEVICE_STATE(Custom:QUEUE110*500)=NOT_INUSE”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [sstate@app-queue-toggle:6] Set(“SIP/110-0000450e”, “ITER=2”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [sstate@app-queue-toggle:7] GotoIf(“SIP/110-0000450e”, “0?begin”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [sstate@app-queue-toggle:8] Return(“SIP/110-0000450e”, “”) in new stack
[May 22 12:38:30] VERBOSE[21404] pbx.c: – Executing [s@app-queue-toggle:13] Playback(“SIP/110-0000450e”, “agent-loggedoff”) in new stack
[May 22 12:38:30] VERBOSE[21404] file.c: – <SIP/110-0000450e> Playing ‘agent-loggedoff.ulaw’ (language ‘en’)


— Name: ‘Custom:QUEUE110*500’ State: ‘NOT_INUSE’

CLI> devstate change Custom:QUEUE110500 INUSE
Changing QUEUE110*500 to INUSE

Now 110 can using 44110*500

*CLI> queue show 500

(Local/110@from-queue/n) (dynamic) (In use) has taken 8 calls (last was 123 secs ago)

This one was a hard one to track down…

There is a bug that takes a fairly specific combination of events to manifest itself. We’ve got a fix that we are doing some last testing on and then it will be released shortly.

If I recall correctly it affects both 2.9 and 2.10.