Skip to content
Snippets Groups Projects
Commit 95b4988c authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

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
parent f6bd113f
No related merge requests found
...@@ -801,6 +801,8 @@ static int agent_hangup(struct ast_channel *ast) ...@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment