ucservice 2.7.3 → 2.7.5

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.
@@ -31715,7 +31715,7 @@ const loadJson = function (url, param, backSuccfn, async, method, headers, conte
31715
31715
  * @param {*} connectcallfunc 通讯录通知处理
31716
31716
  */
31717
31717
 
31718
- const initCometd = function (meetcallfunc, callfunc, videocallfunc, connectcallfunc, appMsgfunc, sip) {
31718
+ const initCometd = function (meetcallfunc, callfunc, videocallfunc, connectcallfunc, appMsgfunc, devicefunc, sip) {
31719
31719
  //初始
31720
31720
  let server_ = sip || server;
31721
31721
 
@@ -31745,7 +31745,8 @@ const initCometd = function (meetcallfunc, callfunc, videocallfunc, connectcallf
31745
31745
  callfunc,
31746
31746
  videocallfunc,
31747
31747
  connectcallfunc,
31748
- appMsgfunc
31748
+ appMsgfunc,
31749
+ devicefunc
31749
31750
  });
31750
31751
  }
31751
31752
 
@@ -31776,6 +31777,16 @@ function doSubscribe(_cometd, callback) {
31776
31777
  callback.callfunc(message);
31777
31778
  });
31778
31779
  }
31780
+ /**
31781
+ * 设备在离线状态消息通知
31782
+ */
31783
+
31784
+
31785
+ if (callback.devicefunc) {
31786
+ _cometd.subscribe("/device/res-status/#", null, function (message) {
31787
+ callback.devicefunc(message);
31788
+ });
31789
+ }
31779
31790
  /**
31780
31791
  * 视频通话状态消息通知(视频通话建立 和 中断)
31781
31792
  */
Binary file