aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2013-09-19 06:23:07 -0700
committerMarcello Coutinho <marcellocoutinho@gmail.com>2013-09-19 06:23:07 -0700
commitb55cc4332d05086bf156afefa78325438b7d6ea2 (patch)
tree0b7a56991ab5e202bb450420b9274baded60edf3 /config
parent84baa58fab7928785e20ffbd068dffa03465bfcb (diff)
parenta862429a7882f2e2c0d2b5bd3947b9587beb888f (diff)
downloadpfsense-packages-b55cc4332d05086bf156afefa78325438b7d6ea2.tar.gz
pfsense-packages-b55cc4332d05086bf156afefa78325438b7d6ea2.tar.bz2
pfsense-packages-b55cc4332d05086bf156afefa78325438b7d6ea2.zip
Merge pull request #492 from nagyrobi/patch-3
Update asterisk_log.php
Diffstat (limited to 'config')
-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"); ?>