WXL (wul)
14 小时以前 f2bd87968bf34e0a952870701593df39d6ff2075
分机号动态使用
已修改2个文件
6 ■■■■ 文件已修改
src/components/CallButton/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/sipService.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/CallButton/index.vue
@@ -47,7 +47,7 @@
      sipStatus: "未连接",
      sipStatusClass: "status-disconnected",
      sipConfig: {
        wsUrl: "wss://192.168.100.6:7443",
        wsUrl: "wss://192.168.10.124:7443",
        sipUri: "",
        password: "Smartor@2023",
        displayName: "Web 小龙",
@@ -159,7 +159,7 @@
        this.randomNum = res.data[0].tel;
        this.randomID = res.data[0].id;
        // 正确设置 sipUri
        this.sipConfig.sipUri = `${this.randomNum}@192.168.100.6`;
        this.sipConfig.sipUri = `${this.randomNum}@192.168.10.124`;
        this.startCallsetState();
      } catch (error) {
        console.error("获取分机号失败:", error);
src/utils/sipService.js
@@ -121,7 +121,7 @@
        };
        this.currentSession = this.ua.call(
          `sip:${targetNumber}@1192.170.66.107`,
          `sip:${targetNumber}@192.168.10.124`,
          options
        );