Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-client-android
Commits
6f283ef3
Commit
6f283ef3
authored
May 17, 2021
by
Adrien Béraud
Browse files
call service: synchronize state change
Change-Id: I50426174a6441aa53cb042890ae42233bdc73d8a
parent
17d34dc8
Changes
1
Show whitespace changes
Inline
Side-by-side
ring-android/libringclient/src/main/java/cx/ring/services/CallService.java
View file @
6f283ef3
...
...
@@ -453,11 +453,14 @@ public class CallService {
}
public
void
removeCallForId
(
String
callId
)
{
synchronized
(
currentCalls
)
{
currentCalls
.
remove
(
callId
);
currentConferences
.
remove
(
callId
);
}
}
private
SipCall
addCall
(
String
accountId
,
String
callId
,
String
from
,
SipCall
.
Direction
direction
)
{
synchronized
(
currentCalls
)
{
SipCall
call
=
currentCalls
.
get
(
callId
);
if
(
call
==
null
)
{
Account
account
=
mAccountService
.
getAccount
(
accountId
);
...
...
@@ -471,6 +474,7 @@ public class CallService {
}
return
call
;
}
}
private
Conference
addConference
(
SipCall
call
)
{
String
confId
=
call
.
getConfId
();
...
...
@@ -537,6 +541,7 @@ public class CallService {
void
callStateChanged
(
String
callId
,
String
newState
,
int
detailCode
)
{
Log
.
d
(
TAG
,
"call state changed: "
+
callId
+
", "
+
newState
+
", "
+
detailCode
);
try
{
synchronized
(
currentCalls
)
{
SipCall
call
=
parseCallState
(
callId
,
newState
);
if
(
call
!=
null
)
{
callSubject
.
onNext
(
call
);
...
...
@@ -546,6 +551,7 @@ public class CallService {
updateConnectionCount
();
}
}
}
}
catch
(
Exception
e
)
{
Log
.
w
(
TAG
,
"Exception during state change: "
,
e
);
}
...
...
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