[Asterisk-Users] Call Queue Question

Michael Wareman mwareman at gmail.com
Mon Jan 3 18:51:34 MST 2005


Thanks to both of you - both offer some ideas but are not quite what I
was after..

I have been messing around - and found the page about forking in the
dialplan (http://www.voip-info.org/wiki-Asterisk+tips+forking) - and
that got me thinking...

I have come up with this:-


////    extensions.conf    ////
[find_me]
;First - save the callerid, set music on hold, then fork to login
agents and join the queue..
exten => 1,1,playback(pls-wait-connect-call)
exten => 1,2,Setvar(NewCaller=${CALLERIDNUM})
exten => 1,3,SetCIDNum(0${CALLERIDNUM})
exten => 1,4,SetMusicOnHold(default)
exten => 1,5,Dial(Local/2 at find_me&Local/10 at find_me&Local/11 at find_me)
;This is where the first extension of the dial above ends up...
exten => 2,1,Answer
exten => 2,2,Wait(2)
exten => 2,3,Queue(find_michael_q|tn)
exten => 2,4,Goto(find_me,3,1)
;This sets the caller id back, and sends the call to voicemail..  If
the queue times out or nobody answers the queue..
exten => 3,1,SetCIDNum(${NewCaller})
exten => 3,2,Voicemail(s099)
;Here are the AgentCallBackLogin commands in the referanced by the
dial string above..  they get 'Zoombied' by the fork..
exten => 10,1,AgentCallbackLogin(1|1 at agent_outbound)
exten => 11,1,AgentCallbackLogin(2|2 at agent_outbound)

[agent_outbound]
exten => 1,1,Dial(IAX2/username at NuFone/12125551212,60,r)
exten => 2,1,Dial(IAX2/username at NuFone/13125551212,60,r)

////    agents.conf    ////
[agents]
ackcall=yes
musiconhold => default
agent => 1,,Mobile
agent => 2,,Work

////    queues.conf    ////
[general]
[find_michael_q]
timeout = 30
retry = 60
music = default
ackcall = yes
member => Agent/1
member => Agent/2
strategy = ringall
maxlen = 0


This seems to work for what I need....  does anyone see anything
inherintly wrong with this as a solution?



More information about the asterisk-users mailing list