From 5c4578f4ad9af0d13638ec72a2bc141227ec8b3c Mon Sep 17 00:00:00 2001 From: Matthew Jordan Date: Tue, 7 Aug 2012 12:46:36 +0000 Subject: Add named callgroups/pickupgroups This patch adds named calledgroups/pickupgroups to Asterisk. Named groups are implemented in parallel to the existing numbered callgroup/pickupgroup implementation. However, unlike the existing implementation, which is limited to a maximum of 64 defined groups, the number of defined groups allowed for named callgroups/pickupgroups is effectively unlimited. Named groups are configured with the keywords "namedcallgroup" and "namedpickupgroup". This corresponds to the numbered group definitions of "callgroup" and "pickupgroup". Note that as the implementation of named groups coexists with the existing numbered implementation, a defined named group of "4" does not equate to numbered group 4. Support for the named groups has been added to the SIP, DAHDI, and mISDN channel drivers. Review: https://reviewboard.asterisk.org/r/2043 Uploaded by: Guenther Kelleter(license #6372) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@370831 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- configs/chan_dahdi.conf.sample | 9 +++++++++ configs/misdn.conf.sample | 7 +++++++ configs/sip.conf.sample | 2 ++ 3 files changed, 18 insertions(+) (limited to 'configs') diff --git a/configs/chan_dahdi.conf.sample b/configs/chan_dahdi.conf.sample index b747a1e71..460cd0bde 100644 --- a/configs/chan_dahdi.conf.sample +++ b/configs/chan_dahdi.conf.sample @@ -841,6 +841,15 @@ group=1 ; callgroup=1 pickupgroup=1 +; +; Named ring groups (a.k.a. named call groups) and named pickup groups. +; If a phone is ringing and it is a member of a group which is one of your +; named pickup groups, then you can answer it by picking up and dialing *8#. +; For simple offices, just make these both the same. +; The number of named groups is not limited. +; +;namedcallgroup=engineering,sales,netgroup,protgroup +;namedpickupgroup=sales ; Channel variable to be set for all calls from this channel ;setvar=CHANNEL=42 diff --git a/configs/misdn.conf.sample b/configs/misdn.conf.sample index bd51686e4..ac54dbc5a 100644 --- a/configs/misdn.conf.sample +++ b/configs/misdn.conf.sample @@ -390,6 +390,13 @@ nodialtone=no ;callgroup=1 ;pickupgroup=1 +; Named pickup groups and named call groups +; +; give a name to groups and configure any number of groups +; +;namedcallgroup=engineering,sales,netgroup,protgroup +;namedpickupgroup=sales + ; Set the outgoing caller id to the value. ;callerid="name" diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample index d9ffb8578..81ca998d5 100644 --- a/configs/sip.conf.sample +++ b/configs/sip.conf.sample @@ -1432,6 +1432,8 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls ; ;callgroup=1,3-4 ; We are in caller groups 1,3,4 ;pickupgroup=1,3-5 ; We can do call pick-p for call group 1,3,4,5 +;namedcallgroup=engineering,sales,netgroup,protgroup ; We are in named call groups engineering,sales,netgroup,protgroup +;namedpickupgroup=sales ; We can do call pick-p for named call group sales ;defaultip=192.168.0.60 ; IP address to use if peer has not registered ;deny=0.0.0.0/0.0.0.0 ; ACL: Control access to this account based on IP address ;permit=192.168.0.60/255.255.255.0 -- cgit v1.2.3