Merged revisions 7809 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 5 Jan 2006 00:58:48 +0000 (00:58 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 5 Jan 2006 00:58:48 +0000 (00:58 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r7809 | kpfleming | 2006-01-04 18:58:29 -0600 (Wed, 04 Jan 2006) | 2 lines

send device state updates for auto-logoff of agents as well

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7810 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index 4008fcb..f2859ed 100644 (file)
@@ -798,6 +798,7 @@ static int agent_hangup(struct ast_channel *ast)
                                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';
                        }