fix: Correctly end the call.
This commit is contained in:
parent
b96617ce9f
commit
63d347de8e
|
|
@ -383,12 +383,12 @@ class CallSession {
|
|||
|
||||
setCallState(CallState.kRinging);
|
||||
|
||||
ringingTimer = Timer(Duration(milliseconds: lifetime - 3000), () {
|
||||
ringingTimer = Timer(Duration(milliseconds: 30000 - lifetime), () {
|
||||
if (state == CallState.kRinging) {
|
||||
Logs().v('[VOIP] Call invite has expired. Hanging up.');
|
||||
hangupParty = CallParty.kRemote; // effectively
|
||||
setCallState(CallState.kEnded);
|
||||
fireCallEvent(CallEvent.kHangup);
|
||||
hangup(CallErrorCode.InviteTimeout);
|
||||
}
|
||||
ringingTimer?.cancel();
|
||||
ringingTimer = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue