forked from Globility/openlink-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·170 lines (148 loc) · 6.1 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
169
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset='utf-8' />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="description" content="Converse.js: A chat client for your website" />
<meta name="viewport" content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
<!--<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0, target-densityDpi=device-dpi" />-->
<!--<link rel="stylesheet" type="text/css" media="screen" href="build/application.css">-->
<title>Openlink Demo</title>
</head>
<body>
<div class="container">
<div class="starter-template">
<h1>Openlink Demo</h1>
<p class="lead">The OpenlinkJS demo allows you to perform most Openlink commands.</p>
<p>To quickly get started edit the section <i>App.start</i> at the bottom of the page in a text editor.
Information on what each option does can be found in the README.md file which accompanies this demo page.</p>
</div>
Telephony System
<input type="text" maxlength="50" value="" id="system" placeholder="System">
<br/>
Resource
<input type="text" maxlength="50" value="" id="resource" placeholder="Resource">
<h2>Login/Logout</h2>
<div id="gc_login_window">
<ul class="formfield_wrap">
<li class="txtfield_wrap">
<input type="text" maxlength="50" value="" id="xmpp_domain" placeholder="XMPP Domain">
</li>
<li class="txtfield_wrap">
<input type="text" maxlength="50" value="" id="username" placeholder="Username">
</li>
<li class="txtfield_wrap">
<input type="password" maxlength="50" value="" id="password" placeholder="Password">
</li>
</ul>
<div class="gc_btn_holder"><input type="button" id="gc_signin" value="Sign in"></div>
</div>
<div id="gc_logout_window" style="display:none;">
<div class="gc_btn_holder"><input type="button" id="gc_signout" value="Sign out"></div>
</div>
<h2>Profiles</h2>
<div id="gc_profiles">
<div class="gc_list" id="gc_profile_list">
<ul>
<li>No profiles found</li>
</ul>
</div>
Mobility
<select id="mobility_login">
<option value="false">False</option>
<option value="true">True</option>
</select>
<input type="text" maxlength="50" value="" id="mobility_devicenum" placeholder="Device Number">
<input type="text" maxlength="50" value="" id="mobility_directorynumber" placeholder="Directory Number">
<br/><br/>
<div class="gc_btn_holder"><input type="button" id="gc_get_profiles" value="Get profiles"></div>
<div class="gc_btn_holder"><input type="button" id="gc_get_profiles_vms" value="Get profiles VMS"></div>
<div class="gc_btn_holder"><input type="button" id="gc_get_profiles_gtx" value="Get profiles GTX"></div>
</div>
<h2>Features</h2>
<div id="gc_features">
<div class="gc_list" id="gc_feature_list">
<ul>
<!-- <li>No features found</li> -->
</ul>
</div>
</div>
<h2>Interests</h2>
<div id="gc_interests">
<div class="gc_list" id="gc_interest_list">
<ul>
<!-- <li>No interests found</li> -->
</ul>
</div>
</div>
<h2>Voice Message Recording</h2>
<div id="gc_recording">
<ul>
</ul>
</div>
<h2>Voice Blast</h2>
<div id="gc_blast">
</div>
<h2>Call History</h2>
<div id="gc_call_history">
<div class="gc_btn_holder">
<input type="button" id="gc_get_history" value="Get History">
</div>
<div class="gc_list" id="gc_history_list">
<ul>
<li>No history found</li>
</ul>
</div>
</div>
<h2>Calls</h2>
<div id="gc_request_actions">
<h4>Request Action</h4>
<ul class="formfield_wrap">
<li class="txtfield_wrap">
<input type="text" maxlength="200" value="" id="request_action_callid" placeholder="Call ID">
</li>
<li class="txtfield_wrap">
<input type="text" maxlength="100" value="" id="request_action_actionid" placeholder="Action ID">
</li>
<li class="txtfield_wrap">
<input type="text" maxlength="100" value="" id="request_action_value1" placeholder="Value1">
</li>
<li class="txtfield_wrap">
<input type="text" maxlength="100" value="" id="request_action_value2" placeholder="Value2">
</li>
</ul>
<div class="gc_btn_holder"><input type="button" id="gc_request_action" value="Request Action"></div>
</div>
<div id="gc_calls">
<div class="gc_list" id="gc_call_list">
<ul>
<li>No calls found</li>
</ul>
</div>
</div>
</div><!-- /.container -->
<!-- Application -->
<!-- <script src="build/application.js"></script> -->
<script src="assets/js/vendor/strophe.js"></script>
<script src="assets/js/vendor/strophe.openlink.js"></script>
<script src="assets/js/vendor/strophe.gtx.js"></script>
<!-- <script src="assets/js/vendor/jquery.js"></script> -->
<script src="assets/js/app/App.js"></script>
<script type="text/javascript">
App.start({
app: {
debug: true,
xmpp_domain: 'centoscas.gltd.local', // This is the Openfire server XMPP domain name
xmpp_resource: 'office', // This should be left as office
username: 'testuser1', // This is the username for the system
password: 'testuser1', // This is the password for the above user
system: 'caslinkol', // This could be avaya1, caslinkol, etrali1, etc.
autologon: false,
cookies: false // Set to true if you need to send cookies for a token
}
});
</script>
<!-- /Application -->
</body>
</html>