[asterisk-bugs] [JIRA] (ASTERISK-23259) Local channel agent is unavailable for 5 seconds after login
Richard Mudgett (JIRA)
noreply at issues.asterisk.org
Fri Feb 7 10:53:03 CST 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-23259?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=214970#comment-214970 ]
Richard Mudgett commented on ASTERISK-23259:
--------------------------------------------
Relevant code in app_agent_pool.c:bridge_agent_hold_push():
{code}
case AGENT_STATE_LOGGED_OUT:
/*!
* \todo XXX the login probation time should be only if it is needed.
*
* Need to determine if there are any local channels that can
* optimize and wait until they actually do before leaving the
* AGENT_STATE_PROBATION_WAIT state. For now, the blind
* timer of LOGIN_WAIT_TIMEOUT_TIME will do.
*/
/*
* Start the login probation timer.
*
* We cannot handle an agent local channel optimization when the
* agent is on a call. The optimization may kick the agent
* channel we know about out of the call without our being able
* to switch to the replacement channel. Get any agent local
* channel optimization out of the way while the agent is in the
* holding bridge.
*/
time(&agent->probation_start);
agent->state = AGENT_STATE_PROBATION_WAIT;
agent_unlock(agent);
break;
{code}
> Local channel agent is unavailable for 5 seconds after login
> ------------------------------------------------------------
>
> Key: ASTERISK-23259
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-23259
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Affects Versions: 12.0.0
> Reporter: Benjamin Keith Ford
>
> When an agent logs in, that agent is unavailable for 5 seconds directly afterwards. This causes AgentRequest() to see the agent's state as 'Busy'.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list