From a81e204fc45c8306b06db8e8ee3ef2cb269a0871 Mon Sep 17 00:00:00 2001 From: mcrane Date: Wed, 22 Jul 2009 21:17:08 -0600 Subject: 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 --- config/freeswitch/freeswitch_hunt_group.tmp | 32 ++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'config/freeswitch/freeswitch_hunt_group.tmp') 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']."}
\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(); -- cgit v1.2.3