<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 7, 2015 at 10:06 AM, Shahid H <span dir="ltr"><<a href="mailto:shahidh@gmail.com" target="_blank">shahidh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8000001907349px">Hi,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">If agents is already logged in via AgentLogin() and users dialled extension 300 which will be placed in Queue(support-queue).</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">How to find out which agent is available I can put their Agent id in AgentRequest() ?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">If this is not a good approach then how it should be done?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Agent should automatically get next call when he/she is available. </div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">extensions.conf</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div>[LocalSets]</div><div>exten => 300,1,Answer()</div><div>same => n,Queue(support-queue)</div><div>same => n,hangup</div><div><br></div><div><br></div><div>[<span style="font-size:12.8000001907349px">agents</span>] ;callback</div><div>exten => 800,1,AgentRequest(????) ; How to get Agent id that is available to take call? </div></div></div></blockquote><div><br></div><div>Replace above line with the following line if your agent-ids are 4 digit numeric:<br></div><div>exten => _XXXX,1,AgentRequest(${EXTEN})<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8000001907349px"><div>same => n,NoOp(AGENT_STATUS is ${AGENT_STATUS})</div><div>same => n,Playback(silence/1)</div><div>same => n,Hangup()</div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Example in the queue.conf <br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div>member => Local/800@agents,0,Name 1,Agent:1001 </div></div></div></blockquote><div><br></div><div>Replace the above line for agent 1001 with the following:<br></div><div>member => Local/1001@agents,0,Name,1,Agent:1001<br><br></div><div>For other agents follow the similar pattern:<br></div><div>member => Local/<agent-id>@agents,0,Name,1,Agent:<agent-id><br><br></div><div>Richard<br></div></div><br></div></div>