diff options
author | Mark Crane <mcrane@pfsense.org> | 2008-12-11 21:16:43 +0000 |
---|---|---|
committer | Mark Crane <mcrane@pfsense.org> | 2008-12-11 21:16:43 +0000 |
commit | 130a76b2a4506fc2b840e408cb0a3b8a17fd5b85 (patch) | |
tree | 44cde3833f7d4f2be211f22d69a3355228033bd6 /packages | |
parent | 1878ce50d6ef9932f7de637ed9ee40049722e6bb (diff) | |
download | pfsense-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')
-rw-r--r-- | packages/freeswitch/freeswitch_gateways_edit.tmp | 3 | ||||
-rw-r--r-- | packages/freeswitch/freeswitch_recordings.tmp | 37 |
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(); |