From dc3b36e5cb53ba49bb31757b1055d093ef6ec725 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Mon, 4 Jun 2018 10:46:28 -0400
Subject: [PATCH] sipcall: DTMF over RTP is supported

pjsip supports RFC 4733 (RTP Payload for DTMF Digits)
So, DTMF over RTP is supported.
Source: https://trac.pjsip.org/repos/wiki/PJSIP-Datasheet

Change-Id: I982cf20a48f5919d5ee62aac13a7c9daaabd7296
GitLab: #9
---
 src/sip/sipcall.cpp | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/sip/sipcall.cpp b/src/sip/sipcall.cpp
index 5bd8c4c8c9..a86e62a68e 100644
--- a/src/sip/sipcall.cpp
+++ b/src/sip/sipcall.cpp
@@ -84,14 +84,6 @@ const char* const SIPCall::LINK_TYPE = SIPAccount::ACCOUNT_TYPE;
 static void
 dtmfSend(SIPCall &call, char code, const std::string &dtmf)
 {
-    if (dtmf == SIPAccount::OVERRTP_STR) {
-        RING_WARN("[call:%s] DTMF over RTP not supported yet", call.getCallId().c_str());
-        return;
-    } else if (dtmf != SIPAccount::SIPINFO_STR) {
-        RING_WARN("[call:%s] Unknown DTMF type %s, defaulting to %s instead",
-                  call.getCallId().c_str(), dtmf.c_str(), SIPAccount::SIPINFO_STR);
-    } // else : dtmf == SIPINFO
-
     int duration = Manager::instance().voipPreferences.getPulseLength();
     char dtmf_body[1000];
 
-- 
GitLab