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