Summary:ASTERISK-05221: Wrapup time not working properly
Reporter:nrb (nrb)Labels:
Date Opened:2005-10-03 10:08:28Date Closed:2005-10-05 17:34:14
Versions:Frequency of
Environment:Attachments:( 0) chan_agent.diff
Description:When using agentcallbacklogin, wrapuptime only works when the agent hangs up. If the last call was hung up by the caller, or transferred by the agent, the next call instantly is passed to the agent.


also testet with cvs head (october 1.)
Comments:By: BJ Weschke (bweschke) 2005-10-05 11:15:07

Are you referring to wrapuptime functionality as defined in agents.conf or queues.conf?

By: nrb (nrb) 2005-10-05 12:16:12

Individual wrapuptime set in agents.conf with no wrapuptime set in queues.conf

By: BJ Weschke (bweschke) 2005-10-05 15:14:46

Same problem as 5254. Same patch applies.

If p->lastdisc is getting set within agent_hangup, the acknowledged flag has already been set to 0 at the beginning of the function so we must not look at that value to determine whether or not the wrapuptime should be incremented onto p->lastdisc. patch attached against current HEAD.