<br><br><div class="gmail_quote">2009/3/27 Mr. James W. Laferriere <span dir="ltr"><<a href="mailto:babydr@baby-dragons.com">babydr@baby-dragons.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Mark & Miquel ,<br>
<div><div></div><div class="h5"><br>
On Thu, 26 Mar 2009, Mark Michelson wrote:<br>
> Miguel Molina wrote:<br>
>> 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>
> There is a CLI command "agent show" which will list all agents. This output will<br>
> show the agent's number, name, whether he/she is logged in, and moh class.<br>
> Similarly, there is a command "agent show online" which will only list logged-in<br>
> agents.<br>
> Mark Michelson<br>
<br>
</div></div> There does not seem to be a 'agent' command in 1.4.2x .<br>
<br>
asterisk-2*CLI> core show version<br>
Asterisk 1.4.21.2 built by root @ asterisk-2 on a i686 running Linux on<br>
2009-01-07 05:57:09 UTC<br>
<br>
asterisk-2*CLI> agent<br>
No such command 'agent' (type 'help agent' for other possible commands)<br>
<br>
And he mentions 1.4.22 . Now unless I've misconfigured my compile of<br>
1.4 then ...<br>
Hopefully there is a differant command ?<br>
<br>
Tia , JimL<br>
<font color="#888888">--<br></font></blockquote><div><br><br>I would like to find a way to do it in asteris 1.2 'show agents' do not show me all agents, i have 30 agents connected to a queue and show agents show me 6 and they are offline. So is there any way to know how many agents are logged in ? <br>
</div></div><br>