Mute audio on endpoint when phone call comes in on phone controlling endpoint?

When using an (android) phone as control point for Roon, would it be possible to mute the currently controlled endpoint when a phone call comes in?

Sounds like something the upcoming API might be able to solve? Sadly we don’t have enough details yet.