diff --git a/app/provision/resources/classes/provision.php b/app/provision/resources/classes/provision.php
index e07de2d0ed..de08a8fe9d 100644
--- a/app/provision/resources/classes/provision.php
+++ b/app/provision/resources/classes/provision.php
@@ -296,30 +296,6 @@ include "root.php";
}
}
- //get the device uuid using the username and password
- if (strlen($_REQUEST['user_id']) > 0 || strlen($_REQUEST['userid']) > 0) {
- //set the variables
- $user_id = $_REQUEST['user_id'];
- $password = $_REQUEST['password'];
- if (strlen($_REQUEST['userid']) > 0) { $user_id = $_REQUEST['userid']; }
- if (strlen($_REQUEST['passwd']) > 0) { $password = $_REQUEST['passwd']; }
- //get the device uuid
- $sql = "SELECT * FROM v_device_lines ";
- $sql .= "WHERE user_id = :user_id ";
- $sql .= "AND password = :password ";
- $sql .= "AND domain_uuid = :domain_uuid ";
- $prep_statement = $this->db->prepare(check_sql($sql));
- $prep_statement->bindParam(':user_id', $user_id);
- $prep_statement->bindParam(':password', $password);
- $prep_statement->bindParam(':domain_uuid', $domain_uuid);
- $prep_statement->execute();
- $result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
- foreach($result as $row) {
- $device_uuid = $row['device_uuid'];
- }
- unset ($prep_statement);
- }
-
//alternate device_uuid
if (strlen($device_uuid) > 0) {
$sql = "SELECT * FROM v_devices ";
diff --git a/resources/templates/provision/yealink/xml_browser/cancel.xml b/resources/templates/provision/yealink/xml_browser/cancel.xml
deleted file mode 100644
index f20820c8e2..0000000000
--- a/resources/templates/provision/yealink/xml_browser/cancel.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- Login Cancelled
-
diff --git a/resources/templates/provision/yealink/xml_browser/config.xml b/resources/templates/provision/yealink/xml_browser/config.xml
deleted file mode 100644
index 0f269b54b2..0000000000
--- a/resources/templates/provision/yealink/xml_browser/config.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-
- {foreach $lines as $row}
- {if isset($user_password_1) }
- - account.{$row.line_number}.enable = 1
- {else}
- - account.{$row.line_number}.enable = 0
- {/if}
- - account.{$row.line_number}.label = {$row.display_name}
- - account.{$row.line_number}.display_name = {$row.display_name}
- - account.{$row.line_number}.user_name = {$row.user_id}
- - account.{$row.line_number}.password = {$row.password}
- - account.{$row.line_number}.auth_name = {$row.auth_id}
- - account.{$row.line_number}.sip_server_host = {$row.server_address}
- - account.{$row.line_number}.sip_server.1.address = {$row.server_address}
- - account.{$row.line_number}.sip_server_port = {$row.sip_port}
- - account.{$row.line_number}.outbound_host = {$row.outbound_proxy}
- - account.{$row.line_number}.outbound_port = {$row.sip_port}
- - account.{$row.line_number}.expires = {$row.register_expires}
-
- {if $sip_transport_1 == 'udp'}- account.{$row.line_number}.transport = 0
{/if}
- {if $sip_transport_1 == 'tcp'}- account.{$row.line_number}.transport = 1
{/if}
- {if $sip_transport_1 == 'tls'}- account.{$row.line_number}.transport = 2
{/if}
- {if $sip_transport_1 == 'dns srv'}- account.{$row.line_number}.transport = 3
{/if}
- {/foreach}
-
- {foreach $keys as $row}
- {if $row.device_key_category == "line"}
-
- - linekey.{$row.device_key_id}.line = {$row.device_key_line}
- - linekey.{$row.device_key_id}.value = {$row.device_key_value}
- {if $row.device_key_category == "blf"}
- - linekey.{$row.device_key_id}.pickup_value = {$row.device_key_extension}
- {/if}
- - linekey.{$row.device_key_id}.type = {$row.device_key_type}
-
- - linekey.{$row.device_key_id}.label = {$row.device_key_label}
-
- {/if}
- {/foreach}
-
- {foreach $keys as $row}
- {if $row.device_key_category == "memory"}
-
- - memorykey.{$row.device_key_id}.type = {$row.device_key_type}
- - memorykey.{$row.device_key_id}.line = {$row.device_key_line}
- - memorykey.{$row.device_key_id}.value = {$row.device_key_value}
- {if $row.device_key_type == "blf"}
- - memorykey.{$row.device_key_id}.pickup_value = {$row.device_key_extension}
- {/if}
- - memorykey.{$row.device_key_id}.label = {$row.device_key_label}
- - memorykey.{$row.device_key_id}.xml_phonebook =
- {/if}
- {/foreach}
-
- {foreach $keys as $row}
- {if $row.device_key_category == "expansion"}
-
- - expansion_module.1.key.{$row.device_key_id}.type = {$row.device_key_type}
- - expansion_module.1.key.{$row.device_key_id}.line = {$row.device_key_line}
- - expansion_module.1.key.{$row.device_key_id}.value = {$row.device_key_value}
- {if $row.device_key_type == "blf"}
- - expansion_module.1.key.{$row.device_key_id}.pickup_value = {$row.device_key_extension}
- {/if}
- - expansion_module.1.key.{$row.device_key_id}.label = {$row.device_key_label}
- - expansion_module.1.key.{$row.device_key_id}.xml_phonebook =
-
- {/if}
- {/foreach}
-
- - voice_mail.number.1 = {$voicemail_number}
-
\ No newline at end of file
diff --git a/resources/templates/provision/yealink/xml_browser/login.xml b/resources/templates/provision/yealink/xml_browser/login.xml
deleted file mode 100644
index 96867a80b0..0000000000
--- a/resources/templates/provision/yealink/xml_browser/login.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
- Login de usuario
-
- http://{$domain_name}{$project_path}/app/provision/?file=config.xml&template={$template}
-
-
- Usuario:
- userid
- 1
- {$user_id}
-
-
-
- Senha:
- passwd
- 2
- {$password}
-
-
\ No newline at end of file