diff --git a/daemon/codec.c b/daemon/codec.c index f548ac1cf..c07455426 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -1032,7 +1032,7 @@ static void packet_dtmf_fwd(struct codec_ssrc_handler *ch, struct transcode_pack // this is actually a DTMF -> PCM handler // grab our underlying PCM transcoder struct codec_ssrc_handler *output_ch = __output_ssrc_handler(ch, mp); - if (G_UNLIKELY(!ch->encoder)) + if (G_UNLIKELY(!ch->encoder || !output_ch->encoder)) goto skip; // init some vars