Summary: | ASTERISK-28681: Agent can login queue, but this queue member status is "Invalid" | ||
Reporter: | Ryou, HyunSun (hsunryou) | Labels: | |
Date Opened: | 2020-01-08 01:51:06.000-0600 | Date Closed: | 2020-01-08 18:43:09.000-0600 |
Priority: | Minor | Regression? | |
Status: | Closed/Complete | Components: | Applications/app_queue |
Versions: | 16.6.1 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Cent OS 8 + pjsip module | Attachments: | |
Description: | 1) Agent(3550) login using auto-call file
{noformat} localhost*CLI> -- PJSIP/PBX-00000001 answered > 0x7f513c040330 -- Strict RTP learning after remote address set to: 19.19.20.138:11922 -- Executing [3550@PDSLogin:1] NoOp("PJSIP/PBX-00000001", "--PDS2.0--") in new stack -- Executing [3550@PDSLogin:2] Set("PJSIP/PBX-00000001", "AGENT=3550") in new stack -- Executing [3550@PDSLogin:3] UserEvent("PJSIP/PBX-00000001", "UserPdsStart,exten: ") in new stack -- Executing [3550@PDSLogin:4] AddQueueMember("PJSIP/PBX-00000001", "TestQueue,Agent/3550,5,,Agent/3550,Agent/3550") in new stack [2020-01-08 16:48:28] WARNING[2426][C-00000002]: db.c:348 ast_db_put: Couldn't execute statement: SQL logic error [2020-01-08 16:48:28] WARNING[2426][C-00000002]: app_queue.c:7302 dump_queue_members: failed to create persistent dynamic entry! [2020-01-08 16:48:28] NOTICE[2426][C-00000002]: app_queue.c:8077 aqm_exec: Added interface 'Agent/3550' to queue 'TestQueue' -- Executing [3550@PDSLogin:5] AgentLogin("PJSIP/PBX-00000001", "3550,s") in new stack == Agent '3550' logged in (format alaw/alaw) -- Channel PJSIP/PBX-00000001 joined 'holding_bridge' agent_hold-bridge <da96ef39-de23-4722-94ea-6ed3ea17db97> -- Started music on hold, class 'default', on channel 'PJSIP/PBX-00000001' > 0x7f513c040330 -- Strict RTP switching to RTP target address 19.19.20.138:11922 as source localhost*CLI> {noformat} 2) Check Agent(3550) Status {noformat} localhost*CLI> agent show 3550 Id: 3550 Name: Agent3550 Beep: beep MOH: default RecordCalls: No State: NOT_INUSE LoggedInChannel: PJSIP/PBX-00000001 LoggedInTime: 1578469708 localhost*CLI> {noformat} 3) Agent(3550) login queue(TestQueue) {noformat} localhost*CLI> queue add member Agent/3550 to TestQueue penalty 10 Added interface 'Agent/3550' to queue 'TestQueue' [2020-01-08 16:49:08] WARNING[2008]: db.c:348 ast_db_put: Couldn't execute statement: SQL logic error [2020-01-08 16:49:08] WARNING[2008]: app_queue.c:7302 dump_queue_members: failed to create persistent dynamic entry! localhost*CLI> {noformat} 4) Queue member(Agent/3550) status => "invalid" {noformat} 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 with penalty 10 (ringinuse disabled) (dynamic) (Invalid) has taken no calls yet No Callers {noformat} Agent can login queue. But this queue member status is "invalid". | ||
Comments: | By: Asterisk Team (asteriskteam) 2020-01-08 01:51:07.304-0600 Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution. A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report. Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process]. Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur. By: Kevin Harwell (kharwell) 2020-01-08 11:43:06.038-0600 It appears you have not specified a state interface, so it has nothing to pull device state from. When adding the member you need to give it a "state_interface". {noformat} *CLI> help queue add member Usage: queue add member <dial string> to <queue> [[[penalty <penalty>] as <membername>] state_interface <interface>] Add a dial string (Such as a channel,e.g. SIP/6001) to a queue with optionally: a penalty, membername and a state_interface {noformat} Try something like the following: {noformat} *CLI> queue add member Agent/3550 to TestQueue penalty 10 as Agent/3550 state_interface PJSIP/3350 {noformat} Or if using the agent state: {noformat} *CLI> queue add member Agent/3550 to TestQueue penalty 10 as Agent/3550 state_interface Agent:3350 {noformat} By: Ryou, HyunSun (hsunryou) 2020-01-08 18:43:09.995-0600 localhost*CLI> queue add member Agent/3550 to TestQueue penalty 10 as Agent/3550 state_interface Agent:3550 Added interface 'Agent/3550' to queue 'TestQueue' localhost*CLI> queue show rules TestQueue 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 with penalty 10 (ringinuse disabled) (dynamic) (Not in use) has taken no calls yet No Callers It's work |