<div dir="ltr"><div><div><div>Hi,<br><br></div>I am upgrading from Asterisk 1.4 to 12.4. I am able to authenticate the user and call AgentLogin. But after that when I call AgentRequest I keep getting Agent '1234' is busy.<br>
</div>If I put a delay of 5 second or more before calling AgentRequest then it works most of the times. Here's my dialplan:<br><br></div>[login]<br><div>exten => s,1,Background(thank-you-for-calling)<br> same => n,WaitExten(.65)<br>
same => n,Background(press-1)<br> same => n,WaitExten(15)<br>exten => 1,1,Read(USER,"agent-user")<br> same => n,Authenticate(${ODBC_AGENTPASSWORD(${USER})})<br> same => n,AgentLogin(${USER})<br>
same => n,NoOp(${USER} AGENT_STATUS is ${AGENT_STATUS})<br> same => n,Hangup()<br><br>[agents]<br>exten => _X.,1,Set(UserNumber=${EXTEN})<br> same => n,Wait(5) ; it works most of the time with this wait of 5s<br>
same => n,AgentRequest(${EXTEN})<br> same => n,NoOp(${EXTEN} AGENT_STATUS is ${AGENT_STATUS})<br> same => n,Dial(Agent/${EXTEN},,g)<br> same => n,NoOp(Dial Status: ${DIALSTATUS})<br>
same => n,GotoIf($["${DIALSTATUS}" != "ANSWER"]?done)<br> same => n(done),Hangup()<br><br></div></div>