Merge branch 'voip/correctly-end-the-call' into 'main'
fix: Correctly end the call. See merge request famedly/company/frontend/famedlysdk!964
This commit is contained in:
commit
6d86001f86
|
|
@ -383,12 +383,12 @@ class CallSession {
|
||||||
|
|
||||||
setCallState(CallState.kRinging);
|
setCallState(CallState.kRinging);
|
||||||
|
|
||||||
ringingTimer = Timer(Duration(milliseconds: lifetime - 3000), () {
|
ringingTimer = Timer(Duration(milliseconds: 30000 - lifetime), () {
|
||||||
if (state == CallState.kRinging) {
|
if (state == CallState.kRinging) {
|
||||||
Logs().v('[VOIP] Call invite has expired. Hanging up.');
|
Logs().v('[VOIP] Call invite has expired. Hanging up.');
|
||||||
hangupParty = CallParty.kRemote; // effectively
|
hangupParty = CallParty.kRemote; // effectively
|
||||||
setCallState(CallState.kEnded);
|
|
||||||
fireCallEvent(CallEvent.kHangup);
|
fireCallEvent(CallEvent.kHangup);
|
||||||
|
hangup(CallErrorCode.InviteTimeout);
|
||||||
}
|
}
|
||||||
ringingTimer?.cancel();
|
ringingTimer?.cancel();
|
||||||
ringingTimer = null;
|
ringingTimer = null;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue