From e25dd495456b97b9ec9899fe27be6a2eb2d87a20 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期二, 23 九月 2025 09:54:21 +0800
Subject: [PATCH] 语音呼叫修改

---
 src/utils/sipService.js             |    2 +-
 src/components/CallButton/index.vue |   14 +++++++-------
 2 files changed, 8 insertions(+), 8 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);
diff --git a/src/utils/sipService.js b/src/utils/sipService.js
index dbc4a4e..7b1f859 100644
--- a/src/utils/sipService.js
+++ b/src/utils/sipService.js
@@ -121,7 +121,7 @@
         };
 
         this.currentSession = this.ua.call(
-          `sip:${targetNumber}@1192.170.66.107`,
+          `sip:${targetNumber}@192.169.129.198`,
           options
         );
 

--
Gitblit v1.9.3