diff options
author | Mark Crane <mcrane@pfsense.org> | 2008-11-04 09:10:23 +0000 |
---|---|---|
committer | Mark Crane <mcrane@pfsense.org> | 2008-11-04 09:10:23 +0000 |
commit | 4941d1603c5205fddac1196b64d9017716f3b302 (patch) | |
tree | 0326d175a48db1f8958ab48855da0b9b9fcf26b6 /packages/freeswitch/freeswitch_status.tmp | |
parent | 2716f5c5716977c220668d919d63c4b57583791c (diff) | |
download | pfsense-packages-4941d1603c5205fddac1196b64d9017716f3b302.tar.gz pfsense-packages-4941d1603c5205fddac1196b64d9017716f3b302.tar.bz2 pfsense-packages-4941d1603c5205fddac1196b64d9017716f3b302.zip |
FreeSWITCH package add commands to status tab and fix minor syntax
Diffstat (limited to 'packages/freeswitch/freeswitch_status.tmp')
-rw-r--r-- | packages/freeswitch/freeswitch_status.tmp | 48 |
1 files changed, 42 insertions, 6 deletions
diff --git a/packages/freeswitch/freeswitch_status.tmp b/packages/freeswitch/freeswitch_status.tmp index 3178a277..af97cb3e 100644 --- a/packages/freeswitch/freeswitch_status.tmp +++ b/packages/freeswitch/freeswitch_status.tmp @@ -109,12 +109,16 @@ $password = $config['installedpackages']['freeswitchsettings']['config'][0]['eve $port = $config['installedpackages']['freeswitchsettings']['config'][0]['event_socket_port']; $host = $config['interfaces']['lan']['ipaddr']; - +$savemsg = $_GET["savemsg"]; ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php include("fbegin.inc"); ?> <p class="pgtitle">FreeSWITCH: Status</font></p> -<?php if ($savemsg) print_info_box($savemsg); ?> +<?php +if ($savemsg) { + print_info_box($savemsg); +} +?> <div id="mainlevel"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> @@ -148,7 +152,16 @@ echo "<br /><br />\n\n"; $fp = event_socket_create($host, $port, $password); $cmd = "api sofia status"; $response = event_socket_request($fp, $cmd); -echo "<b>sofia status</b><br />\n"; +echo "<table width='690' cellpadding='0' cellspacing='0' border='0'>\n"; +echo "<tr>\n"; +echo "<td width='50%'>\n"; +echo " <b>sofia status</b> \n"; +echo "</td>\n"; +echo "<td width='50%' align='right'>\n"; +echo " <input type='button' value='reloadxml' onclick=\"document.location.href='/freeswitch/freeswitch_cmd.php?cmd=api+reloadxml';\" />\n"; +echo "</td>\n"; +echo "</tr>\n"; +echo "</table>\n"; echo "<pre style=\"font-size: 9pt;\">\n"; echo $response; echo "</pre>\n"; @@ -158,7 +171,18 @@ echo "<br /><br />\n\n"; $fp = event_socket_create($host, $port, $password); $cmd = "api sofia status profile internal"; $response = event_socket_request($fp, $cmd); -echo "<b>sofia status profile internal</b><br />\n"; +echo "<table width='690' cellpadding='0' cellspacing='0' border='0'>\n"; +echo "<tr>\n"; +echo "<td width='50%'>\n"; +echo " <b>sofia status profile internal</b> \n"; +echo "</td>\n"; +echo "<td width='50%' align='right'>\n"; +echo " <input type='button' value='start' onclick=\"document.location.href='/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+internal+start';\" />\n"; +echo " <input type='button' value='stop' onclick=\"document.location.href='/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+internal+stop';\" />\n"; +echo " <input type='button' value='flush_inbound_reg' onclick=\"document.location.href='/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+internal+flush_inbound_reg';\" />\n"; +echo "</td>\n"; +echo "</tr>\n"; +echo "</table>\n"; echo "<pre style=\"font-size: 9pt;\">\n"; echo $response; echo "</pre>\n"; @@ -168,7 +192,19 @@ echo "<br /><br />\n\n"; $fp = event_socket_create($host, $port, $password); $cmd = "api sofia status profile external"; $response = event_socket_request($fp, $cmd); -echo "<b>sofia status profile external</b><br />\n"; +echo "<table width='690' cellpadding='0' cellspacing='0' border='0'>\n"; +echo "<tr>\n"; +echo "<td width='50%'>\n"; +echo " <b>sofia status profile external</b> \n"; +echo "</td>\n"; +echo "<td width='50%' align='right'>\n"; +echo " <input type='button' value='start' onclick=\"document.location.href='/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+external+start+reloadxml';\" />\n"; +echo " <input type='button' value='stop' onclick=\"document.location.href='/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+external+stop';\" />\n"; +echo " <input type='button' value='restart' onclick=\"document.location.href='/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+external+restart+reloadxml';\" />\n"; +echo " <input type='button' value='rescan' onclick=\"document.location.href='/freeswitch/freeswitch_cmd.php?cmd=api+sofia+profile+external+rescan+reloadxml';\" />\n"; +echo "</td>\n"; +echo "</tr>\n"; +echo "</table>\n"; echo "<pre style=\"font-size: 9pt;\">\n"; echo $response; echo "</pre>\n"; @@ -222,4 +258,4 @@ echo "<br /><br />\n\n"; <?php include("fend.inc"); ?> <meta http-equiv="refresh" content="60;url=<?php print $_SERVER['SCRIPT_NAME']; ?>"> </body> -</html> +</html>
\ No newline at end of file |