Can I control when playing the ringtone

[Question]
In our business, it will have multiple incoming calls at the same time.
Then we don’t want to play a ringtone when the user is on a call.

Are there functions to control when playing the ringtone?