@sdk185/sip-phone-sdk26 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -298,13 +298,13 @@ export default {
|
|
|
298
298
|
},
|
|
299
299
|
|
|
300
300
|
watch: {
|
|
301
|
-
isCalling (is) {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
},
|
|
301
|
+
// isCalling (is) {
|
|
302
|
+
// if (is) {
|
|
303
|
+
// this.startDurationCount()
|
|
304
|
+
// } else {
|
|
305
|
+
// this.stopDurationCount()
|
|
306
|
+
// }
|
|
307
|
+
// },
|
|
308
308
|
callId (id) {
|
|
309
309
|
this.lastCallId = id || this.lastCallId
|
|
310
310
|
},
|
|
@@ -735,6 +735,7 @@ export default {
|
|
|
735
735
|
// 处理通话失败事件
|
|
736
736
|
this.sipMix.on('failed', (e) => {
|
|
737
737
|
console.warn('通话失败', e)
|
|
738
|
+
this.stopDurationCount() // 确保停止计时器 0105
|
|
738
739
|
this.dealCallEndOrFail() // 清理通话相关状态
|
|
739
740
|
this.callPrompt = this.$t('cancelled') // 显示通话已取消提示
|
|
740
741
|
|
|
@@ -754,6 +755,7 @@ export default {
|
|
|
754
755
|
// 处理通话结束事件(对方挂断或通话正常结束)
|
|
755
756
|
this.sipMix.on('ended', () => {
|
|
756
757
|
console.warn('通话结束')
|
|
758
|
+
this.stopDurationCount() // 确保停止计时器 0105
|
|
757
759
|
this.dealCallEndOrFail() // 清理通话相关状态
|
|
758
760
|
this.callPrompt = this.$t('hangedUp') // 显示通话已挂断提示
|
|
759
761
|
|
|
@@ -841,6 +843,7 @@ export default {
|
|
|
841
843
|
})
|
|
842
844
|
|
|
843
845
|
this.sipMix.on('confirmed', () => {
|
|
846
|
+
this.startDurationCount(); // 通话完全建立后开始计时 0105
|
|
844
847
|
this.startSendPosition()
|
|
845
848
|
})
|
|
846
849
|
|
|
@@ -1095,7 +1098,7 @@ export default {
|
|
|
1095
1098
|
height: auto !important;
|
|
1096
1099
|
padding: 0 !important;
|
|
1097
1100
|
margin: 0 !important;
|
|
1098
|
-
opacity: .6 !important;
|
|
1101
|
+
/* opacity: .6 !important; */
|
|
1099
1102
|
position: absolute !important;
|
|
1100
1103
|
left: calc(50% + 80px) !important;
|
|
1101
1104
|
color: #FFFFFF !important;
|