aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freeswitch
diff options
context:
space:
mode:
authorMark Crane <mcrane@pfsense.org>2008-12-11 21:16:43 +0000
committerMark Crane <mcrane@pfsense.org>2008-12-11 21:16:43 +0000
commit130a76b2a4506fc2b840e408cb0a3b8a17fd5b85 (patch)
tree44cde3833f7d4f2be211f22d69a3355228033bd6 /packages/freeswitch
parent1878ce50d6ef9932f7de637ed9ee40049722e6bb (diff)
downloadpfsense-packages-130a76b2a4506fc2b840e408cb0a3b8a17fd5b85.tar.gz
pfsense-packages-130a76b2a4506fc2b840e408cb0a3b8a17fd5b85.tar.bz2
pfsense-packages-130a76b2a4506fc2b840e408cb0a3b8a17fd5b85.zip
freeSWITCH package recordings comment out code reserved for future. gateways tab synchronize dialplan after using the dialplan expressions shortcut.
Diffstat (limited to 'packages/freeswitch')
-rw-r--r--packages/freeswitch/freeswitch_gateways_edit.tmp3
-rw-r--r--packages/freeswitch/freeswitch_recordings.tmp37
2 files changed, 21 insertions, 19 deletions
diff --git a/packages/freeswitch/freeswitch_gateways_edit.tmp b/packages/freeswitch/freeswitch_gateways_edit.tmp
index c13269a6..9ddbe8de 100644
--- a/packages/freeswitch/freeswitch_gateways_edit.tmp
+++ b/packages/freeswitch/freeswitch_gateways_edit.tmp
@@ -206,7 +206,8 @@ if ($_POST) {
}
write_config();
- sync_package_freeswitch_gateways();
+ sync_package_freeswitch_gateways();
+ sync_package_freeswitch_dialplan_includes();
header("Location: freeswitch_gateways.php");
exit;
diff --git a/packages/freeswitch/freeswitch_recordings.tmp b/packages/freeswitch/freeswitch_recordings.tmp
index 9d51c715..4b336632 100644
--- a/packages/freeswitch/freeswitch_recordings.tmp
+++ b/packages/freeswitch/freeswitch_recordings.tmp
@@ -174,35 +174,36 @@ if (is_dir($recording_dir)) {
-
-$i = 0;
-if (count($a_recordings) > 0) {
- foreach ($a_recordings as $recordingent) {
+//saved for future use if and when config.xml scales well
+ //enough to save the files inside it
+//$i = 0;
+//if (count($a_recordings) > 0) {
+// foreach ($a_recordings as $recordingent) {
- if (!is_file($recording_dir.$recordingent['filename'])) {
+// if (!is_file($recording_dir.$recordingent['filename'])) {
//echo "not found: ".$recordingent['filename']."<br />";
//recording not found restore the file from the config.xml
- $file_content = $recordingent['filecontent'];
- $handle = fopen($recording_dir.$recordingent['filename'],'w');
- fwrite ($handle, base64_decode($file_content));
- unset($file_content);
- fclose($handle);
- $recordingent['filecontent'] = base64_encode($file_content);
+ //$file_content = $recordingent['filecontent'];
+ //$handle = fopen($recording_dir.$recordingent['filename'],'w');
+ //fwrite ($handle, base64_decode($file_content));
+ //unset($file_content);
+ //fclose($handle);
+ //$recordingent['filecontent'] = base64_encode($file_content);
// loop through recordings in the config.xml
// if the file does not exist remove it from the file system.
//unset($a_recordings[$i]);
- $config_change = 1;
- }
- else {
+// $config_change = 1;
+// }
+// else {
//echo "found: ".$recordingent['filename']."<br />";
- }
+// }
- $i++;
- }
-}
+// $i++;
+// }
+//}
if ($config_change == 1) {
write_config();