WXL (wul)
6 天以前 a5cba9ab040f6f97558046885dce3017f9bab7e9
src/utils/sipService.js
@@ -19,6 +19,26 @@
    wsUrl: "wss://192.169.129.198:7443",
    domain: "192.169.129.198",
  },
  省立同德翠苑院区: {
    wsUrl: "wss://220.88.10.62:7443",
    domain: "220.88.10.62",
  },
  省立同德之江院区: {
    wsUrl: "wss://220.88.10.62:7443",
    domain: "220.88.10.62",
  },
  省立同德闲林院区: {
    wsUrl: "wss://220.88.10.62:7443",
    domain: "220.88.10.62",
  },
  省立同德天目山路院区: {
    wsUrl: "wss://220.88.10.62:7443",
    domain: "220.88.10.62",
  },
  省立同德青山湖院区: {
    wsUrl: "wss://220.88.10.62:7443",
    domain: "220.88.10.62",
  },
  // 可以继续添加其他医院配置
  default: {
    wsUrl: "wss://192.168.10.124:7443",
@@ -422,16 +442,18 @@
    });
  }
endCall() {
  if (this.currentSession) {
    this.isManualEnd = true;
    this.currentSession.terminate();
    this.updateCallStatus('ended', '通话已结束');
    this.currentSession = null;
    // 延迟重置标志,避免影响后续事件
    setTimeout(() => { this.isManualEnd = false; }, 100);
  endCall() {
    if (this.currentSession) {
      this.isManualEnd = true;
      this.currentSession.terminate();
      this.updateCallStatus("ended", "通话已结束");
      this.currentSession = null;
      // 延迟重置标志,避免影响后续事件
      setTimeout(() => {
        this.isManualEnd = false;
      }, 100);
    }
  }
}
  updateStatus(type, text) {
    console.log(`SIP状态更新: ${type} - ${text}`);