Propagate device state properly when agentlogoff command is issued

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5147 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-03-05 05:43:15 +00:00
parent d42e070073
commit a397a88192

View File

@@ -1363,6 +1363,7 @@ static int agent_logoff_cmd(int fd, int argc, char **argv)
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;