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 --- channels/sip/include/sip.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'channels/sip/include/sip.h') diff --git a/channels/sip/include/sip.h b/channels/sip/include/sip.h index a10d405a9..a821435e9 100644 --- a/channels/sip/include/sip.h +++ b/channels/sip/include/sip.h @@ -1062,6 +1062,8 @@ struct sip_pvt { uint32_t init_icseq; /*!< Initial incoming seqno from first request */ ast_group_t callgroup; /*!< Call group */ ast_group_t pickupgroup; /*!< Pickup group */ + struct ast_namedgroups *named_callgroups; /*!< Named call group */ + struct ast_namedgroups *named_pickupgroups; /*!< Named pickup group */ uint32_t lastinvite; /*!< Last seqno of invite */ struct ast_flags flags[3]; /*!< SIP_ flags */ @@ -1328,6 +1330,8 @@ struct sip_peer { int rtpkeepalive; /*!< Send RTP packets for keepalive */ ast_group_t callgroup; /*!< Call group */ ast_group_t pickupgroup; /*!< Pickup group */ + struct ast_namedgroups *named_callgroups; /*!< Named call group */ + struct ast_namedgroups *named_pickupgroups; /*!< Named pickup group */ struct sip_proxy *outboundproxy;/*!< Outbound proxy for this peer */ struct ast_dnsmgr_entry *dnsmgr;/*!< DNS refresh manager for peer */ struct ast_sockaddr addr; /*!< IP address of peer */ -- cgit v1.2.3