mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 11:58:40 +00:00
app_agent_pool: Fix AMI/CLI AgentLogoff soft preventing agents from logging back in.
* Clear the deferred_logoff flag when an agent logs in. (closes issue ASTERISK-22669) Reported by: John Bigelow ........ Merged revisions 400754 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400759 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2032,6 +2032,7 @@ static int agent_login_exec(struct ast_channel *chan, const char *data)
|
||||
agent->logged = ast_channel_ref(chan);
|
||||
agent->last_disconnect = ast_tvnow();
|
||||
time(&agent->login_start);
|
||||
agent->deferred_logoff = 0;
|
||||
agent_unlock(agent);
|
||||
|
||||
agent_login_channel_config(agent, chan);
|
||||
|
||||
Reference in New Issue
Block a user