@exotel-npm-dev/webrtc-client-sdk 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog +9 -0
- package/demo-non-npm/build-local.sh +2 -1
- package/demo-non-npm/demo.js +4 -0
- package/demo-non-npm/dist/exotelsdk.js +5 -3
- package/demo-non-npm/dist/exotelsdk.js.map +1 -1
- package/demo-non-npm/index.html +2 -8
- package/demo-non-npm/phone.js +6 -6
- package/dist/exotelsdk.js +3 -3
- package/dist/exotelsdk.js.map +1 -1
- package/package.json +2 -2
package/demo-non-npm/index.html
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<title>WebPhone</title>
|
|
5
5
|
|
|
6
|
-
<script type="text/javascript" src="
|
|
6
|
+
<script type="text/javascript" src="./dist/exotelsdk.js"></script>
|
|
7
7
|
<script type="text/javascript" src="phone.js"></script>
|
|
8
8
|
<script type="text/javascript" src="demo.js"></script>
|
|
9
9
|
|
|
@@ -26,12 +26,6 @@
|
|
|
26
26
|
<button id="muteButton" onclick="toggleMuteButton()">MUTE</button>
|
|
27
27
|
<button id="holdButton" onclick="toggleHoldButton()">HOLD</button>
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
</audio>
|
|
31
|
-
<audio id="ringbacktone" src="assets/sounds/ringbacktone.wav">
|
|
32
|
-
</audio>
|
|
33
|
-
<audio id="dtmfTone" src="assets/sounds/dtmf.wav">
|
|
34
|
-
</audio>
|
|
35
|
-
<audio id="audio_remote" autoplay="autoplay"></audio>
|
|
29
|
+
|
|
36
30
|
</body>
|
|
37
31
|
</html>
|
package/demo-non-npm/phone.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
phone = '[\
|
|
2
2
|
{\
|
|
3
|
-
"Username":"
|
|
4
|
-
"DisplayName":"
|
|
5
|
-
"HostServer":"voip.exotel.
|
|
6
|
-
"Domain":"
|
|
7
|
-
"Port":
|
|
8
|
-
"Password":"
|
|
3
|
+
"Username":"vijayk0aa794fd",\
|
|
4
|
+
"DisplayName":"vijay",\
|
|
5
|
+
"HostServer":"voip.in1.exotel.com",\
|
|
6
|
+
"Domain":"siptrunkingpoc1m.voip.exotel.com",\
|
|
7
|
+
"Port":5071,\
|
|
8
|
+
"Password":"exotel321",\
|
|
9
9
|
"CallTimeout":1000,\
|
|
10
10
|
"Security": "wss",\
|
|
11
11
|
"EndPoint": "wss",\
|
package/dist/exotelsdk.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* WebRTC CLient SIP version 1.0.
|
|
3
|
+
* WebRTC CLient SIP version 1.0.6
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
6
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -8151,11 +8151,11 @@ function registerPhoneEventListeners() {
|
|
|
8151
8151
|
});
|
|
8152
8152
|
ctxSip.phone.delegate.onInvite = incomingSession => {
|
|
8153
8153
|
if (ctxSip.callActiveID == null) {
|
|
8154
|
-
_webrtcSIPPhoneEventDelegate__WEBPACK_IMPORTED_MODULE_0__["default"].onRecieveInvite(incomingSession);
|
|
8155
|
-
_webrtcSIPPhoneEventDelegate__WEBPACK_IMPORTED_MODULE_0__["default"].sendWebRTCEventsToFSM("i_new_call", "CALL");
|
|
8156
8154
|
var s = incomingSession;
|
|
8157
8155
|
s.direction = 'incoming';
|
|
8158
8156
|
ctxSip.newSession(s);
|
|
8157
|
+
_webrtcSIPPhoneEventDelegate__WEBPACK_IMPORTED_MODULE_0__["default"].onRecieveInvite(incomingSession);
|
|
8158
|
+
_webrtcSIPPhoneEventDelegate__WEBPACK_IMPORTED_MODULE_0__["default"].sendWebRTCEventsToFSM("i_new_call", "CALL");
|
|
8159
8159
|
} else {
|
|
8160
8160
|
incomingSession.reject();
|
|
8161
8161
|
}
|