<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff size=2>Here
is some config that I cooked up. It may be a little rough around the
edges, and it incorporates multiple users.</FONT></SPAN></DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff size=2>exten
=> *801,1,Answer<BR>exten =>
*801,2,SetVar(temp=${loggedin${CALLERIDNUM}})<BR>exten =>
*801,3,GotoIf($[${temp} = 1]?50:)<BR>exten => *801,4,GotoIf($[${CALLERIDNUM}
= 11]?11)<BR>exten => *801,5,GotoIf($[${CALLERIDNUM} = 12]?12)<BR>exten =>
*801,6,GotoIf($[${CALLERIDNUM} = 13]?13)<BR>exten =>
*801,7,GotoIf($[${CALLERIDNUM} = 15]?15)<BR>exten =>
*801,8,Playback(beep)<BR>exten => *801,9,Hangup<BR>exten =>
*801,11,Goto(bjqueue,1,1)<BR>exten => *801,12,Goto(tonyqueue,1,1)<BR>exten
=> *801,13,Goto(wendyqueue,1,1)<BR>exten =>
*801,15,Goto(danqueue,1,1)</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff size=2>exten
=> *801,50,GotoIf($[${CALLERIDNUM} = 11]?61)<BR>exten =>
*801,51,GotoIf($[${CALLERIDNUM} = 12]?62)<BR>exten =>
*801,52,GotoIf($[${CALLERIDNUM} = 13]?63)<BR>exten =>
*801,53,GotoIf($[${CALLERIDNUM} = 15]?65)<BR>exten =>
*801,54,Playback(beep)<BR>exten => *801,55,Hangup<BR>exten =>
*801,61,Goto(bjqueue,2,1)<BR>exten => *801,62,Goto(tonyqueue,2,1)<BR>exten
=> *801,63,Goto(wendyqueue,2,1)<BR>exten =>
*801,65,Goto(danqueue,2,1)</FONT></SPAN></DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff
size=2>[bjqueue]<BR>exten => 1,1,Answer<BR>exten => 1,2,Wait(1)<BR>exten
=> 1,3,Playback(agent-loginok)<BR>exten =>
1,4,SetGlobalVar(loggedin11=1)<BR>exten =>
1,5,AddQueueMember(tech,SIP/111)<BR>exten => 1,6,Hangup</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff size=2>exten
=> 2,1,Answer<BR>exten => 2,2,Wait(1)<BR>exten =>
2,3,Playback(agent-loggedoff)<BR>exten =>
2,4,SetGlobalVar(loggedin11=0)<BR>exten =>
2,5,RemoveQueueMember(tech,SIP/111)<BR>exten =>
2,6,Hangup<BR></FONT></SPAN></DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff size=2>The
other users are setup pretty much the same as bjqueue. I hope this
helps.</FONT></SPAN></DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff size=2>B.
J.</FONT></SPAN></DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=498163718-12022004><FONT face=Arial color=#0000ff
size=2> </DIV>
<DIV><BR></DIV></FONT></SPAN>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
asterisk-users-admin@lists.digium.com
[mailto:asterisk-users-admin@lists.digium.com] <B>On Behalf Of </B>Jonathan
Stanton @ Home<BR><B>Sent:</B> Monday, February 09, 2004 18:28<BR><B>To:</B>
Asterisk-Users@lists.digium.com<BR><B>Subject:</B> [Asterisk-Users] Call
Queues<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Dear all,</FONT></DIV>
<DIV><FONT face=Arial size=2>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 :</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten =>
270,1,AddQueueMember(pulverWelcome)<BR>exten => 270,2,AGI(cepstral.agi,You
have just joined the Welcome queue)<BR>exten => 270,3,Hangup<BR>exten =>
270,102,RemoveQueueMember(pulverWelcome)<BR>exten =>
270,103,AGI(cepstral.agi,You have just left the Welcome queue)<BR>exten =>
270,104,Hangup<BR></FONT><FONT face=Arial size=2></FONT></DIV>
<DIV><FONT face=Arial size=2>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?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2>Any ideas / sugestions
welcome.</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT
size=2>Jonathan</FONT></DIV></BLOCKQUOTE></FONT></BODY></HTML>