-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtest_alice.php
36 lines (35 loc) · 1.02 KB
/
test_alice.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
$username = '1001';
$password = '1234';
$displayName = 'Alice';
$targetuser = '1000';
function dd($name){echo $name;}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php dd($displayName) ?> - Test Connection | SIP JS</title>
<?php include("includes/css.php"); ?>
</head>
<body>
<?php include("includes/menu.php"); ?>
<div class="container">
<h3><?php dd($displayName) ?> Test Connection</h3>
<?php include("includes/content.php") ?>
</div>
<?php include("includes/js.php"); ?>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript">
var menu = document.querySelectorAll("#menu li a");
menu[2].classList.add("active");
var targetuser = '<?php dd($targetuser) ?>';
var targetmail = `${targetuser}@${host}`;
var username = "<?php dd($username) ?>";
var password = "<?php dd($password) ?>";
var displayName = "<?php dd($displayName) ?>";
var mymail = `${username}@${host}`;
createSimpleSIP(mymail, username, password, displayName, targetmail);
</script>
</body>
</html>