-
Notifications
You must be signed in to change notification settings - Fork 238
/
index.html
168 lines (152 loc) · 8.55 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html>
<head>
<title>Browser Phone</title>
<meta name="description" content="Browser Phone is a fully featured browser based WebRTC SIP phone for Asterisk. Designed to work with Asterisk PBX. It will connect to Asterisk PBX via web socket, and register an extension. Calls are made between contacts, and a full call detail is saved. Audio and Video Calls can be recorded locally.">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"/>
<!-- Progressive Web App (PWA) -->
<meta name="HandheldFriendly" content="true">
<meta name="format-detection" content="telephone=no"/>
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#f6f6f6">
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#292929">
<link rel="apple-touch-icon" href="icons/512.png">
<link rel="manifest" href="manifest.json">
<script type="text/javascript">
// If you don't want to use a service worker, you can just take this code out.
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register("sw.js").catch(function(error) {
console.error('Service Worker Error', error);
});
} else {
console.warn("Cannot make use of ServiceWorker");
}
</script>
<!-- Cache -->
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
<meta http-equiv="Expires" content="0"/>
<link rel="icon" href="favicon.ico">
<!-- Styles -->
<link rel="stylesheet" type="text/css" href="https://dtd6jl0d42sve.cloudfront.net/lib/Normalize/normalize-v8.0.1.css"/>
<link rel="stylesheet preload prefetch" type="text/css" as="style" href="https://dtd6jl0d42sve.cloudfront.net/lib/fonts/font_roboto/roboto.css"/>
<link rel="stylesheet preload prefetch" type="text/css" as="style" href="https://dtd6jl0d42sve.cloudfront.net/lib/fonts/font_awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" type="text/css" href="https://dtd6jl0d42sve.cloudfront.net/lib/jquery/jquery-ui-1.13.2.min.css"/>
<link rel="stylesheet" type="text/css" href="https://dtd6jl0d42sve.cloudfront.net/lib/Croppie/Croppie-2.6.4/croppie.css"/>
<link rel="stylesheet" type="text/css" href="phone.css"/>
<!-- Provisioning -->
<script type="text/javascript">
// Provision runtime options can go here.
var phoneOptions = {
loadAlternateLang: true
}
// Occurs After the Language Packs load, at the start of the InitUi() function
var web_hook_on_before_init = function(){
// console.warn("web_hook_on_before_init");
}
// Occurs at the end of the InitUi() function, before the User Agent is created.
// In order to follow events after the User Agent is created, use the register
// and transport events below.
var web_hook_on_init = function(){
// console.warn("web_hook_on_init");
}
// Connection and Calling Events
var web_hook_on_transportError = function(t, ua){
// console.warn("web_hook_on_transportError",t, ua);
}
var web_hook_on_register = function(ua){
// console.warn("web_hook_on_register", ua);
}
var web_hook_on_registrationFailed = function(e){
// console.warn("web_hook_on_registrationFailed", e);
}
var web_hook_on_unregistered = function(){
// console.warn("web_hook_on_unregistered");
}
var web_hook_on_invite = function(session){
// console.warn("web_hook_on_invite", session);
}
var web_hook_on_message = function(message){
// console.warn("web_hook_on_message", message);
}
var web_hook_on_modify = function(action, session){
// console.warn("web_hook_on_modify", action, session);
}
var web_hook_on_dtmf = function(item, session){
// console.warn("web_hook_on_dtmf", item, session);
}
var web_hook_on_terminate = function(session){
// console.warn("web_hook_on_terminate", session);
}
var web_hook_on_notify = function(ContentType, buddyObj, notify){
// console.warn("web_hook_on_notify", ContentType, buddyObj, notify);
}
var web_hook_on_self_notify = function(ContentType, notify){
// console.warn("web_hook_on_self_notify", ContentType, notify);
}
// UI events
var web_hook_dial_out = function(event){
// console.warn("web_hook_dial_out", event);
}
var web_hook_on_add_buddy = function(event){
// console.warn("web_hook_on_add_buddy", event);
}
var web_hook_on_edit_buddy = function(buddyJson){
// console.warn("web_hook_on_edit_buddy", buddyJson);
}
var web_hook_on_config_menu = function(event){
// console.warn("web_hook_on_config_menu", event);
}
var web_hook_on_messages_waiting = function(newMsg, oldMsg, ugentNew, ugentOld){
// console.warn("web_hook_on_messages_waiting", newMsg, oldMsg, ugentNew, ugentOld);
}
var web_hook_on_missed_notify = function(missed){
// console.warn("web_hook_on_missed_notify", missed);
}
var web_hook_on_expand_video_area = function(lineNum){
// console.warn("web_hook_on_expand_video_area", lineNum);
}
var web_hook_on_restore_video_area = function(lineNum){
// console.warn("web_hook_on_restore_video_area", lineNum);
}
var web_hook_on_message_action = function(buddy, obj){
// console.warn("web_hook_on_message_action", buddy, obj);
}
var web_hook_disable_dnd = function(){
// console.warn("web_hook_disable_dnd");
}
var web_hook_enable_dnd = function(){
// console.warn("web_hook_enable_dnd");
}
var web_hook_on_edit_media = function(lineNum, obj){
// console.warn("web_hook_on_edit_media", lineNum, obj);
}
var web_hook_sort_and_filter = function(event){
// console.warn("web_hook_sort_and_filter", event);
}
</script>
</head>
<body>
<!-- Loading Animation -->
<div class=loading>
<span class="fa fa-circle-o-notch fa-spin"></span>
</div>
<!-- The Phone -->
<div id=Phone></div>
</body>
<!-- Loadable Scripts -->
<script type="text/javascript" src="https://dtd6jl0d42sve.cloudfront.net/lib/jquery/jquery-3.6.1.min.js"></script>
<script type="text/javascript" src="https://dtd6jl0d42sve.cloudfront.net/lib/jquery/jquery-ui-1.13.2.min.js"></script>
<script type="text/javascript" src="phone.js"></script>
<!-- Deferred Scripts -->
<script type="text/javascript" src="https://dtd6jl0d42sve.cloudfront.net/lib/jquery/jquery.md5-min.js" defer="true"></script>
<script type="text/javascript" src="https://dtd6jl0d42sve.cloudfront.net/lib/Chart/Chart.bundle-2.7.2.min.js" defer="true"></script>
<script type="text/javascript" src="https://dtd6jl0d42sve.cloudfront.net/lib/SipJS/sip-0.20.0.min.js" defer="true"></script>
<script type="text/javascript" src="https://dtd6jl0d42sve.cloudfront.net/lib/FabricJS/fabric-2.4.6.min.js" defer="true"></script>
<script type="text/javascript" src="https://dtd6jl0d42sve.cloudfront.net/lib/Moment/moment-with-locales-2.24.0.min.js" defer="true"></script>
<script type="text/javascript" src="https://dtd6jl0d42sve.cloudfront.net/lib/Croppie/Croppie-2.6.4/croppie.min.js" defer="true"></script>
<script type="text/javascript" src="https://dtd6jl0d42sve.cloudfront.net/lib/XMPP/strophe-1.4.1.umd.min.js" defer="true"></script>
</html>