Index: webrtc/voice_engine/channel.cc |
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc |
index 6a30fbce47f7f1669de8c6380724496365b979de..c1410fa8b83ae27c1752dac6420fef285df8e13a 100644 |
--- a/webrtc/voice_engine/channel.cc |
+++ b/webrtc/voice_engine/channel.cc |
@@ -2296,14 +2296,15 @@ int Channel::SendTelephoneEventOutband(int event, int duration_ms) { |
return 0; |
} |
-int Channel::SetSendTelephoneEventPayloadType(int payload_type) { |
+int Channel::SetSendTelephoneEventPayloadType(int payload_type, |
+ int payload_frequency) { |
WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId, _channelId), |
"Channel::SetSendTelephoneEventPayloadType()"); |
RTC_DCHECK_LE(0, payload_type); |
RTC_DCHECK_GE(127, payload_type); |
CodecInst codec = {0}; |
- codec.plfreq = 8000; |
codec.pltype = payload_type; |
+ codec.plfreq = payload_frequency; |
memcpy(codec.plname, "telephone-event", 16); |
if (_rtpRtcpModule->RegisterSendPayload(codec) != 0) { |
_rtpRtcpModule->DeRegisterSendPayload(codec.pltype); |