Commit ce4a71e8 by YKai

feat:拨打电话日志优化

parent 127546cb
......@@ -157,13 +157,8 @@ class YDLavManager {
RtmStatusCode.LocalInvitationError.LOCAL_INVITATION_ERR_INVITATION_EXPIRE -> { //呼叫邀请过期。被叫 ACK 响应呼叫邀请后 60 秒呼叫邀请未被取消、接受、拒绝,则呼叫邀请过期。
if (act is AudioHomeActivity) {
act.runOnUiThread {
sendCustomNotification(
response?.calleeId!!,
response?.ChannelId!!,
"5"
)
sendCustomNotification(response?.calleeId!!, response?.ChannelId!!, "5")
callEndStatusUpdate(response.ChannelId!!, 2, "被叫超时未接听")
act.writeAgoraLog("用户呼叫失败:${errorCode}")
act.uploadExceptionStatus("对方未接听", 3)
// //通话结束或挂断时,上传日志文件
// act.uploadLog()
......@@ -171,6 +166,14 @@ class YDLavManager {
}
}
}
else->{
if (act is AudioHomeActivity) {
act.runOnUiThread {
act.writeAgoraLog("用户呼叫失败:${errorCode}")
LogHelper.getInstance().uploadLog(false)
}
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment