aboutsummaryrefslogtreecommitdiffstats
path: root/config/freeswitch/freeswitch_hunt_group.tmp
diff options
context:
space:
mode:
authormcrane <mctch@yahoo.com>2009-07-22 21:17:08 -0600
committermcrane <mctch@yahoo.com>2009-07-22 21:17:08 -0600
commita81e204fc45c8306b06db8e8ee3ef2cb269a0871 (patch)
tree5c0eaa4c71ad35f1737d291ec874ebe9216026c9 /config/freeswitch/freeswitch_hunt_group.tmp
parent13b1ff56a408967abfaf506053d30aec62dc9943 (diff)
downloadpfsense-packages-a81e204fc45c8306b06db8e8ee3ef2cb269a0871.tar.gz
pfsense-packages-a81e204fc45c8306b06db8e8ee3ef2cb269a0871.tar.bz2
pfsense-packages-a81e204fc45c8306b06db8e8ee3ef2cb269a0871.zip
FreeSWITCH pkg move changes from dev pkg to this one. Add caller announce and pin numbe options for huntgroups, Add ability to use 5 digit extensions, *97 added general voicemail, *99[extension] allows you to transfer a call directly to voicemail
Diffstat (limited to 'config/freeswitch/freeswitch_hunt_group.tmp')
-rw-r--r--config/freeswitch/freeswitch_hunt_group.tmp32
1 files changed, 31 insertions, 1 deletions
diff --git a/config/freeswitch/freeswitch_hunt_group.tmp b/config/freeswitch/freeswitch_hunt_group.tmp
index 911b7d5b..ea3fe44d 100644
--- a/config/freeswitch/freeswitch_hunt_group.tmp
+++ b/config/freeswitch/freeswitch_hunt_group.tmp
@@ -35,7 +35,8 @@ require("/usr/local/pkg/freeswitch.inc");
$a_hunt_group = &$config['installedpackages']['freeswitchhuntgroup']['config'];
-
+$a_dialplan_includes = &$config['installedpackages']['freeswitchdialplanincludes']['config'];
+$a_dialplan_include_details = &$config['installedpackages']['freeswitchdialplanincludedetails']['config'];
if ($_GET['act'] == "del") {
if ($_GET['type'] == 'huntgroup') {
@@ -43,6 +44,35 @@ if ($_GET['act'] == "del") {
if (file_exists("/usr/local/freeswitch/scripts/huntgroup_".$_GET['huntgroupid'].".js")) {
unlink("/usr/local/freeswitch/scripts/huntgroup_".$_GET['huntgroupid'].".js");
}
+ /*
+ //delete dialplan include details
+ if (count($a_dialplan_includes) > 0) {
+ $i = 0;
+ foreach($a_dialplan_includes as $row) {
+ echo $row['opt1value']." == {".$_GET['huntgroupid']."}<br />\n";
+ if ($row['opt1value'] == '{'.$_GET['huntgroupid'].'}') {
+ $dialplanincludeid = $row['dialplanincludeid'];
+ $id = $i;
+ unset($a_dialplan_include_details[$id]);
+ }
+ $i++;
+ }
+ unset($i);
+ }
+
+ //delete dialplan include details
+ if (count($a_dialplan_include_details) > 0) {
+ $i = 0;
+ foreach($a_dialplan_include_details as $row) {
+ if ($row['dialplanincludeid'] == $dialplanincludeid) {
+ $id = $i;
+ unset($a_dialplan_include_details[$id]);
+ }
+ $i++;
+ }
+ unset($i);
+ }
+ */
unset($a_hunt_group[$_GET['id']]);
write_config();
sync_package_freeswitch_hunt_group();