[Asterisk-Users] Call Queues

B. J. Bomar bbomar at raccoon.com
Thu Feb 12 11:43:58 MST 2004


Here is some config that I cooked up.  It may be a little rough around the
edges, and it incorporates multiple users.
 
exten => *801,1,Answer
exten => *801,2,SetVar(temp=${loggedin${CALLERIDNUM}})
exten => *801,3,GotoIf($[${temp} = 1]?50:)
exten => *801,4,GotoIf($[${CALLERIDNUM} = 11]?11)
exten => *801,5,GotoIf($[${CALLERIDNUM} = 12]?12)
exten => *801,6,GotoIf($[${CALLERIDNUM} = 13]?13)
exten => *801,7,GotoIf($[${CALLERIDNUM} = 15]?15)
exten => *801,8,Playback(beep)
exten => *801,9,Hangup
exten => *801,11,Goto(bjqueue,1,1)
exten => *801,12,Goto(tonyqueue,1,1)
exten => *801,13,Goto(wendyqueue,1,1)
exten => *801,15,Goto(danqueue,1,1)
 
exten => *801,50,GotoIf($[${CALLERIDNUM} = 11]?61)
exten => *801,51,GotoIf($[${CALLERIDNUM} = 12]?62)
exten => *801,52,GotoIf($[${CALLERIDNUM} = 13]?63)
exten => *801,53,GotoIf($[${CALLERIDNUM} = 15]?65)
exten => *801,54,Playback(beep)
exten => *801,55,Hangup
exten => *801,61,Goto(bjqueue,2,1)
exten => *801,62,Goto(tonyqueue,2,1)
exten => *801,63,Goto(wendyqueue,2,1)
exten => *801,65,Goto(danqueue,2,1)
 
[bjqueue]
exten => 1,1,Answer
exten => 1,2,Wait(1)
exten => 1,3,Playback(agent-loginok)
exten => 1,4,SetGlobalVar(loggedin11=1)
exten => 1,5,AddQueueMember(tech,SIP/111)
exten => 1,6,Hangup
 
exten => 2,1,Answer
exten => 2,2,Wait(1)
exten => 2,3,Playback(agent-loggedoff)
exten => 2,4,SetGlobalVar(loggedin11=0)
exten => 2,5,RemoveQueueMember(tech,SIP/111)
exten => 2,6,Hangup

 
The other users are setup pretty much the same as bjqueue.   I hope this
helps.
 
B. J.
 
 
 
 


-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Jonathan Stanton
@ Home
Sent: Monday, February 09, 2004 18:28
To: Asterisk-Users at lists.digium.com
Subject: [Asterisk-Users] Call Queues


Dear all,
I am one of the people who answer the FWD welcome line.  Since I don't want
my phone ringing at 2am I have the 55555 number routed to a call queue.
Currently I have 2 extentions 271 which will log my phone into the queue and
270 to log it out.  What I want to know is... Is there a way to do this with
just one exten?  I have tried with the following :
 
exten => 270,1,AddQueueMember(pulverWelcome)
exten => 270,2,AGI(cepstral.agi,You have just joined the Welcome queue)
exten => 270,3,Hangup
exten => 270,102,RemoveQueueMember(pulverWelcome)
exten => 270,103,AGI(cepstral.agi,You have just left the Welcome queue)
exten => 270,104,Hangup

It works when I log in but when I try to log out it crashes (403 error).  I
know that the AddQueueMember returns -1, so why does it not jump to priority
102 instead?
 
Any ideas / sugestions welcome.
 
 
Jonathan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040212/74c352e2/attachment.htm


More information about the asterisk-users mailing list