Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add limited support for call redirection #444

Merged
merged 1 commit into from
Oct 15, 2023
Merged

Conversation

chenxiaolong
Copy link
Owner

Android 10 added the CallRedirectionService API, which allows a third party app to process outgoing calls made from the system's dialer. Some call redirection services, like Google Voice, use phone calls under the hood instead of VOIP. These calls can be recorded by BCR, but would previously show the service's proxy phone number.

Unfortunately, with the way Android's APIs are designed, the only thing that's aware of the original phone number is the dialer. We have no way of querying that in BCR until the call ends and the dialer writes the entry to the call log. This commit implements support for looking up the phone number from the call log.

This lookup functionality only works for non-conference calls and the call will always be classified as All other calls in the auto-record rules.

Fixes: #443

Android 10 added the `CallRedirectionService` API, which allows a third
party app to process outgoing calls made from the system's dialer. Some
call redirection services, like Google Voice, use phone calls under the
hood instead of VOIP. These calls can be recorded by BCR, but would
previously show the service's proxy phone number.

Unfortunately, with the way Android's APIs are designed, the only thing
that's aware of the original phone number is the dialer. We have no way
of querying that in BCR until the call ends and the dialer writes the
entry to the call log. This commit implements support for looking up the
phone number from the call log.

This lookup functionality only works for non-conference calls and the
call will always be classified as `All other calls` in the auto-record
rules.

Fixes: #443

Signed-off-by: Andrew Gunnerson <[email protected]>
@chenxiaolong chenxiaolong merged commit 729b5b5 into master Oct 15, 2023
1 check passed
@chenxiaolong chenxiaolong deleted the redirection branch October 15, 2023 21:28
chenxiaolong added a commit that referenced this pull request Oct 15, 2023
Signed-off-by: Andrew Gunnerson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Default Call Redirection App
1 participant