|
@@ -281,6 +281,11 @@ class SipCallFragment: BaseCallFragment() {
|
|
val curTcpModel = messageEvent.message as TcpModel
|
|
val curTcpModel = messageEvent.message as TcpModel
|
|
if (curTcpModel.getType() == TcpType.VOICE) {
|
|
if (curTcpModel.getType() == TcpType.VOICE) {
|
|
if (curTcpModel.action == TcpAction.VoiceAction.CANCEL_BY_DOOR) {
|
|
if (curTcpModel.action == TcpAction.VoiceAction.CANCEL_BY_DOOR) {
|
|
|
|
+ //如果当前正在通话中则不做取消处理
|
|
|
|
+ if (Constant.CALL_STATE == Constant.CALL_CALLING) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
Constant.CALL_STATE = Constant.CALL_STANDBY
|
|
Constant.CALL_STATE = Constant.CALL_STANDBY
|
|
VoiceUtil.cancelAudioCall(Constant.DEVICE_ID)
|
|
VoiceUtil.cancelAudioCall(Constant.DEVICE_ID)
|
|
cancelCall()
|
|
cancelCall()
|