Answer
It is not permissible to whistle through one’s mouth or an instrument. However, if there is a dire need, for example, to call out at a distant person or a lost person and there is no alternative, then one will be excused.
and Allah Ta’ala Knows Best
Mufti Ebrahim Desai