Skip to content

Commit 54cab78

Browse files
committed
Audiobridge, rfc2733 dtmf event meetecho#3538 (comment)
1 parent cbd3e78 commit 54cab78

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/plugins/janus_audiobridge.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6419,8 +6419,9 @@ void janus_audiobridge_incoming_rtp(janus_plugin_session *handle, janus_plugin_r
64196419
}
64206420
/* We'll need to decode the frame (Opus/G.711 -> slinear), so check the payload type */
64216421
janus_rtp_header *rtp = (janus_rtp_header *)buf;
6422-
if((participant->codec == JANUS_AUDIOCODEC_PCMA && rtp->type != 8) ||
6423-
(participant->codec == JANUS_AUDIOCODEC_PCMU && rtp->type != 0)) {
6422+
if((participant->plainrtp_media.dtmf_pt!=rtp->type) &&
6423+
((participant->codec == JANUS_AUDIOCODEC_PCMA && rtp->type != 8) ||
6424+
(participant->codec == JANUS_AUDIOCODEC_PCMU && rtp->type != 0))) {
64246425
JANUS_LOG(LOG_WARN, "Wrong payload type (%d != %d), skipping audio packet\n",
64256426
rtp->type, participant->codec == JANUS_AUDIOCODEC_PCMA ? 8 : 0);
64266427
return;

0 commit comments

Comments
 (0)