mirror of
https://git.freebsd.org/ports.git
synced 2025-06-26 15:10:35 -04:00
It handles registrations of SIP clients on a private IP network and performs rewriting of the SIP message bodies to make SIP connections possible via a masquerading firewall. It allows SIP clients (like kphone, linphone) to work behind an IP masquerading firewall or router. PR: ports/72691 Submitted by: Frank W. Josellis <frank@dynamical-systems.org>
42 lines
790 B
Bash
42 lines
790 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: siproxd
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: FreeBSD
|
|
#
|
|
# NOTE for FreeBSD 5.0+:
|
|
# If you want this script to start with the base rc scripts
|
|
# move siproxd.sh to /etc/rc.d/siproxd
|
|
|
|
prefix=%%PREFIX%%
|
|
|
|
# Define these siproxd_* variables in one of these files:
|
|
# /etc/rc.conf
|
|
# /etc/rc.conf.local
|
|
# /etc/rc.conf.d/siproxd
|
|
#
|
|
# DO NOT CHANGE THESE DEFAULT VALUES HERE
|
|
#
|
|
siproxd_enable=${siproxd_enable:-"NO"} # Enable siproxd
|
|
siproxd_flags=${siproxd_flags:-""} # Flags to siproxd program
|
|
#siproxd_program="${prefix}/sbin/siproxd" # Location of siproxd
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="siproxd"
|
|
rcvar=`set_rcvar`
|
|
command="${prefix}/sbin/${name}"
|
|
|
|
load_rc_config $name
|
|
|
|
case $1 in
|
|
start)
|
|
run_rc_command "$1" 2> /dev/null
|
|
;;
|
|
*)
|
|
run_rc_command "$1"
|
|
;;
|
|
esac
|