Added ip_relay scripts for port forwarding of IAX locally

git-svn-id: svn://192.168.202.10@767 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2008-01-15 19:27:51 +00:00
parent 17e630f853
commit 961446e020
6 changed files with 59 additions and 0 deletions
Binary file not shown.
@@ -0,0 +1,59 @@
#!/bin/sh
#
# relay_control ip_relay startup/shutdown script
#
# Version: 1.0 /usr/local/ip_relay/relay_control 7-Feb-2003
#
# info@eflo.net
#
# This script is released under the BSD license
# (for compatibility with the ip_relay project)
# http://sourceforge.net/projects/iprelay/
#
# Thanks to Rachad ALAO (ralao@venus.org) for writing ip_relay
#
case "$1" in
start)
echo "starting up ip_relay services "
/usr/local/ip_relay/ip_relay 40569 127.0.0.1 4569 9999999 &
/usr/local/ip_relay/ip_relay 41569 127.0.0.1 4569 9999999 &
echo "done "
echo
;;
status)
echo "current running processes "
ps -C ip_relay
echo "Done "
exit 0
;;
restart|reload)
$0 stop
$0 start
;;
stop)
echo "Shutting down ip_relay services "
# Turn off IP Forwarding
kill `ps -C ip_relay -o pid --no-heading`
echo "Done "
echo
;;
*)
echo "Usage: /usr/local/ip_relay/relay_control {start|stop|status|restart|reload}"
exit 1
esac
exit 0