|
@@ -87,11 +87,9 @@ class SipCallFragment: BaseCallFragment() {
|
|
|
showCallView(false)
|
|
|
Constant.CALL_STATE = Constant.CALL_CALLING
|
|
|
DeviceChannel.calling = true
|
|
|
- //发送accept消息
|
|
|
+ //发送accept消息
|
|
|
val callTcp = VoiceUtil.voiceAccept(tid, Constant.DEVICE_ID, Constant.fromId, Constant.interactionId)
|
|
|
- TcpClient.getInstance().sendMsg(callTcp.toJson())
|
|
|
-
|
|
|
-
|
|
|
+ TcpClient.getInstance().sendMsg(callTcp.toJson())
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -111,7 +109,6 @@ class SipCallFragment: BaseCallFragment() {
|
|
|
showMessage("无响应")
|
|
|
DeviceChannel.calling = false
|
|
|
Constant.CALL_STATE = Constant.CALL_STANDBY
|
|
|
- //VoiceUtil.cancelAudioCall(Constants.ids, Constants.targetDeviceId)
|
|
|
cancelCall(Constant.DEVICE_ID, Constant.targetDeviceId, Constant.interactionId)
|
|
|
callEnd(false)
|
|
|
}
|
|
@@ -125,7 +122,6 @@ class SipCallFragment: BaseCallFragment() {
|
|
|
callEnd(true)
|
|
|
} else {
|
|
|
countDownTimer.cancel()
|
|
|
- //VoiceUtil.cancelAudioCall(Constants.ids, Constants.targetDeviceId)
|
|
|
cancelCall(Constant.DEVICE_ID, Constant.targetDeviceId, Constant.interactionId)
|
|
|
callEnd(false)
|
|
|
}
|
|
@@ -267,7 +263,6 @@ class SipCallFragment: BaseCallFragment() {
|
|
|
Constant.CALL_STATE = Constant.CALL_STANDBY
|
|
|
DeviceChannel.calling = false
|
|
|
if (handoff) {
|
|
|
- //VoiceUtil.handoffAudioCall(Constants.ids, Constants.fromId, Constants.interactionId)
|
|
|
val callTcp = VoiceUtil.voiceHandoff(tid, Constant.DEVICE_ID, Constant.fromId, Constant.interactionId)
|
|
|
TcpClient.getInstance().sendMsg(callTcp.toJson())
|
|
|
}
|