This is part of large project.
We need android service with such functionality:
during call on screen appears a button. When user press it it calls special function Process() without parametrs.
if the function returns True, we neeed to turn off microphone and input. And then play some sound. (usual ringtone by default)