diff --git a/app/sip_status/sip_status.php b/app/sip_status/sip_status.php index 692ee64c86..d6417747d2 100644 --- a/app/sip_status/sip_status.php +++ b/app/sip_status/sip_status.php @@ -78,7 +78,7 @@ if ($_GET['a'] == "download") { $msg = $_GET["savemsg"]; $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if (!$fp) { - $msg = "
".$text['error-event-socket']."
"; + $msg = "
".$text['error-event-socket']."
"; } if (strlen($msg) > 0) { echo "
\n"; @@ -112,10 +112,10 @@ if ($_GET['a'] == "download") { echo $e->getMessage(); } echo "
\n"; - echo "\n"; + echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; - echo " ".$text['title-sofia-status']." \n"; + echo " ".$text['title-sofia-status']." \n"; echo "\n"; echo " \n"; @@ -125,6 +125,7 @@ if ($_GET['a'] == "download") { echo "
\n"; + echo "
"; echo "\n"; echo "\n"; echo "\n"; @@ -170,8 +171,8 @@ if ($_GET['a'] == "download") { if ($c==0) { $c=1; } else { $c=0; } } echo "
Name
\n"; + echo "
\n"; unset($xml); - echo "
\n\n"; } //sofia status profile @@ -192,12 +193,10 @@ if ($_GET['a'] == "download") { echo $e->getMessage(); exit; } - echo "
\n"; - echo "
\n"; - echo "\n"; + echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; - echo " ".$text['title-sofia-status-profile']." $sip_profile_name \n"; + echo " ".$text['title-sofia-status-profile']." ".$sip_profile_name." \n"; echo "\n"; echo " \n"; @@ -212,6 +211,7 @@ if ($_GET['a'] == "download") { echo "
\n"; + echo ""; unset($xml); - echo "

\n\n"; } } } @@ -269,12 +269,13 @@ if ($_GET['a'] == "download") { if ($fp && permission_exists('sip_status_switch_status')) { $cmd = "api status"; $response = event_socket_request($fp, $cmd); - echo "".$text['title-status']."
\n"; - echo "
";
+		echo "".$text['title-status']."\n";
+		echo "
"; + echo "
";
 		echo trim($response);
 		echo "
\n"; + echo "
"; fclose($fp); - echo "

\n\n"; } //include the footer