[asterisk-commits] branch 1.2 r10137 - /branches/1.2/channels/chan_agent.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Feb 14 18:21:34 MST 2006


Author: kpfleming
Date: Tue Feb 14 19:21:33 2006
New Revision: 10137

URL: http://svn.digium.com/view/asterisk?rev=10137&view=rev
Log:
ensure that agents logged in via the manager interface are stored in the persistence database (related to issue #6301)

Modified:
    branches/1.2/channels/chan_agent.c

Modified: branches/1.2/channels/chan_agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_agent.c?rev=10137&r1=10136&r2=10137&view=diff
==============================================================================
--- branches/1.2/channels/chan_agent.c (original)
+++ branches/1.2/channels/chan_agent.c Tue Feb 14 19:21:33 2006
@@ -2207,6 +2207,8 @@
 		ast_device_state_changed("Agent/%s", p->agent);
 		ast_mutex_unlock(&p->lock);
 		p = p->next;
+		if (persistent_agents)
+			dump_agents();
 	}
 	ast_mutex_unlock(&agentlock);
 



More information about the asterisk-commits mailing list