diff --git a/debian/ngcp-rtpengine-daemon.default b/debian/ngcp-rtpengine-daemon.default index 86c61be5a..74c8a44c1 100644 --- a/debian/ngcp-rtpengine-daemon.default +++ b/debian/ngcp-rtpengine-daemon.default @@ -2,10 +2,9 @@ RUN_RTPENGINE=no LISTEN_TCP=25060 LISTEN_UDP=12222 LISTEN_NG=22222 -# ADDRESS=... -# ADV_ADDRESS=... -# ADDRESS_IPV6=... -# ADV_ADDRESS_IPV6=... +# INTERFACES="123.234.345.456" +# INTERFACES="internal/12.23.34.45 external/23.34.45.54" +# INTERFACES="12.23.34.45!23.34.45.56" TIMEOUT=60 SILENT_TIMEOUT=3600 PIDFILE=/var/run/ngcp-rtpengine-daemon.pid diff --git a/debian/ngcp-rtpengine-daemon.init b/debian/ngcp-rtpengine-daemon.init index a8a668cef..e9e16078d 100755 --- a/debian/ngcp-rtpengine-daemon.init +++ b/debian/ngcp-rtpengine-daemon.init @@ -43,6 +43,11 @@ set -e OPTIONS="" +if [ ! -z "$INTERFACES" ]; then + for interface in $INTERFACES; do + OPTIONS="$OPTIONS --interface=$interface" + done +fi [ -z "$ADDRESS" ] || OPTIONS="$OPTIONS --interface=$ADDRESS" [ -z "$ADV_ADDRESS" ] || OPTIONS="$OPTIONS!$ADV_ADDRESS" [ -z "$ADDRESS_IPV6" ] || OPTIONS="$OPTIONS --interface=$ADDRESS_IPV6"