<html>
<body>
At 13:00 25/06/2004 +0200, you wrote:<br>
<blockquote type=cite class=cite 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 =&gt;
999,1,SetGroup(moh)<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>;Set
Current Group to moh
exten =&gt;
999,2,CheckGroup(1)<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>;Check
moh does not have more than 1
exten =&gt;
999,3,Answer<x-tab>&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>;Answer
the call
exten =&gt;
999,4,MusicOnHold(default)<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>;Play
default Music on hold
exten =&gt;
999,103,Busy<x-tab>&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>;Play
busy if 1 person is already listening


</pre><font face="Courier New, Courier">This will allow only one call to
use the resource music on hold.<br><br>
Jason<br><br>
</font></body>
</html>