diff --git a/app/system/app_languages.php b/app/system/app_languages.php index f0c4985ccb..e576287a32 100644 --- a/app/system/app_languages.php +++ b/app/system/app_languages.php @@ -100,6 +100,16 @@ $text['label-git_info']['sv-se'] = ""; $text['label-git_info']['uk'] = ""; $text['label-git_info']['de-at'] = ""; +$text['label-switch_version']['en-us'] = "Switch Version"; +$text['label-switch_version']['es-cl'] = ""; +$text['label-switch_version']['pt-pt'] = ""; +$text['label-switch_version']['fr-fr'] = ""; +$text['label-switch_version']['pt-br'] = ""; +$text['label-switch_version']['pl'] = ""; +$text['label-switch_version']['sv-se'] = ""; +$text['label-switch_version']['uk'] = ""; +$text['label-switch_version']['de-at'] = ""; + $text['label-git_branch']['en-us'] = "Branch:"; $text['label-git_branch']['es-cl'] = ""; $text['label-git_branch']['pt-pt'] = ""; diff --git a/app/system/system.php b/app/system/system.php index 84fa5e9ac6..9129f39707 100644 --- a/app/system/system.php +++ b/app/system/system.php @@ -105,6 +105,20 @@ $document['title'] = $text['title-sys-status']; echo "\n"; } + $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); + if ($fp) { + $switch_version = event_socket_request($fp, 'api version'); + preg_match("/FreeSWITCH Version (\d+\.\d+\.\d+(?:\.\d+)?).*\(\s*(\d+\w+)\s*\)/", $switch_version, $matches); + $switch_version = $matches[1]; + $switch_bits = $matches[2]; + echo "\n"; + echo " \n"; + echo " ".$text['label-switch_version']."\n"; + echo " \n"; + echo " $switch_version ($switch_bits)\n"; + echo "\n"; + } + echo "\n";