[Asterisk-cvs] asterisk/channels chan_agent.c,1.124,1.125

markster at lists.digium.com markster at lists.digium.com
Fri Mar 4 23:46:12 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv23954/channels

Modified Files:
	chan_agent.c 
Log Message:
Propagate device state properly when agentlogoff command is issued


Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.124
retrieving revision 1.125
diff -u -d -r1.124 -r1.125
--- chan_agent.c	5 Mar 2005 04:17:13 -0000	1.124
+++ chan_agent.c	5 Mar 2005 05:43:15 -0000	1.125
@@ -1363,6 +1363,7 @@
 			ast_queue_log("NONE", "NONE", agent, "AGENTCALLBACKLOGOFF", "%s|%ld|%s", p->loginchan, logintime, "CommandLogoff");
 			p->loginchan[0] = '\0';
 			ast_cli(fd, "Logging out %s\n", agent);
+			ast_device_state_changed("Agent/%s", p->agent);
 			if (persistent_agents)
 				dump_agents();
 			break;




More information about the svn-commits mailing list