From 18971214c9fd4d95fe90fe586fd263c1dd999c44 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 30 May 2012 16:22:25 +0000 Subject: [PATCH] add --b2b-url and --no-fallback option support to init/default --- debian/ngcp-mediaproxy-ng-daemon.default | 2 ++ debian/ngcp-mediaproxy-ng-daemon.init | 2 ++ 2 files changed, 4 insertions(+) diff --git a/debian/ngcp-mediaproxy-ng-daemon.default b/debian/ngcp-mediaproxy-ng-daemon.default index d3584d783..3d2966b13 100644 --- a/debian/ngcp-mediaproxy-ng-daemon.default +++ b/debian/ngcp-mediaproxy-ng-daemon.default @@ -11,7 +11,9 @@ PIDFILE=/var/run/ngcp-mediaproxy-ng-daemon.pid FORK=yes # TOS=184 TABLE=0 +# NO_FALLBACK=yes # PORT_MIN=30000 # PORT_MAX=50000 # REDIS=127.0.0.1:6379 # REDIS_DB=1 +# B2B_URL=http://127.0.0.1:8090/ diff --git a/debian/ngcp-mediaproxy-ng-daemon.init b/debian/ngcp-mediaproxy-ng-daemon.init index b93495d3b..816f48a4f 100755 --- a/debian/ngcp-mediaproxy-ng-daemon.init +++ b/debian/ngcp-mediaproxy-ng-daemon.init @@ -57,6 +57,8 @@ OPTIONS="" [ -z "$ADV_ADDRESS_IPV6" ] || OPTIONS="$OPTIONS --advertised-ip6=$ADV_ADDRESS_IPV6" [ -z "$REDIS" ] || OPTIONS="$OPTIONS --redis=$REDIS" [ -z "$REDIS_DB" ] || OPTIONS="$OPTIONS --redis-db=$REDIS_DB" +[ -z "$B2B_URL" ] || OPTIONS="$OPTIONS --b2b-url=$B2B_URL" +[ -z "$NO_FALLBACK" -o \( "$NO_FALLBACK" != "1" -a "$NO_FALLBACK" != "yes" \) ] || OPTIONS="$OPTIONS --no-fallback" OPTIONS="$OPTIONS --table=$TABLE" if test "$FORK" = "no" ; then OPTIONS="$OPTIONS --foreground"