Merged revisions 7809 via svnmerge from
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
This commit is contained in:
parent
1e9180d0a8
commit
2d4c002a2c
1 changed files with 1 additions and 0 deletions
|
@ -798,6 +798,7 @@ static int agent_hangup(struct ast_channel *ast)
|
||||||
snprintf(agent, sizeof(agent), "Agent/%s", p->agent);
|
snprintf(agent, sizeof(agent), "Agent/%s", p->agent);
|
||||||
ast_queue_log("NONE", ast->uniqueid, agent, "AGENTCALLBACKLOGOFF", "%s|%ld|%s", p->loginchan, logintime, "Autologoff");
|
ast_queue_log("NONE", ast->uniqueid, agent, "AGENTCALLBACKLOGOFF", "%s|%ld|%s", p->loginchan, logintime, "Autologoff");
|
||||||
set_agentbycallerid(p->logincallerid, NULL);
|
set_agentbycallerid(p->logincallerid, NULL);
|
||||||
|
ast_device_state_changed("Agent/%s", p->agent);
|
||||||
p->loginchan[0] = '\0';
|
p->loginchan[0] = '\0';
|
||||||
p->logincallerid[0] = '\0';
|
p->logincallerid[0] = '\0';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue