-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (33 loc) · 1.08 KB
/
index.html
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
37
38
39
40
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./style.css" />
<script src="api/sipml5.js" type="text/javascript"></script>
<title>Sheep</title>
</head>
<body>
<h1>SIP client PoC written in JavaScript and sipml5 API.</h1>
<p>
This is just a PoC so edit it as you wish and check logs in order
to see its workflow.
</p>
<div>
<input id="called-input" type="text" autofocus />
<button id="call-button" type="button" disabled="true">Call</button>
<button id="hang-up-button" type="button" disabled="true" >Hang Up</button>
</div>
<div>
<p><i id="call-text"></i></p>
</div>
<audio id="audio-remote" autoplay="autoplay" />
<script type="module">
import stack from "./controllers/stack.js";
SIPml.init(stack.init, stack.error);
SIPml.setDebugLevel("info");
stack.sip.start();
</script>
</body>
</html>