#!/bin/bash
set -e

retcode=0

# Parameter
logdir=$1
status=$2
senderRetval=$3
receiverRetval=$3
echo "$@"

#tests
if [ $status == 0 ]; then
    getstates
    if getstates | egrep -q "CALLS:[1-9]"; then
        echo "error: still calls active"
        retcode=1
    fi
fi

exit $retcode