[asterisk-bugs] [JIRA] (ASTERISK-28681) Agent can login queue, but this queue member status is "Invalid"

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Wed Jan 8 11:43:25 CST 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249300#comment-249300 ] 

Kevin Harwell commented on ASTERISK-28681:
------------------------------------------

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}

> Agent can login queue, but this queue member status is "Invalid"
> ----------------------------------------------------------------
>
>                 Key: ASTERISK-28681
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28681
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_queue
>    Affects Versions: 16.6.1
>         Environment: Cent OS 8 + pjsip module
>            Reporter: Ryou, HyunSun
>            Severity: Minor
>
> 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 at PDSLogin:1] NoOp("PJSIP/PBX-00000001", "--PDS2.0--") in new stack
>     -- Executing [3550 at PDSLogin:2] Set("PJSIP/PBX-00000001", "AGENT=3550") in new stack
>     -- Executing [3550 at PDSLogin:3] UserEvent("PJSIP/PBX-00000001", "UserPdsStart,exten: ") in new stack
>     -- Executing [3550 at 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 at 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".



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list