forked from carpenox/CyburPhone
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcp_template.php
More file actions
170 lines (149 loc) · 6.38 KB
/
cp_template.php
File metadata and controls
170 lines (149 loc) · 6.38 KB
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
170
<!DOCTYPE html>
<!--
*******************************************************************************
*
* HTML File for the Vicidial WebRTC Phone
*
* Copyright (C) 2016 Michael Cargile
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*******************************************************************************
-->
<html manifest="cyburphone.appcache">
<head>
<title>ViciPhone - Talk IT Pro</title>
<link rel="stylesheet" href="<?php echo $layout; ?>" />
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
</head>
<body>
<!-- Container -->
<div id="container">
<!-- Main -->
<div id="main">
<!-- Video element to handle audio -->
<audio autoplay width='0' hieght='0' id="audio"></audio>
<!--<video width='0' hieght='0' id="audio"></video>-->
<!-- Logo -->
<section id="logo">
<img id="logo_img" src="images/wp_logo.png">
</section>
<!-- End Logo -->
<!-- Controls -->
<section id="controls">
<section id="registration_control">
<input type="text" value="Unregistered" id="reg_status" readonly>
<button class="button" id="register"><img id="reg_icon" src="images/wp_register_inactive.gif" alt="register"></button>
<button class="button" id="unregister"><img id="unreg_icon" src="images/wp_unregister_inactive.gif" alt="register"></button>
</section>
<section id="dial_control">
<input type="text" name="digits" value="" id="digits"/>
<button class="button" id="dial"><img id="dial_icon" src="images/wp_dial.gif" alt="register"></button>
</section>
<section id="audio_control">
<button class="button" id="mic_mute"><img id="mute_icon" src="images/wp_mic_on.gif" alt="mute"></button>
<button class="button" id="vol_up"><img id="vol_up_icon" src="images/wp_speaker_up.gif" alt="register"></button>
<button class="button" id="vol_down"><img id="vol_down_icon" src="images/wp_speaker_down.gif" alt="register"></button>
</section>
</section>
<!-- End Controls -->
<!-- Dialpad -->
<section id="dialpad">
<section id="dial_row1">
<button class="dialpad_button" id="one">1</button>
<button class="dialpad_button" id="two">2 abc</button>
<button class="dialpad_button" id="three">3 def</button>
</section>
<section id="dial_row2">
<button class="dialpad_button" id="four">4 ghi</button>
<button class="dialpad_button" id="five">5 jkl</button>
<button class="dialpad_button" id="six">6 mno</button>
</section>
<section id="dial_row3">
<button class="dialpad_button" id="seven">7 pqrs</button>
<button class="dialpad_button" id="eight">8 tuv</button>
<button class="dialpad_button" id="nine">9 wyz</button>
</section>
<section id="dial_row4">
<button class="dialpad_button" id="star">*</button>
<button class="dialpad_button" id="zero">0</button>
<button class="dialpad_button" id="pound">#</button>
</section>
<section id="dial_dtmf">
<input type="text" name="dtmf_digits" value="" id="dtmf_digits"/>
<button class="button" id="send_dtmf">Send</button>
</section>
</section>
<!-- End Dialpad -->
</div>
<!-- End Main -->
</div>
<!-- End Container -->
<!-- Debug Output -->
<div id="debug"></div>
<!-- <?php echo "$options $settings"; ?> -->
<!-- variables to pass cybur_phone.js -->
<script>
// SIP configuration variables
var cid_name = '<?php echo $cid_name; ?>';
var sip_uri = '<?php echo $sip_uri; ?>';
var auth_user = '<?php echo $auth_user; ?>';
var password = '<?php echo $password; ?>';
var ws_server = '<?php echo $ws_server; ?>';
// whether debug should be enabled
var debug_enabled = '<?php echo $debug_enabled; ?>';
// display restriction options
var hide_dialpad = '<?php echo $hide_dialpad; ?>';
var hide_dialbox = '<?php echo $hide_dialbox; ?>';
var hide_mute = '<?php echo $hide_mute; ?>';
var hide_volume = '<?php echo $hide_volume; ?>';
// audio settings
var auto_gain = '<?php echo $auto_gain_control; ?>';
var echo_can = '<?php echo $echo_cancellation; ?>';
var noise_sup = '<?php echo $noise_suppression; ?>';
// behavior options
var auto_answer = '<?php echo $auto_answer; ?>';
var dial_reg_exten = '<?php echo $dial_reg_exten; ?>';
var reg_exten = '<?php echo $session_id; ?>';
var region = '<?php echo $progress_region; ?>';
var langAttempting = '<?php echo $langAttempting; ?>';
var langConnected = '<?php echo $langConnected; ?>';
var langDisconnected = '<?php echo $langDisconnected; ?>';
var langExten = '<?php echo $langExten; ?>';
var langIncall = '<?php echo $langIncall; ?>';
var langInit = '<?php echo $langInit; ?>';
var langRedirect = '<?php echo $langRedirect; ?>';
var langRegFailed = '<?php echo $langRegFailed; ?>';
var langRegistering = '<?php echo $langRegistering; ?>';
var langRegistered = '<?php echo $langRegistered; ?>';
var langReject = '<?php echo $langReject; ?>';
var langRinging = '<?php echo $langRinging; ?>';
var langSend = '<?php echo $langSend; ?>';
var langTrying = '<?php echo $langTrying; ?>';
var langUnregFailed = '<?php echo $langUnregFailed; ?>';
var langUnregistered = '<?php echo $langUnregistered; ?>';
var langUnregistering = '<?php echo $langUnregistering; ?>';
var langWebrtcError = '<?php echo $langWebrtcError; ?>';
</script>
<!-- WebRTC adapter -->
<!--<script src="js/adapter.js"></script>-->
<!--<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script> -->
<!-- SIP.js library -->
<script type="text/javascript" src="js/sip.js"></script>
<!-- Our Java Script Code -->
<script type="text/javascript" src="js/cybur_phone.js"></script>
</body>
</html>