diff options
author | Mark Crane <mcrane@pfsense.org> | 2008-12-17 06:53:22 +0000 |
---|---|---|
committer | Mark Crane <mcrane@pfsense.org> | 2008-12-17 06:53:22 +0000 |
commit | ffe2044de0f9446294d6609a23120fb3a35e2b35 (patch) | |
tree | 59c191240c5da24bd646d282be944a84890662cb /packages/freeswitch/freeswitch.inc | |
parent | a419fd88aa9e57b46b4ec8ac93918cb9da929f23 (diff) | |
download | pfsense-packages-ffe2044de0f9446294d6609a23120fb3a35e2b35.tar.gz pfsense-packages-ffe2044de0f9446294d6609a23120fb3a35e2b35.tar.bz2 pfsense-packages-ffe2044de0f9446294d6609a23120fb3a35e2b35.zip |
FreeSWITCH package dialplan recordings details are fixed, if the options aka details for dialplan or public entries did not have child options a deleting parent showed an error added a check for child details to prevent the error.
Diffstat (limited to 'packages/freeswitch/freeswitch.inc')
-rw-r--r-- | packages/freeswitch/freeswitch.inc | 28 |
1 files changed, 14 insertions, 14 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(); |