diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c index acdae7b48..021659490 100644 --- a/coreapi/linphonecore.c +++ b/coreapi/linphonecore.c @@ -5105,7 +5105,8 @@ void linphone_core_enable_mic(LinphoneCore *lc, bool_t enable) { for (elem = list; elem != NULL; elem = elem->next) { call = (LinphoneCall *)elem->data; call->audio_muted = !enable; - linphone_core_mute_audio_stream(lc, call->audiostream, !enable); + if (call->audiostream) + linphone_core_mute_audio_stream(lc, call->audiostream, enable); } }