diff options
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 |