From a4ea7c0bf3894988af101c93bc24e26699bda0bc Mon Sep 17 00:00:00 2001 From: Dinu Date: Wed, 24 Aug 2016 22:47:50 +0300 Subject: [PATCH] Make --dtls-passive available from ngcp-rtpengine-daemon.init --- debian/ngcp-rtpengine-daemon.default | 1 + debian/ngcp-rtpengine-daemon.init | 1 + 2 files changed, 2 insertions(+) diff --git a/debian/ngcp-rtpengine-daemon.default b/debian/ngcp-rtpengine-daemon.default index 3d2f084a3..2fb886d59 100644 --- a/debian/ngcp-rtpengine-daemon.default +++ b/debian/ngcp-rtpengine-daemon.default @@ -41,3 +41,4 @@ TABLE=0 # HOMER_ID=2001 # RECORDING_DIR=/var/spool/rtpengine/ # LOG_STDERR="no" +# DTLS_PASSIVE="no" diff --git a/debian/ngcp-rtpengine-daemon.init b/debian/ngcp-rtpengine-daemon.init index f71fc3578..bccdbc9b4 100755 --- a/debian/ngcp-rtpengine-daemon.init +++ b/debian/ngcp-rtpengine-daemon.init @@ -95,6 +95,7 @@ OPTIONS="$OPTIONS --table=$TABLE" [ -z "$HOMER_PROTOCOL" ] || OPTIONS="$OPTIONS --homer-protocol=$HOMER_PROTOCOL" [ -z "$HOMER_ID" ] || OPTIONS="$OPTIONS --homer-id=$HOMER_ID" [ -z "$RECORDING_DIR" ] || OPTIONS="$OPTIONS --recording-dir=$RECORDING_DIR" +[ -z "$DTLS_PASSIVE" -o \("$DTLS_PASSIVE" != "yes" -a "$DTLS_PASSIVE" != "1" \) ] || OPTIONS="$OPTIONS --dtls-passive" if test "$FORK" = "no" ; then OPTIONS="$OPTIONS --foreground"