<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Well that works.. But lets say I wont to be able to
control incoming and outgoing limits on all channels. I have 3 phones
registered and phone 1 calls phone 2. With the example below phone 1 cannot make
anymore calls.. But phone 2 can (even though stíll talking with phone
1)</FONT></DIV>
<DIV><FONT face=Arial size=2>Phone 2 can also still receive another call
from phone 3.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>exten => s,1,SetGroup(SIP/${CALLERIDNUM}) ;Check
to see if outgoinglimit of caller has been reached<BR>exten =>
s,2,CheckGroup(1)<BR>exten => s,3,Dial(SIP/${ARG1}, 30, tr)<BR>exten =>
s,4,Goto(s-${DIALSTATUS}, 1)<BR>exten => s,103,Hangup<BR>exten =>
s-NOANSWER,1,Voicemail(u${ARG2})<BR>exten => s-NOANSWER,2,Hangup<BR>exten
=> s-CHANUNAVAIL,1,Voicemail(u${ARG2})<BR>exten =>
s-CHANUNAVAIL,2,Hangup<BR>exten => s-BUSY,1,Voicemail(b${ARG2})<BR>exten
=> s-BUSY,2,Hangup</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Help PLEASE!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Claus</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial"> </DIV>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jason@redskycomputing.co.uk
href="mailto:jason@redskycomputing.co.uk">Jason Williams</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=asterisk-users@lists.digium.com
href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, June 25, 2004 1:52 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Asterisk-Users] Howto: Use
setgroup, checkgroup to check incoming and outgoing client limits</DIV>
<DIV><BR></DIV>At 13:00 25/06/2004 +0200, you wrote:<BR>
<BLOCKQUOTE class=cite cite="" type="cite">Hi there,<BR><BR>I was wondering
how I can use setgroup and checkgroup for perfom incoming<BR>and outgoing
limitation checks.<BR>I've have some users that doesn't what to be able to
recieve more than 1<BR>call at a time, and I also want to limit a users
outgoing call abilities.<BR><BR>Any help would be greatly
appreciated.</BLOCKQUOTE><BR><BR><PRE>exten =>
999,1,SetGroup(moh)<X-TAB> </X-TAB><X-TAB> </X-TAB><X-TAB> </X-TAB>;Set
Current Group to moh
exten =>
999,2,CheckGroup(1)<X-TAB> </X-TAB><X-TAB> </X-TAB><X-TAB> </X-TAB>;Check
moh does not have more than 1
exten =>
999,3,Answer<X-TAB> </X-TAB><X-TAB> </X-TAB><X-TAB> </X-TAB><X-TAB> </X-TAB>;Answer
the call
exten =>
999,4,MusicOnHold(default)<X-TAB> </X-TAB>;Play
default Music on hold
exten =>
999,103,Busy<X-TAB> </X-TAB><X-TAB> </X-TAB><X-TAB> </X-TAB><X-TAB> </X-TAB>;Play
busy if 1 person is already listening
</PRE>
<DIV><FONT face="Courier New, Courier">This will allow only one call to use
the resource music on hold.<BR><BR>Jason<BR><BR></DIV><FONT face=Arial
size=2></FONT></FONT></BLOCKQUOTE>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"><FONT
face="Courier New, Courier"><FONT face=Arial size=2><BR>---<BR>Outgoing mail
is certified Virus Free.<BR>Checked by AVG anti-virus system (<A
href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.708
/ Virus Database: 464 - Release Date:
19-06-2004</FONT></BLOCKQUOTE></FONT></BODY></HTML>