diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6af16808..a12aa8cf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -91,6 +91,10 @@ else()
   message("SSL/TLS support is turned OFF")
 endif()
 
+if (USE_MBEDTLS_SSL_DTLS_SRTP)
+  add_definitions(-DHAVE_UPSTREAM_MBEDTLS_SRTP=1)
+endif()
+
 if (DEFINED DATASIZE )
   add_definitions(-DSHM_DATASIZE=${DATASIZE})
 endif()