Merged revisions 7829 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 6 Jan 2006 00:23:19 +0000 (00:23 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 6 Jan 2006 00:23:19 +0000 (00:23 +0000)
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

channels/chan_agent.c

index f2859ed..d2fe2d9 100644 (file)
@@ -801,6 +801,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);