From e25dd495456b97b9ec9899fe27be6a2eb2d87a20 Mon Sep 17 00:00:00 2001 From: sinake <sinake1@qq.com> Date: 星期二, 23 九月 2025 09:54:21 +0800 Subject: [PATCH] 语音呼叫修改 --- src/components/CallButton/index.vue | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/CallButton/index.vue b/src/components/CallButton/index.vue index d3cb005..c5b34b2 100644 --- a/src/components/CallButton/index.vue +++ b/src/components/CallButton/index.vue @@ -47,9 +47,9 @@ sipStatus: "鏈繛鎺�", sipStatusClass: "status-disconnected", sipConfig: { - wsUrl: "wss://192.168.100.6:7443", + wsUrl: "wss://192.169.129.198:7443", sipUri: "", - password: "Smartor@2023", + password: "heskj@1234", displayName: "Web 灏忛緳", // realm: "9.208.5.18:8090", }, @@ -127,13 +127,13 @@ this.isCalling = true; console.log("寮�濮嬪懠鍙細", sipService); - await sipService.makeCall("0" + this.phoneNumber); + await sipService.makeCall(this.phoneNumber); } catch (error) { let registrationTime = Date.now(); // 璁板綍娉ㄩ攢鎴愬姛鏃堕棿 console.log(registrationTime, "鍛煎彨澶辫触鏃堕棿"); console.error("鍛煎彨澶辫触1:", error); - // this.callStatus = "ended"; - // this.isCalling = false; + this.callStatus = "ended"; + this.isCalling = false; //this.$message.error(`鍛煎彨澶辫触: ${error.message}`); try { // 鍏堟鏌ユ槸鍚﹀彲浠ュ懠鍙� @@ -145,7 +145,7 @@ this.isCalling = true; console.log("寮�濮嬪懠鍙細", sipService); - await sipService.makeCall("0" + this.phoneNumber); + await sipService.makeCall(this.phoneNumber); } catch (error) { this.callStatus = "ended"; this.isCalling = false; @@ -159,7 +159,7 @@ this.randomNum = res.data[0].tel; this.randomID = res.data[0].id; // 姝g‘璁剧疆 sipUri - this.sipConfig.sipUri = `${this.randomNum}@192.168.100.6`; + this.sipConfig.sipUri = `${this.randomNum}@192.169.129.198`; this.startCallsetState(); } catch (error) { console.error("鑾峰彇鍒嗘満鍙峰け璐�:", error); -- Gitblit v1.9.3