Merged revisions 7829 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7829 | kpfleming | 2006-01-05 18:21:00 -0600 (Thu, 05 Jan 2006) | 2 lines

update agent persistence when an agent gets logged off by autologoff

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7830 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming 2006-01-06 00:23:19 +00:00
parent f6bd113f02
commit 95b4988cf5

View file

@ -801,6 +801,8 @@ static int agent_hangup(struct ast_channel *ast)
ast_device_state_changed("Agent/%s", p->agent); ast_device_state_changed("Agent/%s", p->agent);
p->loginchan[0] = '\0'; p->loginchan[0] = '\0';
p->logincallerid[0] = '\0'; p->logincallerid[0] = '\0';
if (persistent_agents)
dump_agents();
} }
} else if (p->dead) { } else if (p->dead) {
ast_mutex_lock(&p->chan->lock); ast_mutex_lock(&p->chan->lock);