<p>You could store the "who is who" information in Asterisk, so you know thatSIP/123 is Agent/301 before logging the agent - see e.g. <a href="http://queuemetrics.com/faq.jsp#faq-038-agent_tracking">http://queuemetrics.com/faq.jsp#faq-038-agent_tracking</a></p>
<p>Thanks</p><p>l.</p><p><br></p><br><div class="gmail_quote">2009/3/27 Miguel Molina <span dir="ltr"><<a href="mailto:mmolina@millenium.com.co">mmolina@millenium.com.co</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
For those of you people that use Agents (with Agentlogin, not<br>
AgentCallbackLogin) on a call center, I have this need: when the agent<br>
logs in, a channel keeps running all the time that the agent is logged<br>
in to receive the incoming calls. How do I know which agent logged in<br>
(code)? Right now, if I query the login channel, there is no information<br>
about which agent is logged on:<br>
<br>
# asterisk -rx "show channel SIP/303-b2f1c368"<br>
-- General --<br>
Name: SIP/303-b2f1c368<br>
Type: SIP<br>
UniqueID: 1238094839.425549<br>
Caller ID: 303<br>
Caller ID Name: Ext. 303<br>
DNID Digits: 7700<br>
State: Up (6)<br>
Rings: 0<br>
NativeFormats: 0x2 (gsm)<br>
WriteFormat: 0x2 (gsm)<br>
ReadFormat: 0x2 (gsm)<br>
WriteTranscode: No<br>
ReadTranscode: No<br>
1st File Descriptor: 111<br>
Frames in: 6199<br>
Frames out: 4847<br>
Time to Hangup: 0<br>
Elapsed Time: 3h29m16s<br>
Direct Bridge: <none><br>
Indirect Bridge: <none><br>
-- PBX --<br>
Context: XXXXXXXXXXX<br>
Extension: XXXXX<br>
Priority: XXXXXX<br>
Call Group: 0<br>
Pickup Group: 0<br>
Application: AgentLogin<br>
Data: (Empty)<br>
Blocking in: ast_waitfor_nandfds<br>
Variables:<br>
AVAILSTATUS=0<br>
AVAILORIGCHAN=SIP/303<br>
AVAILCHAN=SIP/303-0949f890<br>
SIPCALLID=Y2MzOTc0NmExYjVkNDNjMzhhY2I1MDMwNTk0NTJkYzQ.<br>
SIPUSERAGENT=X-Lite release 1100l stamp 47546<br>
SIPDOMAIN=XXXXXXXXX<br>
SIPURI=sip:303@XXXXXXXXXXXXXXXXX<br>
<br>
CDR Variables:<br>
level 1: clid="Ext. 303" <303><br>
level 1: src=303<br>
level 1: dst=XXXXXXXXXX<br>
level 1: dcontext=XXXXXXXXXXX<br>
level 1: channel=SIP/303-b2f1c368<br>
level 1: lastapp=AgentLogin<br>
level 1: start=2009-03-26 14:13:59<br>
level 1: answer=2009-03-26 14:13:59<br>
level 1: duration=0<br>
level 1: billsec=0<br>
level 1: disposition=ANSWERED<br>
level 1: amaflags=DOCUMENTATION<br>
level 1: uniqueid=1238094839.425549<br>
<br>
Is there an option for Agentlogin() to set a channel variable on the<br>
login channel that contains the code of the agent that successfully<br>
logged in? If not, would this be hard to accomplish by tweaking the<br>
chan_agent.c code to do that? It would be a really nice feature. I'm<br>
using asterisk 1.4.22.<br>
<br>
Thanks for any clue on this,<br>
<br>
--<br>
Ing. Miguel Molina<br>
Grupo de Tecnología<br>
Millenium Phone Center<br>
PBX: (+57 1)6500800 ext. 1201<br>
Fax: (+57 1)6500816<br>
Móvil: (+57)3138873587<br>
<br>
<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><br clear="all"><br>-- <br>Loway - home of QueueMetrics - <a href="http://queuemetrics.com">http://queuemetrics.com</a><br><br>