From 1a50d8d4c249b888bd93c256cec53fb7bcf8db1d Mon Sep 17 00:00:00 2001
From: Jonathan Rose <jrose@digium.com>
Date: Fri, 27 Mar 2015 22:25:29 +0000
Subject: [PATCH] SAC: Add conferencing extensions and configuration

Review: https://reviewboard.asterisk.org/r/4504/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@433656 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 configs/basic-pbx/confbridge.conf |  1 +
 configs/basic-pbx/extensions.conf | 10 ++++++++++
 configs/basic-pbx/modules.conf    |  2 ++
 3 files changed, 13 insertions(+)
 create mode 100644 configs/basic-pbx/confbridge.conf

diff --git a/configs/basic-pbx/confbridge.conf b/configs/basic-pbx/confbridge.conf
new file mode 100644
index 0000000000..3a44e686aa
--- /dev/null
+++ b/configs/basic-pbx/confbridge.conf
@@ -0,0 +1 @@
+; All conferences use default settings. This config must be present to load the confbridge application
diff --git a/configs/basic-pbx/extensions.conf b/configs/basic-pbx/extensions.conf
index 9212ff11dd..d7fd2c3ca3 100644
--- a/configs/basic-pbx/extensions.conf
+++ b/configs/basic-pbx/extensions.conf
@@ -19,6 +19,16 @@ exten = 8000,1,Verbose(1, "User ${CALLERID(num)} dialed the voicemail feature.")
 exten = 1100,1,Verbose(1, "User ${CALLERID(num)} dialed the IVR.")
  same = n,Goto(Main-IVR,2565551100,1)
 
+;Extension to enter a conference intended only for employees
+exten = 6000,1,Verbose(1, "User ${CALLERID(num)} dialed the employee conference.")
+ same = n,Confbridge(employees)
+ same = n,Hangup()
+
+;Extension to enter a conference intended for employees and customers
+exten = 6500,1,Verbose(1, "User ${CALLERID(num)} dialed the employee/customer mixed conference.")
+ same = n,Confbridge(mixed)
+ same = n,Hangup()
+
 [External-Features]
 ; Extension for users to remotely check voicemail. Here we require the caller to
 ; enter their mailbox and pincode.
diff --git a/configs/basic-pbx/modules.conf b/configs/basic-pbx/modules.conf
index 9abcf493c8..c0416a06ff 100644
--- a/configs/basic-pbx/modules.conf
+++ b/configs/basic-pbx/modules.conf
@@ -13,6 +13,7 @@ load = app_stack.so
 load = app_verbose.so
 load = app_voicemail.so
 load = app_directory.so
+load = app_confbridge.so
 
 ; Bridging
 
@@ -110,3 +111,4 @@ load = res_sorcery_astdb.so
 load = res_sorcery_config.so
 load = res_sorcery_memory.so
 load = res_sorcery_realtime.so
+load = res_timing_timerfd.so
-- 
GitLab