<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.11" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=james.fitzgibbon@gmail.com
href="mailto:james.fitzgibbon@gmail.com">James FitzGibbon</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=asterisk-users@lists.digium.com
href="mailto:asterisk-users@lists.digium.com">Asterisk Users Mailing List -
Non-Commercial Discussion</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, February 14, 2007 10:34
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [asterisk-users]
AgentCallBackLogin vs AddQueueMember</DIV>
<DIV><BR></DIV>On 2/13/07, <B class=gmail_sendername>gc</B> <<A
href="mailto:garych@unidial.com">garych@unidial.com</A>> wrote:
<DIV><SPAN class=gmail_quote></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial size=2>I am developing an ACD front end using
Asterisk 1.2.14. I heard that AgentCallBackLogin will be deprecated in
future version of *.</FONT></DIV>
<DIV><FONT face=Arial size=2>Is this true? If it is, how can I use
AddQueueMember to replace AgentCallBackLogin? I mean to login an agent in
multiple queues at once. I have multiple queues and a lot of agents defined
in queues.conf and agents.conf. Each agent may login more than one
queue. It seem that AgentCallBackLogin is much easier than
AddQueueMember to manage this kind of situation.
</FONT></DIV></DIV></BLOCKQUOTE>
<DIV><BR>The setup to use AddQueueMember isn't terribly
difficult.<BR><BR>Here's a contrived example where dialing *11[23]XX adds
channel SIP[23]XX to queue sales, and *21 with the same suffix removes
them. *12/*22 is for custserv and *13/*23 is for techsupp. There's
no authentication here, but that's not the difficult part of the exercise:
<BR><BR>exten => _*11[23]XX,1,AddQueueMember(sales,SIP/${EXTEN:3})<BR>exten
=> _*11[23]XX,n,Saydigits(${EXTEN:3})<BR>exten =>
_*11[23]XX,n,Hangup()<BR>exten =>
_*21[23]XX,1,RemoveQueueMember(sales,SIP/${EXTEN:3}) <BR>exten =>
_*21[23]XX,n,Saydigits(${EXTEN:3})<BR>exten =>
_*21[23]XX,n,Hangup()<BR><BR>exten =>
_*12[23]XX,1,AddQueueMember(custserv,SIP/${EXTEN:3})<BR>exten =>
_*12[23]XX,n,Saydigits(${EXTEN:3})<BR>exten => _*12[23]XX,n,Hangup()
<BR>exten =>
_*22[23]XX,1,RemoveQueueMember(custserv,SIP/${EXTEN:3})<BR>exten =>
_*22[23]XX,n,Saydigits(${EXTEN:3})<BR>exten =>
_*22[23]XX,n,Hangup()<BR><BR>exten =>
_*13[23]XX,1,AddQueueMember(techsupp,SIP/${EXTEN:3}) <BR>exten =>
_*13[23]XX,n,Saydigits(${EXTEN:3})<BR>exten =>
_*13[23]XX,n,Hangup()<BR>exten =>
_*23[23]XX,1,RemoveQueueMember(techsupp,SIP/${EXTEN:3})<BR>exten =>
_*23[23]XX,n,Saydigits(${EXTEN:3})<BR>exten => _*23[23]XX,n,Hangup()
<BR><BR>Then, calls to Queue(queuename) will work like AgentCallbackLogin()
do.<BR><BR>The problem I am having is that the channel that shows up in the
CDR and the queue log is the phone that took the call, not the agent on the
phone. It seems that I will have to establish a mapping between agents
and channels and remove down the mapping at agent logoff, then use the map to
determine which actual agent was on SIP/200 when the call came in in order to
produce meaningful per-agent reports. <BR><BR>Any suggestions on how to make
that part easier are welcome.<BR><BR></DIV></DIV>-- <BR>j.
<P>
<HR>
<P></P>_______________________________________________<BR>--Bandwidth and
Colocation provided by Easynews.com --<BR><BR>asterisk-users mailing
list<BR>To UNSUBSCRIBE or update options visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-users<BR></BLOCKQUOTE></BODY></HTML>