From 697d8a1ff3a0785e1ea3111bf782810b0b3211e6 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Wed, 7 Jul 2010 01:16:50 +0200 Subject: [PATCH] core: fix: set DTMF volume when sending --- core/AmRtpStream.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/AmRtpStream.cpp b/core/AmRtpStream.cpp index 0d41b61d..13bc6c9b 100644 --- a/core/AmRtpStream.cpp +++ b/core/AmRtpStream.cpp @@ -216,6 +216,7 @@ void AmRtpStream::sendDtmfPacket(unsigned int ts) { dtmf.event = current_send_dtmf.first; dtmf.e = dtmf.r = 0; dtmf.duration = htons(ts - current_send_dtmf_ts); + dtmf.volume = 20; DBG("sending DTMF: event=%i; e=%i; r=%i; volume=%i; duration=%i; ts=%u\n", dtmf.event,dtmf.e,dtmf.r,dtmf.volume,ntohs(dtmf.duration),current_send_dtmf_ts); @@ -247,6 +248,7 @@ void AmRtpStream::sendDtmfPacket(unsigned int ts) { dtmf.e = 1; dtmf.r = 0; dtmf.duration = htons(current_send_dtmf.second); + dtmf.volume = 20; DBG("sending DTMF: event=%i; e=%i; r=%i; volume=%i; duration=%i; ts=%u\n", dtmf.event,dtmf.e,dtmf.r,dtmf.volume,ntohs(dtmf.duration),current_send_dtmf_ts);