Index: webrtc/voice_engine/channel.cc |
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc |
index 54aa802d73e4ccbca87d0f93cdeb73b536ad3329..fb9835664ac35dc2109ddc9e8bed651251f6ebac 100644 |
--- a/webrtc/voice_engine/channel.cc |
+++ b/webrtc/voice_engine/channel.cc |
@@ -2372,6 +2372,9 @@ int Channel::SendTelephoneEventOutband(unsigned char eventCode, |
WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId, _channelId), |
"Channel::SendTelephoneEventOutband(..., playDtmfEvent=%d)", |
playDtmfEvent); |
+ if (!Sending()) { |
+ return -1; |
+ } |
_playOutbandDtmfEvent = playDtmfEvent; |