Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
ce4a71e8
Commit
ce4a71e8
authored
Oct 28, 2020
by
YKai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:拨打电话日志优化
parent
127546cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
YDLavManager.kt
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
+9
-6
No files found.
m-audioim/src/main/java/com/ydl/audioim/YDLavManager.kt
View file @
ce4a71e8
...
...
@@ -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
)
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment