aboutsummaryrefslogtreecommitdiffstats
path: root/config/asterisk
diff options
context:
space:
mode:
authornagyrobi <robreg@zsurob.hu>2013-09-19 14:50:33 +0200
committernagyrobi <robreg@zsurob.hu>2013-09-19 14:50:33 +0200
commita862429a7882f2e2c0d2b5bd3947b9587beb888f (patch)
tree657e8bfa2a15e72b076632cdc03deb761d233e43 /config/asterisk
parentce8968f62635b78519dda77241e2656d70689120 (diff)
downloadpfsense-packages-a862429a7882f2e2c0d2b5bd3947b9587beb888f.tar.gz
pfsense-packages-a862429a7882f2e2c0d2b5bd3947b9587beb888f.tar.bz2
pfsense-packages-a862429a7882f2e2c0d2b5bd3947b9587beb888f.zip
Update asterisk_log.php
Diffstat (limited to 'config/asterisk')
-rw-r--r--config/asterisk/asterisk_log.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/config/asterisk/asterisk_log.php b/config/asterisk/asterisk_log.php
index 7d1328ed..b8d454bd 100644
--- a/config/asterisk/asterisk_log.php
+++ b/config/asterisk/asterisk_log.php
@@ -4,7 +4,7 @@
status_asterisk_log.php
part of pfSense
Copyright (C) 2009 Scott Ullrich <sullrich@gmail.com>.
- Copyright (C) 2012 robreg@zsurob.hu
+ Copyright (C) 2012 robi <robreg@zsurob.hu>
Copyright (C) 2012 Marcello Coutinho
All rights reserved.
@@ -41,7 +41,7 @@
##|*IDENT=page-status-asterisk
##|*NAME=Status: Asterisk Calls page
##|*DESCR=Allow access to the 'Status: Asterisk Log' page.
-##|*MATCH=status_asterisk_log.php*
+##|*MATCH=asterisk_log.php*
##|-PRIV
require_once("guiconfig.inc");
@@ -51,7 +51,7 @@ include("head.inc");
/* Path to Asterisk log file */
if ($g['platform'] == "nanobsd")
- $log = "/tmp/log_asterisk";
+ $log = "/tmp/asterisk.log";
else
$log = "/var/log/asterisk/messages";
@@ -98,9 +98,9 @@ if ($cmd == "clear") {
<tr>
<td colspan="2" class="listtopic">Last 50 Asterisk log entries</td>
</tr>
-
+
<tr valign="top"><td class="listlr" nowrap>
-
+
<?php
$showlog_command=shell_exec("tail -50 '$log'");
echo nl2br($showlog_command);
@@ -123,6 +123,12 @@ if ($cmd == "clear") {
<strong><?=gettext("Note:");?><br /></strong>
</span>
<?=gettext("Trim keeps the last 50 lines of the log.");?>
+<?
+if ($g['platform'] == "nanobsd")
+ echo "<br>This log is lost when rebooting the system.";
+?>
+
+
</span>
<?php include("fend.inc"); ?>