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

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jan 4 18:58:30 CST 2006


Author: kpfleming
Date: Wed Jan  4 18:58:29 2006
New Revision: 7809

URL: http://svn.digium.com/view/asterisk?rev=7809&view=rev
Log:
send device state updates for auto-logoff of agents as well

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=7809&r1=7808&r2=7809&view=diff
==============================================================================
--- branches/1.2/channels/chan_agent.c (original)
+++ branches/1.2/channels/chan_agent.c Wed Jan  4 18:58:29 2006
@@ -795,6 +795,7 @@
 				snprintf(agent, sizeof(agent), "Agent/%s", p->agent);
 				ast_queue_log("NONE", ast->uniqueid, agent, "AGENTCALLBACKLOGOFF", "%s|%ld|%s", p->loginchan, logintime, "Autologoff");
 				set_agentbycallerid(p->logincallerid, NULL);
+				ast_device_state_changed("Agent/%s", p->agent);
 				p->loginchan[0] = '\0';
 				p->logincallerid[0] = '\0';
 			}



More information about the asterisk-commits mailing list