Re: [Asterisk-Users] Howto: Use setgroup, checkgroup to check incoming and outgoing client limits

2004-07-01 Thread Claus Futtrup



Well that works.. But lets say I wont to be able to 
control incoming and outgoing limits on all channels. I have3 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)
Phone 2 can also still receive anothercall 
from phone 3.

exten = s,1,SetGroup(SIP/${CALLERIDNUM}) ;Check 
to see if outgoinglimit of caller has been reachedexten = 
s,2,CheckGroup(1)exten = s,3,Dial(SIP/${ARG1}, 30, tr)exten = 
s,4,Goto(s-${DIALSTATUS}, 1)exten = s,103,Hangupexten = 
s-NOANSWER,1,Voicemail(u${ARG2})exten = s-NOANSWER,2,Hangupexten 
= s-CHANUNAVAIL,1,Voicemail(u${ARG2})exten = 
s-CHANUNAVAIL,2,Hangupexten = s-BUSY,1,Voicemail(b${ARG2})exten 
= s-BUSY,2,Hangup

Help PLEASE!

Claus

  
  - Original Message - 
  From: 
  Jason Williams 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, June 25, 2004 1:52 PM
  Subject: Re: [Asterisk-Users] Howto: Use 
  setgroup, checkgroup to check incoming and outgoing client limits
  At 13:00 25/06/2004 +0200, you wrote:
  Hi there,I was wondering 
how I can use setgroup and checkgroup for perfom incomingand outgoing 
limitation checks.I've have some users that doesn't what to be able to 
recieve more than 1call at a time, and I also want to limit a users 
outgoing call abilities.Any help would be greatly 
  appreciated.exten =
999,1,SetGroup(moh);Set
Current Group to moh
exten =
999,2,CheckGroup(1);Check
moh does not have more than 1
exten =
999,3,Answer;Answer
the call
exten =
999,4,MusicOnHold(default);Play
default Music on hold
exten =
999,103,Busy;Play
busy if 1 person is already listening



  This will allow only one call to use 
  the resource music on hold.Jason
---Outgoing mail 
  is certified Virus Free.Checked by AVG anti-virus system (http://www.grisoft.com).Version: 6.0.708 
  / Virus Database: 464 - Release Date: 
19-06-2004


[Asterisk-Users] Howto: Use setgroup, checkgroup to check incoming and outgoing client limits

2004-06-25 Thread Claus Futtrup
Hi there,

I was wondering how I can use setgroup and checkgroup for perfom incoming
and outgoing limitation checks.
I've have some users that doesn't what to be able to recieve more than 1
call at a time, and I also want to limit a users outgoing call abilities.

Any help would be greatly appreciated.

Kind regards

Cf


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.708 / Virus Database: 464 - Release Date: 18-06-2004

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Howto: Use setgroup, checkgroup to check incoming and outgoing client limits

2004-06-25 Thread Jason Williams


At 13:00 25/06/2004 +0200, you wrote:
Hi there,
I was wondering how I can use setgroup and checkgroup for perfom
incoming
and outgoing limitation checks.
I've have some users that doesn't what to be able to recieve more than
1
call at a time, and I also want to limit a users outgoing call
abilities.
Any help would be greatly appreciated.
exten =
999,1,SetGroup(moh);Set
Current Group to moh
exten =
999,2,CheckGroup(1);Check
moh does not have more than 1
exten =
999,3,Answer;Answer
the call
exten =
999,4,MusicOnHold(default);Play
default Music on hold
exten =
999,103,Busy;Play
busy if 1 person is already listening


This will allow only one call to
use the resource music on hold.
Jason