|
@@ -191,7 +191,8 @@ class NewCallListActivity : BaseToolActivity(), NewCallItemAdapter.CallClickList
|
|
|
var removeCall = false
|
|
|
for (item in Constants.callList) {
|
|
|
interactionVO = Gson().fromJson(item.tcpModel.data.toString(), InteractionVO::class.java)
|
|
|
- if (curTime - item.startTime >= transSeconds*1000L) {
|
|
|
+ if (curTime - item.startTime >= transSeconds*1000L
|
|
|
+ && (interactionVO.fromDeviceType == DeviceTypeEnum.DIGIT_BED_DEVICE.value() || interactionVO.fromDeviceType == DeviceTypeEnum.SIMULATE_BED_DEVICE.value())) {
|
|
|
val voiceTransferTcpModel = VoiceUtil.voiceTransfer(item.tcpModel.tid, Constants.deviceId, interactionVO.fromDeviceId, interactionVO.id)
|
|
|
TcpClient.getInstance().sendMsg(voiceTransferTcpModel.toJson())
|
|
|
|