From 10274b28f027250dc7f24f57dd98bca6fc1b85d4 Mon Sep 17 00:00:00 2001 From: Andrew Pogrebennyk Date: Thu, 28 Jul 2016 11:19:29 +0200 Subject: [PATCH] MT#20221 add option to find destination peer by pbx stop records Change-Id: I819f9cf3d619229a0c4a5cd4b8f49326ec7877af --- debian/mediator.default | 1 + debian/mediator.init | 1 + 2 files changed, 2 insertions(+) diff --git a/debian/mediator.default b/debian/mediator.default index ca75655..799f6b2 100644 --- a/debian/mediator.default +++ b/debian/mediator.default @@ -23,3 +23,4 @@ STATS_USER="mediator" STATS_PASS='GimmeAllUr$$$' STATS_DB="stats" STATS_PERIOD=1 +PEER_PBX_STOP_RECORDS=0 diff --git a/debian/mediator.init b/debian/mediator.init index 82541c9..ca0c959 100755 --- a/debian/mediator.init +++ b/debian/mediator.init @@ -65,6 +65,7 @@ OPTIONS="" [ -z "$STATS_PASS" ] || OPTIONS="$OPTIONS -w $STATS_PASS" [ -z "$STATS_DB" ] || OPTIONS="$OPTIONS -X $STATS_DB" [ -z "$STATS_PERIOD" ] || OPTIONS="$OPTIONS -x $STATS_PERIOD" +[ "$PEER_PBX_STOP_RECORDS" = "0" ] || OPTIONS="$OPTIONS -s" if test "$FORK" = "yes" ; then OPTIONS="$OPTIONS -d" fi