[asterisk-users] Can an agent Login to a queue and be paused

Mariano Lecuona mlecuona at gmail.com
Mon Feb 8 08:20:23 CST 2010


What Id did was on the dialplan, create an specifica extension for login
agents. Lets say Agent/10017, then
When dial 2110017 the agents is promts for Agent passwd.Then I have a macro
only for pausing agents depending on the meaning.
So if the agent is successfully granted on the Login Context, that same
context goto pause macro.
Quick example:

[queues_logon]
; Agent Login Procedure
exten => _211XXXX,1,Answer()
exten => _211XXXX,n,NoCDR()
exten => _211XXXX,n,GotoIf($[${LEN(${AGENTBYCALLERID_${CALLERID(number)}})}
> 1 ]?4:5)  ; Check that the physical extension is free
exten => _211XXXX,n,AgentCallbackLogin(${EXTEN:2},,${CALLERID(number)})  ;
Ask for agent password and log the agent on
exten => _211XXXX,n,Macro(agent_pause_reason,${EXTEN:2},30)  ; Put Agents
into Initial Paused State on the Queue
exten => _211XXXX,n,Hangup()

[macro-agent_pause]
;  ${ARG1} - Agent_nro

exten => s,1,PauseQueueMember(|Agent/${ARG1})
exten => s,n,MacroExit

2010/2/8 Lenz Emilitri <lenz.loway at gmail.com>

> I'm not sure if this works for newer versions of Asterisk, but on old ones,
> you could pause an agent and THEN log him on, and he'd be paused.
> l.
>
>
> 2010/2/4 Robert Grignon <rgrignon at fleetone.com>
>
>>
>> I thought there was an option for this but cant find it....
>>
>> We have a busy callcenter and I would like the agents to log in and be
>> in a paused state upon login... Right now they login and they are
>> instantly receiving a call....
>>
>> Thanks for the input...
>>
>
> --
> Loway - home of QueueMetrics - http://queuemetrics.com
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100208/166f3706/attachment-0001.htm 


More information about the asterisk-users mailing list