iPhone XR micro phone issue

I am using iPhone XR and am facing an issue. The micro phone doesn't work while making or receiving calls. It works perfect for all other uses and is working fine with camera and voice memo apps. I have tried removing the case and screen protector, but of no use. I've tried various privacy settings recommended by Apple and also done factory resetting. Does anyone face the same issue? Is this a software issue? Please suggest any remedies.
Does a headset with microphone work on your XR ?
I found some information on Apple's Support site that may be helpful. Click here: https://support.apple.com/en-us/HT203792
I am using iPhone XR and am facing an issue. The micro phone doesn't work while making or receiving calls. It works perfect for all other uses and is working fine with camera and voice memo apps. I have tried removing the case and screen protector, but of no use. I've tried various privacy settings recommended by Apple and also done factory resetting. Does anyone face the same issue? Is this a software issue? Please suggest any remedies.

Is there a paired Bluetooth headset nearby when making and receiving calls?
Is there a paired Bluetooth headset nearby when making and receiving calls?

That's a great question. I've had issues before only to learn that my AirPods were connected to my iPhone!

Original thread: https://forums.imore.com/threads/iphone-xr-micro-phone-issue.447405/