#!/bin/sh

me="[$(basename "${0}")]"

case "$1" in
	start)
		echo "${me} starting rtpengine"
		modprobe xt_RTPENGINE
		iptables -I INPUT -p udp -j RTPENGINE --id 0
	;;
	stop)
		echo "${me} stopping is not yet implemented."
		#should do modprobe -r xt_RTPENGINE but that command crashes because even after stopping the rtpengine daemon the kernelmodule is still used by some process
	;;
	restart|reload)
		echo "${me} Restarting is not yet implemented."
	;;
	*)
		echo "Usage: {start|stop|restart}"
		exit 1
esac

exit $?
