Browse Source

MT#56861 use correct codec handler for DTMF inject

DTMF injection must use the codec handler of the primary payload (audio
stream), not the handler of the DTMF PT itself.

Change-Id: Ied2d1f969bfc76ef7af0ada063b90a47c4633557
pull/1657/head
Richard Fuchs 3 years ago
parent
commit
4389aed9e9
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      daemon/dtmf.c

+ 3
- 0
daemon/dtmf.c View File

@ -602,6 +602,9 @@ const char *dtmf_inject(struct call_media *media, int code, int volume, int dura
ch = codec_handler_get(media, pt, sink, NULL); ch = codec_handler_get(media, pt, sink, NULL);
if (!ch) if (!ch)
continue; continue;
// skip DTMF PTs
if (pt == ch->dtmf_payload_type)
continue;
if (ch->output_handler && ch->output_handler->ssrc_hash) // context switch if we have multiple inputs going to one output if (ch->output_handler && ch->output_handler->ssrc_hash) // context switch if we have multiple inputs going to one output
ch = ch->output_handler; ch = ch->output_handler;


Loading…
Cancel
Save