forked from kstoqnov/jssip-phone-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
151 lines (147 loc) · 6.56 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html lang="en">
<head>
<title>phone</title>
<!-- Meta -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Icon -->
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<!-- CSS lib -->
<link rel="stylesheet" href="library/fontawesome-free-5.13.0/css/all.min.css">
<link rel="stylesheet" href="library/bootstrap-4.5.0/css/bootstrap.min.css">
<link rel="stylesheet" href="css/custom.css">
<!-- JS lib -->
<script src="library/jquery-3.5.1.min.js"></script>
<script src="library/jssip-3.5.1.min.js"></script>
<script src="library/popper.min.js"></script>
<script src="library/bootstrap-4.5.0/js/bootstrap.min.js"></script>
<script src="library/sweetalert-2.1.2.min.js"></script>
<script src="library/easytimer.min.js"></script>
</head>
<body>
<div class="container-fluid text-center">
<!-- setings -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Settings</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">Server</span>
</div>
<input type="text" id="host" class="form-control" value="test.voxlink.ru" />
</div>
<div class="input-group mt-3">
<div class="input-group-prepend" >
<span class="input-group-text">Port</span>
</div>
<input type="number" id="port" class="form-control" value="8089" />
</div>
<div class="input-group mt-3">
<div class="input-group-prepend">
<span class="input-group-text">Login</span>
</div>
<input type="number" id="user" class="form-control" value="105" />
</div>
<div class="input-group mt-3">
<div class="input-group-prepend">
<span class="input-group-text">Password</span>
</div>
<input type="password" id="secret" class="form-control" value="bdc55815263660cbc8533bfdc27c4089" />
</div>
<div class="input-group mt-3">
<div class="input-group-prepend">
<span class="input-group-text">UserName</span>
</div>
<input type="text" id="userName" class="form-control" value="TestWebRTC" />
</div>
</div>
<div class="modal-footer">
<button class="btn btn-outline-success mt-1" data-dismiss="modal" aria-label="Close">Save</button>
</div>
</div>
</div>
</div>
<!-- form -->
<div class="card mt-3 phoneform">
<!-- sensors -->
<div class="card-header">
<div class="row">
<div class="col-4">
<button id="status" class="btn btn-outline-danger btn-sm btn-block">Unregistered</button>
</div>
<div class="col-4">
<button id="duration" class="btn btn-outline-secondary btn-sm btn-block" disabled="">00:00:00</button>
</div>
<div class="col-4">
<button class="btn btn-outline-success btn-sm btn-block" data-toggle="modal" data-target="#exampleModal"><i class="fas fa-ellipsis-v"></i></button>
</div>
</div>
</div>
<div class="card-body">
<!-- field number -->
<div class="row">
<div class="col">
<input type="text" id="number" class="form-control" placeholder="Phone..." />
</div>
</div>
<!-- numbers -->
<div class="row mt-2">
<div class="col-4"><button id="call" class="btn btn-outline-success btn-block"><i class="fas fa-phone-alt"></i></button></div>
<div class="col-4"><button id="clear" class="btn btn-outline-secondary btn-block"><i class="fas fa-eraser"></i></button></div>
<div class="col-4"><button id="hangup" class="btn btn-outline-danger btn-block"><i class="fas fa-phone-slash"></i></button></div>
</div>
<div class="row mt-2">
<div class="col-4"><button name="key" value="1" class="btn btn-outline-primary btn-block">1</button></div>
<div class="col-4"><button name="key" value="2" class="btn btn-outline-primary btn-block">2</button></div>
<div class="col-4"><button name="key" value="3" class="btn btn-outline-primary btn-block">3</button></div>
</div>
<div class="row mt-2">
<div class="col-4"><button name="key" value="4" class="btn btn-outline-primary btn-block">4</button></div>
<div class="col-4"><button name="key" value="5" class="btn btn-outline-primary btn-block">5</button></div>
<div class="col-4"><button name="key" value="6" class="btn btn-outline-primary btn-block">6</button></div>
</div>
<div class="row mt-2">
<div class="col-4"><button name="key" value="7" class="btn btn-outline-primary btn-block">7</button></div>
<div class="col-4"><button name="key" value="8" class="btn btn-outline-primary btn-block">8</button></div>
<div class="col-4"><button name="key" value="9" class="btn btn-outline-primary btn-block">9</button></div>
</div>
<div class="row mt-2">
<div class="col-4"><button name="key" value="*" class="btn btn-outline-primary btn-block">*</button></div>
<div class="col-4"><button name="key" value="0" class="btn btn-outline-primary btn-block">0</button></div>
<div class="col-4"><button name="key" value="#" class="btn btn-outline-primary btn-block">#</button></div>
</div>
<div class="row mt-2">
<div class="col-4"><button id="mute" class="btn btn-outline-primary btn-block">Mute</button></div>
<div class="col-4"><button id="transfer" class="btn btn-outline-primary btn-block">Transfer</button></div>
<div class="col-4"><button id="hold" class="btn btn-outline-primary btn-block">Hold</button></div>
</div>
</div>
<!-- volume sound -->
<div class="card-footer">
<div class="row mt-3">
<div id="icon" class="col-1">
<i class="fas fa-volume-up"></i>
</div>
<div class="col">
<input type="range" id="volume" class="custom-range" min="0" max="1" step="0.01" value="0.5" />
</div>
</div>
</div>
</div>
<!-- audio -->
<audio id="localVoice" src="" preload="none" muted autoplay></audio>
<audio id="remoteVoice" src="" preload="none" autoplay></audio>
<audio id="songs" src="" preload="none" autoplay></audio>
</div>
<!-- CUSTOM JS -->
<script src="js/custom.js"></script>
</body>
</html>