From 93f18e0fc637d00fd58b54a6c508f5f724074fdf Mon Sep 17 00:00:00 2001 From: sinake <sinake1@qq.com> Date: 星期四, 11 九月 2025 11:57:58 +0800 Subject: [PATCH] 冲突 --- src/components/CallButton/index.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/CallButton/index.vue b/src/components/CallButton/index.vue index 47931a4..c9adf5c 100644 --- a/src/components/CallButton/index.vue +++ b/src/components/CallButton/index.vue @@ -37,16 +37,16 @@ }, }, data() { - const randomNum = Math.floor(Math.random() * 11) + 1000; // 鍐呴儴瀹氫箟 + const randomNum = Math.floor(Math.random() * 20) + 1000; // 鍐呴儴瀹氫箟 return { isCalling: false, callStatus: "idle", // idle, calling, connected, ended sipStatus: "鏈繛鎺�", sipStatusClass: "status-disconnected", sipConfig: { - wsUrl: "wss://192.168.10.124:7443", - sipUri: `${randomNum}` + "@192.168.10.124", - password: "Smartor@2023", + wsUrl: "wss://192.169.129.198:7443", + sipUri: `${randomNum}` + "@192.169.129.198", + password: "heskj@1234", displayName: "Web 灏忛緳", }, }; @@ -69,6 +69,8 @@ }, }, mounted() { + console.log('褰撳墠鍒嗘満鍙�',this.sipConfig); + sipService.init(this.sipConfig); sipService.onStatusChange = (status) => { this.sipStatus = status.text; @@ -94,6 +96,7 @@ try { this.callStatus = "calling"; this.isCalling = true; + console.log('寮�濮嬪懠鍙細',sipService); await sipService.makeCall(this.phoneNumber); } catch (error) { -- Gitblit v1.9.3