#!/bin/bash

# Make sure we are user repeater!!!
if [ `/usr/bin/whoami` != "repeater" ] ; then
  echo This program must be run as user REPEATER!
  exit 1
fi

. /home/irlp/custom/environment

# if [ -f $LOCAL/active ] ; then exit 0 ; fi

rm -f $LOCAL/nodtmf
$BIN/cosstate
$BIN/key
usleep 900000
$CUSTOM/wavplay_nice custom/dtmfenable
$BIN/unkey
exit 0
