aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/freeswitch/freeswitch.inc28
-rw-r--r--packages/freeswitch/freeswitch.xml2
-rw-r--r--packages/freeswitch/freeswitch_dialplan_includes.tmp16
-rw-r--r--packages/freeswitch/freeswitch_public_includes.tmp16
-rw-r--r--pkg_config.7.xml2
5 files changed, 34 insertions, 30 deletions
diff --git a/packages/freeswitch/freeswitch.inc b/packages/freeswitch/freeswitch.inc
index a1152daa..a171560d 100644
--- a/packages/freeswitch/freeswitch.inc
+++ b/packages/freeswitch/freeswitch.inc
@@ -1726,18 +1726,18 @@ function freeswitch_php_install_command()
}
//delete the recording dialplan details
- //if (count($a_dialplan_include_details) > 0) {
- // $i = 0;
- // foreach ($a_dialplan_include_details as $ent) {
- // if ($ent['fielddata'] == "^732673$") {
- // unset($a_dialplan_include_details[$i]);
- // }
- // if ($ent['fielddata'] == "recordings.js") {
- // unset($a_dialplan_include_details[$i]);
- // }
- // $i++;
- // }
- //}
+ if (count($a_dialplan_include_details) > 0) {
+ $i = 0;
+ foreach ($a_dialplan_include_details as $ent) {
+ if ($ent['fielddata'] == "^732673$") {
+ unset($a_dialplan_include_details[$i]);
+ }
+ if ($ent['fielddata'] == "recordings.js") {
+ unset($a_dialplan_include_details[$i]);
+ }
+ $i++;
+ }
+ }
$dialplanincludeid = guid();
@@ -1749,7 +1749,7 @@ function freeswitch_php_install_command()
$ent['enabled'] = 'true';
$ent['descr'] = 'Default system recordings tool';
$a_dialplan_includes[] = $ent;
- unset($dialplanincludeid);
+ unset($ent);
$ent = array();
$ent['dialplanincludeid'] = $dialplanincludeid;
@@ -2028,7 +2028,7 @@ function freeswitch_php_install_command()
}
$config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_version'] = "1.0.1 revision 10638.";
- $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.4.8.5";
+ $config['installedpackages']['freeswitchsettings']['config'][0]['freeswitch_package_version'] = "0.4.9";
conf_mount_ro();
diff --git a/packages/freeswitch/freeswitch.xml b/packages/freeswitch/freeswitch.xml
index 9259a107..c219ff5c 100644
--- a/packages/freeswitch/freeswitch.xml
+++ b/packages/freeswitch/freeswitch.xml
@@ -44,7 +44,7 @@
<requirements>Describe your package requirements here</requirements>
<faq>Currently there are no FAQ items provided.</faq>
<name>FreeSWITCH Settings</name>
- <version>0.4.8.5</version>
+ <version>0.4.9</version>
<title>FreeSWITCH: Settings</title>
<include_file>/usr/local/pkg/freeswitch.inc</include_file>
<menu>
diff --git a/packages/freeswitch/freeswitch_dialplan_includes.tmp b/packages/freeswitch/freeswitch_dialplan_includes.tmp
index 2731b6e2..e0b86654 100644
--- a/packages/freeswitch/freeswitch_dialplan_includes.tmp
+++ b/packages/freeswitch/freeswitch_dialplan_includes.tmp
@@ -73,13 +73,15 @@ if ($_GET['act'] == "del") {
$dialplanincludefilename = $order."_".$extensionname.".xml";
//delete the dialplan include details. aka. child data
- $i=0;
- foreach($a_dialplan_includes_details as $row) {
- if ($row["dialplanincludeid"] == $dialplanincludeid) {
- //echo "child id: ".$i."<br />\n";
- unset($a_dialplan_includes_details[$i]);
- }
- $i++;
+ if (count($a_dialplan_includes_details) > 0) {
+ $i=0;
+ foreach($a_dialplan_includes_details as $row) {
+ if ($row["dialplanincludeid"] == $dialplanincludeid) {
+ //echo "child id: ".$i."<br />\n";
+ unset($a_dialplan_includes_details[$i]);
+ }
+ $i++;
+ }
}
//if the dialplan include xml file exists then delete it
diff --git a/packages/freeswitch/freeswitch_public_includes.tmp b/packages/freeswitch/freeswitch_public_includes.tmp
index daddadea..4dc6e540 100644
--- a/packages/freeswitch/freeswitch_public_includes.tmp
+++ b/packages/freeswitch/freeswitch_public_includes.tmp
@@ -73,14 +73,16 @@ if ($_GET['act'] == "del") {
$publicincludefilename = $order."_".$extensionname.".xml";
//delete the public include details. aka. child data
- $i=0;
if (count($a_public_includes_details) > 0) {
- foreach($a_public_includes_details as $row) {
- if ($row["publicincludeid"] == $publicincludeid) {
- //echo "child id: ".$i."<br />\n";
- unset($a_public_includes_details[$i]);
- }
- $i++;
+ $i=0;
+ if (count($a_public_includes_details) > 0) {
+ foreach($a_public_includes_details as $row) {
+ if ($row["publicincludeid"] == $publicincludeid) {
+ //echo "child id: ".$i."<br />\n";
+ unset($a_public_includes_details[$i]);
+ }
+ $i++;
+ }
}
}
diff --git a/pkg_config.7.xml b/pkg_config.7.xml
index 53b6988b..fc9aaacd 100644
--- a/pkg_config.7.xml
+++ b/pkg_config.7.xml
@@ -66,7 +66,7 @@
<pkginfolink>http://forum.pfsense.org/index.php/topic,11930.0.html</pkginfolink>
<config_file>http://www.pfsense.com/packages/config/freeswitch/freeswitch.xml</config_file>
<depends_on_package_base_url>http://files.pfsense.org/packages/7/All/</depends_on_package_base_url>
- <version>0.4.8.5</version>
+ <version>0.4.9</version>
<status>Beta</status>
<required_version>1.2.1</required_version>
<maintainer>markjcrane@gmail.com</maintainer>