mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-16 09:52:24 +00:00
update agent persistence when an agent gets logged off by autologoff
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7829 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -798,6 +798,8 @@ static int agent_hangup(struct ast_channel *ast)
|
||||
ast_device_state_changed("Agent/%s", p->agent);
|
||||
p->loginchan[0] = '\0';
|
||||
p->logincallerid[0] = '\0';
|
||||
if (persistent_agents)
|
||||
dump_agents();
|
||||
}
|
||||
} else if (p->dead) {
|
||||
ast_mutex_lock(&p->chan->lock);
|
||||
|
Reference in New Issue
Block a user