Skip to content
Snippets Groups Projects
Commit 478c8899 authored by Richard Mudgett's avatar Richard Mudgett
Browse files

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
parent 2904a198
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment