Dynamic Queue Member(Agent)'s Status is Invalid

in my system.

Phone[3550] ------------ Asterisk 1.4 ------------------ Asterisk 16.7.0

I execute Originate action at Asterisk 16.7.0 to call Asterisk 1.4[ Phone 3550]
After Phone 3550 answered, this channel goto a special Context.
at this context, I execute a applications - AddQueueMember + AgentLogin

at CLI…

localhostCLI>
– PJSIP/PBX-00000000 answered
– Executing [3550@PDSLogin:1] NoOp(“PJSIP/PBX-00000000”, “–PDS2.0–”) in new stack
> 0x7f54c40628c0 – Strict RTP learning after remote address set to: 19.19.20.138:15806
– Executing [3550@PDSLogin:2] Set(“PJSIP/PBX-00000000”, “AGENT=3550”) in new stack
– Executing [3550@PDSLogin:3] UserEvent(“PJSIP/PBX-00000000”, "UserPdsStart,exten: ") in new stack
– Executing [3550@PDSLogin:4] AddQueueMember(“PJSIP/PBX-00000000”, “TestQueue,Agent/3550”) in new stack
[2020-01-02 17:25:53] NOTICE[2010][C-00000001]: app_queue.c:8077 aqm_exec: Added interface ‘Agent/3550’ to queue ‘TestQueue’
– Executing [3550@PDSLogin:5] AgentLogin(“PJSIP/PBX-00000000”, “3550,s”) in new stack
== Agent ‘3550’ logged in (format alaw/alaw)
– Channel PJSIP/PBX-00000000 joined ‘holding_bridge’ agent_hold-bridge
– Started music on hold, class ‘default’, on channel ‘PJSIP/PBX-00000000’
> 0x7f54c40628c0 – Strict RTP switching to RTP target address 19.19.20.138:15806 as source
localhost
CLI>

and I want to check Agent(3550) status!
localhost*CLI> agent show 3550
Id: 3550
Name: Agent3550
Beep: beep
MOH: default
RecordCalls: No
State: NOT_INUSE
LoggedInChannel: PJSIP/PBX-00000000
LoggedInTime: 1577953553

But, Queue Member(Agent 3550)'s status is “Invalid” like this

localhost*CLI> queue show TestQueue
TestQueue has 0 calls (max unlimited) in ‘rrmemory’ strategy (0s holdtime, 0s talktime), W:5, C:0, A:0, SL:0.0%, SL2:0.0% within 20s
Members:
Agent/3550 (ringinuse disabled) (dynamic) (Invalid) has taken no calls yet
No Callers

Is there any way to figure out?

The device state is queried using

Agent:<agent id> and not Agent/<agent id>

Thanks for your reply!

but, When Agent3550 logined queue(TestQueeu),
The status of Agent3550(Queue Member) is “Invalid”.

But Agent status(Agent3550, channel=PJSIP/PBX-00000000) is “NOT_INUSE”, It’s correct.

Please use the pre-formatted text option to show precisely what the output is.

An issue was created (ASTERISK-28681) for this. The solution was to specify the “state_interface” in the command:

*CLI> queue add member Agent/3550 to TestQueue penalty 10 as Agent/3550 state_interface Agent:3350
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.