Running microphone signal through stereo jack
Find the existing wiring to the walkie-talkie internal microphone and wire it through your added 3.5mm connector. Most of those 3.5mm connectors have "closed circuit" switches which will connect the radio's internal microphone to the radio circuit except when you plug in your headset.