Merged revisions 10137 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 15 Feb 2006 01:22:54 +0000 (01:22 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 15 Feb 2006 01:22:54 +0000 (01:22 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r10137 | kpfleming | 2006-02-14 19:21:33 -0600 (Tue, 14 Feb 2006) | 2 lines

ensure that agents logged in via the manager interface are stored in the persistence database (related to issue #6301)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10138 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index d1213a5..71a10f0 100644 (file)
@@ -2193,6 +2193,8 @@ static int action_agent_callback_login(struct mansession *s, struct message *m)
                        ast_verbose(VERBOSE_PREFIX_2 "Callback Agent '%s' logged in on %s\n", p->agent, p->loginchan);
                ast_device_state_changed("Agent/%s", p->agent);
                ast_mutex_unlock(&p->lock);
+               if (persistent_agents)
+                       dump_agents();
        }
        AST_LIST_UNLOCK(&agents);