[Asterisk-Users] Limit extensions to single lines
Robert Jackson
RobertJ at promedicalinc.com
Tue Oct 5 06:52:13 MST 2004
> -----Original Message-----
> From: Dee Lowndes [mailto:dee at asyouneed.com]
> Sent: Tuesday, October 05, 2004 4:39 AM
> To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
> Subject: RE: [Asterisk-Users] Limit extensions to single lines
>
> Basically this is mainly for SIP clients using hardware
> phones but it might also include a few IAX clients. I still
> want them to have access to voicemail and to be able to
> transfer a call to another extension I just don't want them
> to be able to make or receive more that one call at a time.
>
> Cheers,
> Dee
>
>
Try using SetGroup and CheckGroup.
I use it something like this:
exten => _2[34567]XX,1,SetGroup(${EXTEN})
exten => _2[34567]XX,2,SetGroup(${CALLERIDNUM})
exten => _2[34567]XX,3,CheckGroup(${EXTEN})
exten => _2[34567]XX,4,Dial(SIP/${EXTEN})
exten => _2[34567]XX,103,Busy
Remember to set the group for both caller and callee or you will
not limit them correctly.
Check it out on the wiki:
http://www.voip-info.org/wiki-Asterisk+cmd+SetGroup
http://www.voip-info.org/wiki-Asterisk+cmd+CheckGroup
http://www.voip-info.org/wiki-Asterisk+cmd+GetGroupCount
Good luck,
Robert Jackson
More information about the asterisk-users
mailing list