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:
Kevin P. Fleming
2006-01-06 00:21:00 +00:00
parent 7a61b36104
commit 2fd6520a7e

View File

@@ -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);