There is no public API for any state or functionality of the phone, so you have to rely on the side effects of the call.
You can check the status bar, as suggested by Ben Gottlieb, or you can try to initialize the audio recording , if it doesnβt work with the error already in use, you can be sure that the microphone is used for the call.
Ben s source share