[svn-commits] branch 1.2 - r7829 /branches/1.2/channels/chan_agent.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Thu Jan 5 18:21:01 CST 2006


Author: kpfleming
Date: Thu Jan  5 18:21:00 2006
New Revision: 7829

URL: http://svn.digium.com/view/asterisk?rev=7829&view=rev
Log:
update agent persistence when an agent gets logged off by autologoff

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=7829&r1=7828&r2=7829&view=diff
==============================================================================
--- branches/1.2/channels/chan_agent.c (original)
+++ branches/1.2/channels/chan_agent.c Thu Jan  5 18:21:00 2006
@@ -798,6 +798,8 @@
 				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);



More information about the svn-commits mailing list