<div>The main problem i see with thgis is that with &quot;old-school&quot; agents, you could easily have association with multiple queues. And that was quite useful.<br></div><div>l.<br></div><div></div><div class="gmail_quote">
2009/5/16 David Anthony O Reilly <span dir="ltr">&lt;<a href="mailto:oreillda@tcd.ie">oreillda@tcd.ie</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Jim<br><br>Thanks for your code!! I see you use the Voicemail system to authenticate, have you ever managed to avoid that as I don&#39;t use voicemail at all and I am thinking if I use that solution I will need to set up a voicemail for all the queue members just to get them to log in.<br>

<br>hehe What were the developers thinking by removing the old system! It worked perfect!! and by the looks of it nobody has ever recovered from the command removal unless they hack around with the voicemail system.<br><br>

Hopefully somebody out there has managed to create an agent login/logout without bringing voicemail into it???? If I find a way I will let you and post a wiki on it as I am sure loads of people have this problem.<br><br>

Thanks<br>Dave<br><br><br>
; #### Agent login logout ####<br>
exten =&gt; *20,1,Answer()<br>
exten =&gt; *20,n,wait(.0.5)<br>
exten =&gt; *20,n,Read(AgentNumber,agent-<div>user)<br>
exten =&gt; *20,n,Set(UserID=${DB(ExtenToUser/${AgentNumber})})<br>
exten =&gt; *20,n,GotoIf($[&quot;${UserID}&quot;=&quot;&quot;]?NOUSER)<br>
exten =&gt; *20,n,Set(AgentStatus=${DB(users/${UserID}/AgentStatus)})<br>
exten =&gt; *20,n,GotoIf($[&quot;${AgentStatus}&quot;=&quot;1&quot;]?VERIFY)<br>
exten =&gt; *20,n,GotoIf($[&quot;${AgentStatus}&quot;=&quot;2&quot;]?VERIFY)<br>
exten =&gt; *20,n(NOUSER),Playback(cfmc/bad-agent)<br>
exten =&gt; *20,n,Playback(vm-goodbye)<br>
exten =&gt; *20,n,Hangup()<br>
exten =&gt; *20,n(VERIFY),VMAuthenticate(${AgentNumber}@ourvm)<br>
exten =&gt; *20,n,GotoIf($[&quot;${AgentStatus}&quot;=&quot;2&quot;]?AGENTOFF)<br>
exten =&gt; *20,n,Set(DB(users/${UserID}/AgentStatus)=2)<br>
exten =&gt; *20,n,Set(DB(users/${UserID}/AgentDevice)=${CUT(CHANNEL,-,1)})<br>
exten =&gt;<br>
*20,n,AddQueueMember(support,Local/Queue${AgentNumber}@ansqueue,,,,${CUT(CHA<br>
NNEL,-,1)})<br>
;   AQMSTATUS can be  ADDED | MEMBERALREADY | NOSUCHQUEUE<br>
exten =&gt; *20,n,Playback(agent-loginok)<br>
exten =&gt; *20,n,Verbose(2,Agent ${AgentNumber} added<br>
${DB(users/${UserID}/AgentDevice)})<br>
exten =&gt; *20,n,HangUp()<br>
exten =&gt; *20,n(AGENTOFF),Set(DB(users/${UserID}/AgentStatus)=1)<br>
exten =&gt; *20,n,Set(OldVal=${DB_DELETE(users/${UserID}/AgentDevice)})<br>
exten =&gt; *20,n,RemoveQueueMember(support,Local/Queue${AgentNumber}@ansqueue)<br>
exten =&gt; *20,n,Playback(agent-loggedoff)<br>
exten =&gt; *20,n,Verbose(2,Agent ${AgentNumber} removed)<br>
exten =&gt; *20,n,Hangup()&quot;</div><div><div class="h5"><br clear="all"><br>-- <br>_________________________________________<br><br>Mr. David Anthony O&#39;Reilly, B.Sc Comp (Hons)<br><br>M.Sc MOB Postgraduate @ University College Cork, Ireland - M.Sc (Mob) - 2009<br>

<br>Computer Science Graduate of The University of Dublin, Trinity College - B.Sc (Comp) 2008<br><br>Email: <a href="mailto:oreillda@tcd.ie" target="_blank">oreillda@tcd.ie</a>    /    <a href="mailto:dor3@student.cs.ucc.ie" target="_blank">dor3@student.cs.ucc.ie</a><br>

Tel: +353 (0) 86 030 60 32<br>_________________________________________<br>
</div></div><br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><div><br clear="all"></div><div><br></div><div>-- <br>
</div><div>Loway - home of QueueMetrics - <a href="http://queuemetrics.com">http://queuemetrics.com</a><br><br></div>