Default S5 turns off silent mode while calling


I have the galaxy s5 and when i have it on silent mode and then make a call it turns all the sounds back on. So i have to put it on silent again. Is there some way to prevent the phone doing this by itself? Its anoying when your at your job and dont see the sounds are all ON.

Sent from my SM-G900F using XDA Premium 4 mobile app