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'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 => *20,1,Answer()<br>
exten => *20,n,wait(.0.5)<br>
exten => *20,n,Read(AgentNumber,agent-<div id=":163" class="ii gt">user)<br>
exten => *20,n,Set(UserID=${DB(ExtenToUser/${AgentNumber})})<br>
exten => *20,n,GotoIf($["${UserID}"=""]?NOUSER)<br>
exten => *20,n,Set(AgentStatus=${DB(users/${UserID}/AgentStatus)})<br>
exten => *20,n,GotoIf($["${AgentStatus}"="1"]?VERIFY)<br>
exten => *20,n,GotoIf($["${AgentStatus}"="2"]?VERIFY)<br>
exten => *20,n(NOUSER),Playback(cfmc/bad-agent)<br>
exten => *20,n,Playback(vm-goodbye)<br>
exten => *20,n,Hangup()<br>
exten => *20,n(VERIFY),VMAuthenticate(${AgentNumber}@ourvm)<br>
exten => *20,n,GotoIf($["${AgentStatus}"="2"]?AGENTOFF)<br>
exten => *20,n,Set(DB(users/${UserID}/AgentStatus)=2)<br>
exten => *20,n,Set(DB(users/${UserID}/AgentDevice)=${CUT(CHANNEL,-,1)})<br>
exten =><br>
*20,n,AddQueueMember(support,Local/Queue${AgentNumber}@ansqueue,,,,${CUT(CHA<br>
NNEL,-,1)})<br>
; AQMSTATUS can be ADDED | MEMBERALREADY | NOSUCHQUEUE<br>
exten => *20,n,Playback(agent-loginok)<br>
exten => *20,n,Verbose(2,Agent ${AgentNumber} added<br>
${DB(users/${UserID}/AgentDevice)})<br>
exten => *20,n,HangUp()<br>
exten => *20,n(AGENTOFF),Set(DB(users/${UserID}/AgentStatus)=1)<br>
exten => *20,n,Set(OldVal=${DB_DELETE(users/${UserID}/AgentDevice)})<br>
exten => *20,n,RemoveQueueMember(support,Local/Queue${AgentNumber}@ansqueue)<br>
exten => *20,n,Playback(agent-loggedoff)<br>
exten => *20,n,Verbose(2,Agent ${AgentNumber} removed)<br>
exten => *20,n,Hangup()"</div><br clear="all"><br>-- <br>_________________________________________<br><br>Mr. David Anthony O'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">oreillda@tcd.ie</a> / <a href="mailto:dor3@student.cs.ucc.ie">dor3@student.cs.ucc.ie</a><br>
Tel: +353 (0) 86 030 60 32<br>_________________________________________<br>