[Asterisk-Users] Re: (Un)PauseQeueMamber usage

BJ Weschke bweschke at gmail.com
Sun Jan 29 04:52:58 MST 2006


On 1/28/06, Joe <jrothstein at comcentrixs.com> wrote:
> Thanks for the reply BJ. Your example makes sense for out-bound traffic, but
> what about calls transferred from a queue to an agent?
>
> I plan on setting up agent extensions (if possible via macro) something like
> this for example:
>
> exten => 1234,1,PauseQueueMember (|Agent/101)
> exten => 1234,2,Dial(Agent/101,tg)
> exten => 1234,3,UnPauseQueueMemeber(|Agent/101)
> exten => 1234,4,Hangup()
>
> Agents will login using AgentCallBackLogin. In the example above, Agent 101
> will login from extension 1234. This would work well if Agent 101 was always
> sitting at the phone with extension 1234. This will more than likely not be
> the case.
>
> Is this what I need:
>
> exten => 1234,1,PauseQueueMember(|Agent/${AGENTBYCALLERID_${CALLERIDNUM}})
> exten => 1234,2,Dial(Agent/${AGENTBYCALLERID_${CALLERIDNUM}},tg)
> exten =>
> 1234,3,UnPauseQueueMemeber(|Agent/${AGENTBYCALLERID_${CALLERIDNUM}})
> exten => 1234,4,Hangup()
>
> Not sure if this is the proper use of this variable or not.
>

 Joe -

 Yes, you're close. You may want to use
Agent/${$[AGENTBYCALLERID_${CALLERID(num)}]}) instead to be compliant
with the new CALLERID dial plan function in 1.2+.

--
Bird's The Word Technologies, Inc.
http://www.btwtech.com/



More information about the asterisk-users mailing list