Hi Guys,
I sit with an odd problem with the Asterisk queue function.
I’m trying to change the Caller priority through the Asterisk Ami, this seems to work, but the caller list is not updated for the next caller in line.
My queue config file is as follows.
[general]
autofill=yes
shared_lastcall=yes
[StandardQueue](!)
musicclass=default
strategy=ringall
joinempty=no
leavewhenempty=yes
ringinuse=no
[support](StandardQueue)
weight=0
member=PJSIP/1000
My Dial plan config file
; send calls into call center queue
[extensions]
exten => 2000,1,Verbose(2,${CALLERID(all)} check agent count)
same => n,Playback(hello)
same => n,Wait(1)
same => n,Answer()
same => n,Queue(support)
same => n,Hangup()
This works fine, when I make calls with multiple extensions into the queue I can take a list from the Asterisk CLI with queue show.
ip-172-31-25-96*CLI> queue show
support has 4 calls (max unlimited) in 'ringall' strategy (74s holdtime, 70s talktime), W:0, C:2, A:0, SL:0.0%, SL2:0.0% within 0s
Members:
PJSIP/1000 (ringinuse disabled) (in call) (In use) has taken 2 calls (last was 35 secs ago)
Callers:
1. PJSIP/1001-00000008 (wait: 0:16, prio: 0)
2. PJSIP/1002-00000009 (wait: 0:14, prio: 0)
3. PJSIP/1003-0000000a (wait: 0:12, prio: 0)
4. PJSIP/1004-0000000b (wait: 0:10, prio: 0)
This all works without any problems.
Next, I changed the Queue caller priority with the Asterisk AMI through QueueChangePriorityCaller.
Action: QueueChangePriorityCaller
ActionID: 12345678
Queue: support
Caller: PJSIP/1004-0000000b
Priority: 10
Now when I do queue show I see the following
ip-172-31-25-96*CLI> queue show
support has 4 calls (max unlimited) in 'ringall' strategy (74s holdtime, 70s talktime), W:0, C:2, A:0, SL:0.0%, SL2:0.0% within 0s
Members:
PJSIP/1000 (ringinuse disabled) (in call) (In use) has taken 2 calls (last was 35 secs ago)
Callers:
1. PJSIP/1001-00000008 (wait: 0:16, prio: 0)
2. PJSIP/1002-00000009 (wait: 0:14, prio: 0)
3. PJSIP/1003-0000000a (wait: 0:12, prio: 0)
4. PJSIP/1004-0000000b (wait: 0:10, prio: 10)
This also seems to work as the priority has been changed.
I would expect that when I hang up the current call, the next call would be 1004 as the priority is higher in the queue caller list. But this is not the case. The list still goes from 1 to 4. The priority doesn’t seem to matter.
What am I doing wrong here?
Anybody can help me find the right direction.
Is there a way the reload the current list to the new priority?
Thank you,
Wesley