-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reject was not called on timeout, decline and cancel scenarios (#…
…1576) ## Background Currently, we don't call reject unless `reject: true` is passed on leave(). This was a recent change, so it caused a bug where reject was not called on timeout, decline, and cancel scenarios. There are four predefined reasons for rejecting the call: - `busy` - when the callee is busy and cannot accept the call. - `decline` - when the callee intentionally declines the call. - `cancel` - when the caller cancels the call. - `timeout` - when the **caller** or **callee** rejects the call after `auto_cancel_timeout_ms` or `incoming_call_timeout_ms` accordingly ## What has been done - Reject is now called on timeout, decline and cancel scenarios. We dont handle `busy` yet. Will be part of Android telecom/callkit alignment I believe. - Added reason to reject API call - `incoming_call_timeout_ms` support has been added
- Loading branch information
1 parent
1766c3e
commit 8be76a4
Showing
5 changed files
with
41 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters