'Can a digital receptionist run locally on android

Is it possible to design an Android app that would check any incoming calls. If it is found in the contacts (or recent calls), the phone rings as normal. If it is not in the contacts, the caller gets a message "Please press 0 to speak to Mr. H, or stay on the line to leave a message." This message would stop all robocalls and 90% of the telemarketing calls (since the instruction has already played before they get connected). If the caller presses 0, the phone rings as normal. Or they can leave a message that I can check at my convenience. It appears there are some digital receptionists that redirect unknown calls to an online call center, but I would prefer an app that could do it locally. Before I pursue it further, is such a thing even possible?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source