@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 ADDED
@@ -0,0 +1,9 @@
1
+ Change Log
2
+
3
+ ## 17 Aug,2023
4
+ -[VWS-15] upgrade webrtc-core-sdk to 1.0.6
5
+
6
+ ## 21 Jul,2023
7
+
8
+ ### fixes
9
+ - [VWS-14] upgrade webrtc-core-sdk to 1.0.5
@@ -1,3 +1,4 @@
1
1
  #openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
2
2
 
3
- rm -rf dist;cd ..;npm uninstall @exotel-npm-dev/webrtc-core-sdk;npm install ../webrtc-core-sdk;npm run build;cp -r dist demo-non-npm/;cd demo-non-npm;http-server -S -C ~/pki/cert.pem -K ~/pki/key.pem
3
+ rm -rf dist;cd ..;npm uninstall @exotel-npm-dev/webrtc-core-sdk;npm install ../webrtc-core-sdk;npm run build;cp -r dist demo-non-npm/;cd demo-non-npm;
4
+ http-server -S -C ~/pki/cert.pem -K ~/pki/key.pem
@@ -29,6 +29,9 @@ function registerToggle() {
29
29
  function CallListenerCallback(callObj, eventType, phone) {
30
30
  call = exWebClient.getCall();
31
31
  document.getElementById("call_status").innerHTML = eventType +" "+phone;
32
+ if(eventType == "incoming") {
33
+ acceptCall();
34
+ }
32
35
  }
33
36
 
34
37
  function RegisterEventCallBack (state, phone){
@@ -37,6 +40,7 @@ function CallListenerCallback(callObj, eventType, phone) {
37
40
  document.getElementById("registerButton").innerHTML = "UNREGISTER";
38
41
  } else {
39
42
  document.getElementById("registerButton").innerHTML = "REGISTER";
43
+
40
44
  }
41
45
 
42
46
  }
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * WebRTC CLient SIP version 1.0.4
3
+ * WebRTC CLient SIP version 1.0.5
4
4
  *
5
5
  */
6
6
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -1511,7 +1511,9 @@ class ExotelWebClient {
1511
1511
  };
1512
1512
  UnRegister = () => {
1513
1513
  (0,_api_registerAPI_RegisterListener__WEBPACK_IMPORTED_MODULE_3__.UnRegister)(this.sipAccountInfo, this);
1514
+ //webrtcSIPPhone.disconnect();
1514
1515
  };
1516
+
1515
1517
  initDiagnostics = (saveDiagnosticsCallback, keyValueSetCallback) => {
1516
1518
  (0,_api_omAPI_DiagnosticsListener__WEBPACK_IMPORTED_MODULE_6__.initDiagnostics)(saveDiagnosticsCallback, keyValueSetCallback);
1517
1519
  };
@@ -8151,11 +8153,11 @@ function registerPhoneEventListeners() {
8151
8153
  });
8152
8154
  ctxSip.phone.delegate.onInvite = incomingSession => {
8153
8155
  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
8156
  var s = incomingSession;
8157
8157
  s.direction = 'incoming';
8158
8158
  ctxSip.newSession(s);
8159
+ _webrtcSIPPhoneEventDelegate__WEBPACK_IMPORTED_MODULE_0__["default"].onRecieveInvite(incomingSession);
8160
+ _webrtcSIPPhoneEventDelegate__WEBPACK_IMPORTED_MODULE_0__["default"].sendWebRTCEventsToFSM("i_new_call", "CALL");
8159
8161
  } else {
8160
8162
  incomingSession.reject();
8161
8163
  }