mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
registrations panel reboot options (extended)
This commit is contained in:
@@ -42,21 +42,27 @@ else {
|
||||
$agent = check_str($_GET['agent']);
|
||||
|
||||
//get the vendor
|
||||
if (substr($agent, 0, 6) == "Aastra") {
|
||||
if (preg_replace('/^.*?(aastra).*$/i', '$1', strtolower($agent)) == "aastra") {
|
||||
$vendor = "aastra";
|
||||
}
|
||||
if (substr($agent, 0, 9) == "Cisco/SPA") {
|
||||
if (preg_replace('/^.*?(cisco).*$/i', '$1', strtolower($agent)) == "cisco") {
|
||||
$vendor = "cisco";
|
||||
}
|
||||
if (substr($agent, 0,11) == "Grandstream") {
|
||||
if (preg_replace('/^.*?(grandstream).*$/i', '$1', strtolower($agent)) == "grandstream") {
|
||||
$vendor = "grandstream";
|
||||
}
|
||||
if (substr($agent, 0, 10) == "PolycomVVX") {
|
||||
if (preg_replace('/^.*?(polycom).*$/i', '$1', strtolower($agent)) == "polycom") {
|
||||
$vendor = "polycom";
|
||||
}
|
||||
if (substr($agent, 0, 7) == "Yealink") {
|
||||
if (preg_replace('/^.*?(yealink).*$/i', '$1', strtolower($agent)) == "yealink") {
|
||||
$vendor = "yealink";
|
||||
}
|
||||
if (preg_replace('/^.*?(vp530p).*$/i', '$1', strtolower($agent)) == "vp530p") {
|
||||
$vendor = "yealink";
|
||||
}
|
||||
if (preg_replace('/^.*?(snom).*$/i', '$1', strtolower($agent)) == "snom") {
|
||||
$vendor = "snom";
|
||||
}
|
||||
|
||||
//create the event socket connection
|
||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||
|
||||
Reference in New Issue
Block a user