Weird, but true: iPhone earphones stop working when I walk into a particular room
Do you have a Bluetooth headphones or speaker in your master bedroom that you've paired to your phone?  Perhaps the phone's audio output is switching over to Bluetooth when it's within range.