Add handling for invite

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-06-01 11:01:10 +02:00
parent 79ec655e66
commit 5b3967a486
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -86,6 +86,7 @@ export default class CallEventGrouper extends EventEmitter {
if (lastEventType === EventType.CallHangup) this.state = CallState.Ended;
else if (lastEventType === EventType.CallReject) this.state = CallState.Ended;
else if (lastEventType === EventType.CallInvite) this.state = CallState.Connecting;
}
this.emit(CallEventGrouperEvent.StateChanged, this.state);
}