From db96f61e074a1aa5610efc14deea4236d2bb531b Mon Sep 17 00:00:00 2001 From: Pawel Kuzak Date: Wed, 20 Jul 2016 13:36:01 +0200 Subject: [PATCH] Configuration file support for recording-dir --- 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 3c31e387b..8f5f50adc 100644 --- a/debian/ngcp-rtpengine-daemon.default +++ b/debian/ngcp-rtpengine-daemon.default @@ -39,3 +39,4 @@ TABLE=0 # HOMER=123.234.345.456:65432 # HOMER_PROTOCOL=udp # HOMER_ID=2001 +# RECORDING_DIR=/var/spool/rtpengine/ diff --git a/debian/ngcp-rtpengine-daemon.init b/debian/ngcp-rtpengine-daemon.init index d0d12a87f..7c5c54158 100755 --- a/debian/ngcp-rtpengine-daemon.init +++ b/debian/ngcp-rtpengine-daemon.init @@ -92,6 +92,7 @@ OPTIONS="$OPTIONS --table=$TABLE" [ -z "$HOMER" ] || OPTIONS="$OPTIONS --homer=$HOMER" [ -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" if test "$FORK" = "no" ; then OPTIONS="$OPTIONS --foreground"