Ringtone sound not redirected to BT headphones

When you listen to music and receive a call the ringtone sound comes from the phone speakers and you don’t hear the sound in the earphones. And i seem to recall this was the case with wired headphones also.

Is this the desired behavior or is this a bug??