I have huge problem with agent stats in queue. When I call the queue and an agent will pick up it is all OK, I mean when I will look at “queue show testy” i see “Local/6704@queue-agent/n (dynamic) (In use)”, but when I will transfer the call to another agent using blind transfer the state persists, so I see:
Local/6704@queue-agent/n (dynamic) (In use)
Local/7001@queue-agent/n (dynamic) (Not in use)
But Local/7001 should be In Use, because after transfer 7001 is talking to the client and 6704 is on hook. Finally when 7001 ends the call - 6704 become Not in use
Here is basic configuration:
[b]<extensions.conf>[/b]
[extends]
exten => _*20,1,Answer
same => 2,AddQueueMember(testy,Local/${CALLERID(num)}@queue-agent/n)
same => 3,Playback(agent-loginok)
same => 3,Hangup
exten => _*21,1,Answer
same => 2,RemoveQueueMember(testy,Local/${CALLERID(num)}@queue-agent/n)
same => 3,Playback(agent-loggedoff)
same => 3,Hangup
[queue-agent]
exten => _X.,1,Set(GROUP()=${EXTEN})
exten => _X.,2,GotoIf($[${GROUP_COUNT()} > 1]?5:3)
exten => _X.,3,GoTo(accounts,${EXTEN},1)
exten => _X.,4,Wait(3)
exten => _X.,5,Congestion
[accounts]
exten => 6704,1,Dial(SIP/6704@proxy,30,t)
exten => 7001,1,Dial(SIP/7001@proxy,30,t)
[b]<sip.conf>[/b]
[proxy]
type=friend
context=proxy
host=10.97.0.30
port=5060
insecure=invite
And yes, I tried to log in agents with: AddQueueMember(testy,Local/${CALLERID(num)}@queue-agent/n,SIP/${CALLERID(num)}@proxy), but then I have always “In use” no matter what is the real state.
Can anybody help me please?
PS. Proxy is SIP trunk to OpenSips