From 6ec280adfc63456f0698bdd6346276a359b867ae Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Thu, 16 Aug 2007 21:16:40 +0000 Subject: [PATCH] Fixes a problem where agents would get stuck busy due to their wrapuptime being longer than the queue's wrapuptime and ringinuse=no for the queue. (closes issue #10215, reported by Doug, repaired by me) Special thanks to fkasumovic for pointing out the source of the problem and to bweschke for helping to come up with a solution! git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@79748 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_agent.c | 1 + 1 file changed, 1 insertion(+) diff --git a/channels/chan_agent.c b/channels/chan_agent.c index 04314a514a..7f1d1cb7c6 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -2090,6 +2090,7 @@ static int __login_exec(struct ast_channel *chan, void *data, int callbackmode) if (option_debug) ast_log(LOG_DEBUG, "Wrapup time for %s expired!\n", p->agent); p->lastdisc = ast_tv(0, 0); + ast_device_state_changed("Agent/%s", p->agent); if (p->ackcall > 1) check_beep(p, 0); else