Bladeren bron

ccp外呼修改

cgp 2 weken geleden
bovenliggende
commit
8e1c6fd759
1 gewijzigde bestanden met toevoegingen van 7 en 7 verwijderingen
  1. 7 7
      src/assets/callCenterPhoneBarSdk/callCenterPhoneBarSdk/ccPhoneBarSocket.js

+ 7 - 7
src/assets/callCenterPhoneBarSdk/callCenterPhoneBarSdk/ccPhoneBarSocket.js

@@ -77,7 +77,7 @@ function ccPhoneBarSocket() {
 		//呼叫控制服务器地址
 		'ipccServer': 'sip.ylrzcloud.com',
 		//是否启用websocket安全连接
-		'enableWss' : true,
+		'enableWss' : false,
 		//语音编码
 		'callCodec' : 'pcma',
 		//是否发送心跳数据
@@ -225,14 +225,14 @@ function ccPhoneBarSocket() {
 
     console.log("callConfig:", JSON.stringify(this.callConfig));
     //线上enableWss: true 本地调试为false
-    if(_cc.callConfig.enableWss){
-      wsuri = 'wss://' + this.callConfig.ipccServer +
-	    			'/call-center/websocketServer?' +
-			'&loginToken=' + this.callConfig.loginToken;
-    }else{
+    // if(_cc.callConfig.enableWss){
+    //   wsuri = 'wss://' + this.callConfig.ipccServer +
+	  //   			'/call-center/websocketServer?' +
+		// 	'&loginToken=' + this.callConfig.loginToken;
+    // }else{
       wsuri = 'ws://129.28.164.235:1081/call-center/websocketServer?' +
         '&loginToken=' + this.callConfig.loginToken;
-    }
+    // }
     console.log("ipccServer url: " + wsuri);
 	    var ipccServerIpAddr = this.callConfig.ipccServer.split(":");
 	    if(this.callConfig.enableWss &&  this.checkIP(ipccServerIpAddr)){