- add package recording

- update to ngcp-rtpengine version 6.4.0.0
pull/574/head
netaskd 7 years ago
parent 08fc00906d
commit a1ac45aa71

@ -0,0 +1,91 @@
#!/bin/bash
#
# rtpengine-recording Startup script for NGCP rtpengine-recording
#
# chkconfig: 345 84 16
# description: NGCP rtpengine-recording
#
# processname: rtpengine-recording
# config: /etc/sysconfig/rtpengine-recording
# pidfile: /var/run/rtpengine-recording.pid
#
### BEGIN INIT INFO
# Provides: rtpengine
# Required-Start: $local_fs $network
# Short-Description: NGCP rtpengine-recording
# Description: NGCP rtpengine-recording
### END INIT INFO
# Source function library.
. /etc/rc.d/init.d/functions
if [ -f /etc/sysconfig/rtpengine-recording ]
then
. /etc/sysconfig/rtpengine-recording
else
echo "Error: /etc/sysconfig/rtpengine-recording not present"
exit -1
fi
prog=rtpengine-recording
runfile=/usr/sbin/${prog}
pidfile=${PIDFILE-/var/run/rtpengine-recording.pid}
lockfile=${LOCKFILE-/var/lock/subsys/rtpengine-recording}
cachefile=/var/lib/ngcp-rtpengine/$prog.cfg
RETVAL=0
OPTS=""
[ -z "$CONFIG_FILE" ] || OPTS+=" --config-file=$CONFIG_FILE"
[ -z "$PIDFILE" ] || OPTS+=" --pidfile=$PIDFILE"
start() {
echo -n $"Starting $prog: "
if [[ -n "$RE_USER" ]]
then
# shellcheck disable=SC2086
daemon --user "$RE_USER" --pidfile="${pidfile}" "$runfile" $OPTS
else
# shellcheck disable=SC2086
daemon --pidfile="${pidfile}" "$runfile" $OPTS
fi
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch "${lockfile}"
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
killproc -p "${pidfile}" "$runfile"
RETVAL=$?
[ $RETVAL = 0 ] && rm -f "${lockfile}" "${pidfile}"
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status -p "${pidfile}" "$runfile"
RETVAL=$?
;;
restart)
stop
start
;;
condrestart|try-restart)
if status -p "${pidfile}" "$runfile" >&/dev/null; then
stop
start
fi
;;
*)
echo $"Usage: $prog {start|stop|restart|condrestart|try-restart|status}"
RETVAL=2
esac
exit $RETVAL

@ -0,0 +1,8 @@
# For more information on configuring rtpengine see
# http://github.com/sipwise/rtpengine
#
CONFIG_FILE=/etc/rtpengine/rtpengine-recording.conf
PIDFILE=/var/run/ngcp-rtpengine-recording-daemon.pid
#SET_USER=root
#SET_GROUP=root # GROUP only needs to be set if USER is not set or if the user isn't in the group

@ -32,184 +32,109 @@ prog=rtpengine
pidfile=${PIDFILE-/var/run/rtpengine.pid} pidfile=${PIDFILE-/var/run/rtpengine.pid}
lockfile=${LOCKFILE-/var/lock/subsys/rtpengine} lockfile=${LOCKFILE-/var/lock/subsys/rtpengine}
cachefile=/var/lib/ngcp-rtpengine/rtpengine.cfg cachefile=/var/lib/ngcp-rtpengine/rtpengine.cfg
PIDFILE=${pidfile}
RETVAL=0 RETVAL=0
OPTS="--pidfile $pidfile"
MODULE=0
build_opts() { build_opts() {
# kernel table
shopt -s nocasematch shopt -s nocasematch
RPMS=$(rpm -qa | grep rtpengine-kernel) RPMS=$(rpm -qa | grep rtpengine-kernel)
if [[ "$KERNEL" == "yes" && -n "$TABLE" && -n "$RPMS" ]] if [[ "$KERNEL" == "yes" && -n "$TABLE" && -n "$RPMS" ]];then
then
MODULE=1 MODULE=1
OPTS+=" --table=$TABLE" OPTS=" --table=$TABLE"
else else
MODULE=0 MODULE=0
OPTS+=" --table=-1" OPTS=" --table=-1"
fi fi
if [[ "$FALLBACK" != "yes" ]] [[ "$FALLBACK" != "yes" ]] && OPTS+=" --no-fallback"
then
OPTS+=" --no-fallback"
fi
shopt -u nocasematch shopt -u nocasematch
if [[ -n "$RTP_IP" ]] # interfaces
then if [[ -n "$RTP_IP" ]];then
for IP in "${RTP_IP[@]}" for IP in "${RTP_IP[@]}";do
do
OPTS+=" --interface=$IP" OPTS+=" --interface=$IP"
done done
fi fi
if [[ -n "$LISTEN_TCP" ]] # options
then [[ "$FORK" == "no" ]] && OPTS+=" --foreground"
OPTS+=" --listen-tcp=$LISTEN_TCP" [[ "$LOG_STDERR" == "yes" ]] && OPTS+=" --log-stderr"
fi [ -z "$CONFIG_FILE" ] || OPTS+=" --config-file=$CONFIG_FILE"
[ -z "$CONFIG_SECTION" ] || OPTS+=" --config-section=$CONFIG_SECTION"
if [[ -n "$LISTEN_UDP" ]] [ -z "$ADDRESS" ] || OPTS+=" --interface=$ADDRESS"
then [ -z "$ADV_ADDRESS" ] || OPTS+="!$ADV_ADDRESS"
OPTS+=" --listen-udp=$LISTEN_UDP" [ -z "$ADDRESS_IPV6" ] || OPTS+=" --interface=$ADDRESS_IPV6"
fi [ -z "$ADV_ADDRESS_IPV6" ] || OPTS+="!$ADV_ADDRESS_IPV6"
[ -z "$LISTEN_TCP" ] || OPTS+=" --listen-tcp=$LISTEN_TCP"
if [[ -n "$LISTEN_NG" ]] [ -z "$LISTEN_UDP" ] || OPTS+=" --listen-udp=$LISTEN_UDP"
then [ -z "$LISTEN_NG" ] || OPTS+=" --listen-ng=$LISTEN_NG"
OPTS+=" --listen-ng=$LISTEN_NG" [ -z "$LISTEN_CLI" ] || OPTS+=" --listen-cli=$LISTEN_CLI"
fi [ -z "$TIMEOUT" ] || OPTS+=" --timeout=$TIMEOUT"
[ -z "$SILENT_TIMEOUT" ] || OPTS+=" --silent-timeout=$SILENT_TIMEOUT"
if [[ -n "$LISTEN_CLI" ]] [ -z "$FINAL_TIMEOUT" ] || OPTS+=" --final-timeout=$FINAL_TIMEOUT"
then [ -z "$PIDFILE" ] || OPTS+=" --pidfile=$PIDFILE"
OPTS+=" --listen-cli=$LISTEN_CLI" [ -z "$TOS" ] || OPTS+=" --tos=$TOS"
fi [ -z "$PORT_MIN" ] || OPTS+=" --port-min=$PORT_MIN"
[ -z "$PORT_MAX" ] || OPTS+=" --port-max=$PORT_MAX"
if [[ -n "$TOS" ]] [ -z "$REDIS" ] || [ -z "$REDIS_DB" ] || OPTS+=" --redis=$REDIS/$REDIS_DB"
then [ -z "$REDIS_AUTH_PW" ] || export RTPENGINE_REDIS_AUTH_PW="$REDIS_AUTH_PW"
OPTS+=" --tos=$TOS" [ -z "$REDIS_WRITE" ] || [ -z "$REDIS_WRITE_DB" ] || OPTS+=" --redis-write=$REDIS_WRITE/$REDIS_WRITE_DB"
fi [ -z "$REDIS_WRITE_AUTH_PW" ] || export RTPENGINE_REDIS_WRITE_AUTH_PW="$REDIS_WRITE_AUTH_PW"
[ -z "$REDIS_NUM_THREADS" ] || OPTS+=" --redis-num-threads=$REDIS_NUM_THREADS"
if [[ -n "$TIMEOUT" ]] [ -z "$REDIS_EXPIRES" ] || OPTS+=" --redis-expires=$REDIS_EXPIRES"
then [ -z "$REDIS_MULTIKEY" ] || OPTS+=" --redis-multikey=$REDIS_MULTIKEY"
OPTS+=" --timeout=$TIMEOUT" [ -z "$NO_REDIS_REQUIRED" ] || ( [ "$NO_REDIS_REQUIRED" != "1" ] && [ "$NO_REDIS_REQUIRED" != "yes" ] ) || OPTS+=" --no-redis-required"
fi [ -z "$B2B_URL" ] || OPTS+=" --b2b-url=$B2B_URL"
[ -z "$LOG_LEVEL" ] || OPTS+=" --log-level=$LOG_LEVEL"
if [[ -n "$SILENT_TIMEOUT" ]] [ -z "$LOG_FACILITY" ] || OPTS+=" --log-facility=$LOG_FACILITY"
then [ -z "$LOG_FACILITY_CDR" ] || OPTS+=" --log-facility-cdr=$LOG_FACILITY_CDR"
OPTS+=" --silent-timeout=$SILENT_TIMEOUT" [ -z "$LOG_FACILITY_RTCP" ] || OPTS+=" --log-facility-rtcp=$LOG_FACILITY_RTCP"
fi [ -z "$NUM_THREADS" ] || OPTS+=" --num-threads=$NUM_THREADS"
[ -z "$DELETE_DELAY" ] || OPTS+=" --delete-delay=$DELETE_DELAY"
if [[ -n "$PORT_MIN" ]] [ -z "$GRAPHITE" ] || OPTS+=" --graphite=$GRAPHITE"
then [ -z "$GRAPHITE_INTERVAL" ] || OPTS+=" --graphite-interval=$GRAPHITE_INTERVAL"
OPTS+=" --port-min=$PORT_MIN" [ -z "$GRAPHITE_PREFIX" ] || OPTS+=" --graphite-prefix=$GRAPHITE_PREFIX"
fi [ -z "$MAX_SESSIONS" ] || OPTS+=" --max-sessions=$MAX_SESSIONS"
[ -z "$HOMER" ] || OPTS+=" --homer=$HOMER"
if [[ -n "$PORT_MAX" ]] [ -z "$HOMER_PROTOCOL" ] || OPTS+=" --homer-protocol=$HOMER_PROTOCOL"
then [ -z "$HOMER_ID" ] || OPTS+=" --homer-id=$HOMER_ID"
OPTS+=" --port-max=$PORT_MAX" [ -z "$RECORDING_METHOD" ] || OPTS+=" --recording-method=$RECORDING_METHOD"
fi [ -z "$RECORDING_FORMAT" ] || OPTS+=" --recording-format=$RECORDING_FORMAT"
[ -z "$DTLS_PASSIVE" ] || ( [ "$DTLS_PASSIVE" != "yes" ] && [ "$DTLS_PASSIVE" != "1" ] ) || OPTS+=" --dtls-passive"
if [ -n "$REDIS" -a -n "$REDIS_DB" ]
then # recording dir
OPTS+=" --redis=$REDIS/$REDIS_DB" if [ ! -z "$RECORDING_DIR" ];then
fi OPTS+=" --recording-dir=$RECORDING_DIR"
if [ ! -d "$RECORDING_DIR" ]; then
if [[ -n "$B2B_URL" ]] mkdir "$RECORDING_DIR" 2>/dev/null
then chmod 700 "$RECORDING_DIR" 2>/dev/null
OPTS+=" --b2b-url=$B2B_URL"
fi
if [[ -n "$LOG_LEVEL" ]]
then
OPTS+=" --log-level=$LOG_LEVEL"
fi fi
if [[ -n "$LOG_FACILITY" ]]
then
OPTS+=" --log-facility=$LOG_FACILITY"
fi
if [[ -n "$NUM_THREADS" ]]
then
OPTS+=" --num-threads=$NUM_THREADS"
fi
if [[ -n "$DELETE_DELAY" ]]
then
OPTS+=" --delete-delay=$DELETE_DELAY"
fi
if [[ -n "$GRAPHITE" ]]
then
OPTS+=" --graphite=$GRAPHITE"
fi
if [[ -n "$GRAPHITE_INTERVAL" ]]
then
OPTS+=" --graphite-interval=$GRAPHITE_INTERVAL"
fi
if [[ -n "$GRAPHITE_PREFIX" ]]
then
OPTS+=" --graphite-prefix=$GRAPHITE_PREFIX"
fi
if [[ -n "$LOG_FACILITY_CDR" ]]
then
OPTS+=" --log-facility-cdr=$LOG_FACILITY_CDR"
fi
if [[ -n "$LOG_FACILITY_RTCP" ]]
then
OPTS+=" --log-facility-rtcp=$LOG_FACILITY_RTCP"
fi
if [[ -n "$MAX_SESSIONS" ]]
then
OPTS+=" --max-sessions=$MAX_SESSIONS"
fi
if [[ -n "$HOMER_SERVER" ]]
then
OPTS+=" --homer=$HOMER_SERVER"
fi
if [[ -n "$HOMER_PROTO" ]]
then
OPTS+=" --homer-protocol=$HOMER_PROTO"
fi fi
if [[ -n "$HOMER_CAPTURE_ID" ]]
then
OPTS+=" --homer-id=$HOMER_CAPTURE_ID"
fi
} }
start() { start() {
build_opts build_opts
if [[ $MODULE == 1 ]] if [[ $MODULE == 1 ]];then
then
echo "Loading module for in-kernel packet forwarding" echo "Loading module for in-kernel packet forwarding"
rmmod xt_RTPENGINE 2> /dev/null rmmod xt_RTPENGINE 2> /dev/null
if [[ -n "$RE_USER" ]] if [[ -n "$SET_USER" ]];then
then if [[ -n "$SET_GROUP" ]];then
if [[ -n "$RE_GROUP" ]] proc_gid="$(grep "^$SET_GROUP:" /etc/group | cut -f3 -d:)"
then
proc_gid="$(grep "^$RE_GROUP:" /etc/group | cut -f3 -d:)"
else else
proc_gid="$(id "$RE_USER" -g)" proc_gid="$(id "$SET_USER" -g)"
fi fi
modprobe xt_RTPENGINE proc_uid="$(id "$RE_USER" -u)" proc_gid="$proc_gid" modprobe xt_RTPENGINE proc_uid="$(id "$SET_USER" -u)" proc_gid="$proc_gid"
else else
modprobe xt_RTPENGINE modprobe xt_RTPENGINE
fi fi
firewall-cmd --state 2>/dev/null firewall-cmd --state 2>/dev/null
if [[ $? == 0 ]] if [[ $? == 0 ]];then
then
# Using firewalld # Using firewalld
# Need to check if the INPUT_prefilter chain is present (permanently) # Need to check if the INPUT_prefilter chain is present (permanently)
firewall-cmd --permanent --direct --query-chain ipv4 filter INPUT_prefilter > /dev/null firewall-cmd --permanent --direct --query-chain ipv4 filter INPUT_prefilter > /dev/null
if [[ $? != 0 ]] if [[ $? != 0 ]];then
then
firewall-cmd --permanent --direct --add-chain ipv4 filter INPUT_prefilter firewall-cmd --permanent --direct --add-chain ipv4 filter INPUT_prefilter
firewall-cmd --permanent --direct --passthrough ipv4 -t filter -I INPUT -j INPUT_prefilter firewall-cmd --permanent --direct --passthrough ipv4 -t filter -I INPUT -j INPUT_prefilter
firewall-cmd --reload firewall-cmd --reload
@ -221,11 +146,12 @@ start() {
firewall-cmd --direct --add-rule ipv6 filter rtpengine 0 -p udp -j RTPENGINE --id "$TABLE" firewall-cmd --direct --add-rule ipv6 filter rtpengine 0 -p udp -j RTPENGINE --id "$TABLE"
firewall-cmd --reload firewall-cmd --reload
else else
iptables -N rtpengine for fw in iptables ip6tables;do
$fw -N rtpengine
# We insert the rtpengine rule at the top of the input chain # We insert the rtpengine rule at the top of the input chain
iptables -t filter -I INPUT -j rtpengine $fw -t filter -I INPUT -j rtpengine
iptables -I rtpengine -p udp -j RTPENGINE --id "$TABLE" $fw -I rtpengine -p udp -j RTPENGINE --id "$TABLE"
ip6tables -I rtpengine -p udp -j RTPENGINE --id "$TABLE" done
fi fi
cat <<EOF > "$cachefile" cat <<EOF > "$cachefile"
@ -233,10 +159,9 @@ CUR_TABLE=$TABLE
EOF EOF
fi fi
echo -n $"Starting $prog: " echo -n $"Starting $prog: "
if [[ -n "$RE_USER" ]] if [[ -n "$SET_USER" ]];then
then
# shellcheck disable=SC2086 # shellcheck disable=SC2086
daemon --user "$RE_USER" --pidfile="${pidfile}" "$rtpengine" $OPTS daemon --user "$SET_USER" --pidfile="${pidfile}" "$rtpengine" $OPTS
else else
# shellcheck disable=SC2086 # shellcheck disable=SC2086
daemon --pidfile="${pidfile}" "$rtpengine" $OPTS daemon --pidfile="${pidfile}" "$rtpengine" $OPTS
@ -252,24 +177,23 @@ stop() {
killproc -p "${pidfile}" "$rtpengine" killproc -p "${pidfile}" "$rtpengine"
RETVAL=$? RETVAL=$?
echo echo
if [ -f "$cachefile" ] if [ -f "$cachefile" ];then
then
. "$cachefile" . "$cachefile"
echo "Unloading module for in-kernel packet forwarding" echo "Unloading module for in-kernel packet forwarding"
echo "del $TABLE" > /proc/rtpengine/control echo "del $TABLE" > /proc/rtpengine/control
firewall-cmd --state 2>/dev/null firewall-cmd --state 2>/dev/null
if [[ $? == 0 ]] if [[ $? == 0 ]];then
then
firewall-cmd --direct --remove-rules ipv4 filter rtpengine firewall-cmd --direct --remove-rules ipv4 filter rtpengine
firewall-cmd --direct --remove-rules ipv6 filter rtpengine firewall-cmd --direct --remove-rules ipv6 filter rtpengine
firewall-cmd --direct --remove-rule ipv4 filter INPUT_prefilter 0 -j rtpengine firewall-cmd --direct --remove-rule ipv4 filter INPUT_prefilter 0 -j rtpengine
firewall-cmd --direct --remove-chain ipv4 filter rtpengine firewall-cmd --direct --remove-chain ipv4 filter rtpengine
firewall-cmd --reload firewall-cmd --reload
else else
iptables -D rtpengine -p udp -j RTPENGINE --id "$CUR_TABLE" for fw in iptables ip6tables;do
ip6tables -D rtpengine -p udp -j RTPENGINE --id "$CUR_TABLE" $fw -D rtpengine -p udp -j RTPENGINE --id "$CUR_TABLE"
iptables -t filter -D INPUT -j rtpengine $fw -t filter -D INPUT -j rtpengine
iptables -X rtpengine $fw -X rtpengine
done
fi fi
rmmod xt_RTPENGINE rmmod xt_RTPENGINE
rm -f "$cachefile" rm -f "$cachefile"

@ -1,6 +1,6 @@
Name: ngcp-rtpengine Name: ngcp-rtpengine
Version: 4.5.0 Version: 6.4.0.0
Release: 0%{?dist} Release: 1%{?dist}
Summary: The Sipwise NGCP rtpengine Summary: The Sipwise NGCP rtpengine
Group: System Environment/Daemons Group: System Environment/Daemons
@ -48,6 +48,16 @@ Requires(preun): dkms
%description dkms %description dkms
%{summary}. %{summary}.
%package recording
Summary: NGCP rtpengine recording daemon packet
Group: System Environment/Daemons
BuildRequires: gcc make redhat-rpm-config mariadb-devel
%description recording
%{summary}.
%define binname rtpengine %define binname rtpengine
%{!?kversion: %define kversion %(uname -r)} %{!?kversion: %define kversion %(uname -r)}
@ -63,6 +73,8 @@ cd daemon
RTPENGINE_VERSION="\"%{version}-%{release}\"" make RTPENGINE_VERSION="\"%{version}-%{release}\"" make
cd ../iptables-extension cd ../iptables-extension
RTPENGINE_VERSION="\"%{version}-%{release}\"" make RTPENGINE_VERSION="\"%{version}-%{release}\"" make
cd ../recording-daemon
RTPENGINE_VERSION="\"%{version}-%{release}\"" make
cd .. cd ..
@ -71,13 +83,26 @@ cd ..
install -D -p -m755 daemon/%{binname} %{buildroot}%{_sbindir}/%{binname} install -D -p -m755 daemon/%{binname} %{buildroot}%{_sbindir}/%{binname}
# Install CLI (command line interface) # Install CLI (command line interface)
install -D -p -m755 utils/%{binname}-ctl %{buildroot}%{_sbindir}/%{binname}-ctl install -D -p -m755 utils/%{binname}-ctl %{buildroot}%{_sbindir}/%{binname}-ctl
# Install recording daemon
install -D -p -m755 recording-daemon/%{binname}-recording %{buildroot}%{_sbindir}/%{binname}-recording
## Install the init.d script and configuration file ## Install the init.d script and configuration file
install -D -p -m755 el/%{binname}.init \ install -D -p -m755 el/%{binname}.init \
%{buildroot}%{_initrddir}/%{name} %{buildroot}%{_initrddir}/%{name}
install -D -p -m755 el/%{binname}-recording.init \
%{buildroot}%{_initrddir}/%{name}-recording
install -D -p -m644 el/%{binname}.sysconfig \ install -D -p -m644 el/%{binname}.sysconfig \
%{buildroot}%{_sysconfdir}/sysconfig/%{binname} %{buildroot}%{_sysconfdir}/sysconfig/%{binname}
install -D -p -m644 el/%{binname}-recording.sysconfig \
%{buildroot}%{_sysconfdir}/sysconfig/%{binname}-recording
mkdir -p %{buildroot}%{_sharedstatedir}/%{name} mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
mkdir -p %{buildroot}%{_var}/spool/%{binname}
# Install config files
install -D -p -m644 etc/%{binname}.sample.conf \
%{buildroot}%{_sysconfdir}/%{binname}/%{binname}.conf
install -D -p -m644 etc/%{binname}-recording.sample.conf \
%{buildroot}%{_sysconfdir}/%{binname}/%{binname}-recording.conf
# Install the iptables plugin # Install the iptables plugin
install -D -p -m755 iptables-extension/libxt_RTPENGINE.so \ install -D -p -m755 iptables-extension/libxt_RTPENGINE.so \
@ -140,12 +165,12 @@ true
%{_sbindir}/%{binname} %{_sbindir}/%{binname}
# CLI (command line interface) # CLI (command line interface)
%{_sbindir}/%{binname}-ctl %{_sbindir}/%{binname}-ctl
# init.d script and configuration file # init.d script and configuration file
%{_initrddir}/%{name} %{_initrddir}/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{binname} %config(noreplace) %{_sysconfdir}/sysconfig/%{binname}
%attr(0750,%{name},%{name}) %dir %{_sharedstatedir}/%{name} %attr(0750,%{name},%{name}) %dir %{_sharedstatedir}/%{name}
# default config
%{_sysconfdir}/%{binname}/%{binname}.conf
# Documentation # Documentation
%doc LICENSE README.md el/README.el.md debian/changelog debian/copyright %doc LICENSE README.md el/README.el.md debian/changelog debian/copyright
@ -161,7 +186,22 @@ true
%endif %endif
%files recording
# Recording daemon
%{_sbindir}/%{binname}-recording
# Init script
%{_initrddir}/%{name}-recording
# Sysconfig
%config(noreplace) %{_sysconfdir}/sysconfig/%{binname}-recording
# Default config
%{_sysconfdir}/%{binname}/%{binname}-recording.conf
# spool directory
%attr(0750,%{name},%{name}) %dir %{_var}/spool/%{binname}
%changelog %changelog
* Tue Jul 10 2018 netaskd <netaskd@gmail.com> - 6.4.0.0-1
- update to ngcp-rtpengine version 6.4.0.0
- add packet recording
* Thu Nov 24 2016 Marcel Weinberg <marcel@ng-voice.com> * Thu Nov 24 2016 Marcel Weinberg <marcel@ng-voice.com>
- Updated to ngcp-rtpengine version 4.5.0 and CentOS 7.2 - Updated to ngcp-rtpengine version 4.5.0 and CentOS 7.2
- created a new variable "binname" to use rtpengine as name for the binaries - created a new variable "binname" to use rtpengine as name for the binaries

@ -1,34 +1,26 @@
# For more information on configuring rtpengine see # For more information on configuring rtpengine see
# http://github.com/sipwise/rtpengine # http://github.com/sipwise/rtpengine
#
# (m) means the item is mandatory, (o) means the item is optional CONFIG_FILE=/etc/rtpengine/rtpengine.conf # main config file
# PIDFILE=/var/run/ngcp-rtpengine-daemon.pid # pid
KERNEL=yes # (m) "yes" enable in-kernel forwarding, "no" disables KERNEL=yes # "yes" enable in-kernel forwarding, "no" disables
TABLE=0 # (o) iptables table for in-kernel forwarding rules TABLE=0 # iptables table for in-kernel forwarding rules. Ignored if "KERNEL=no"
# comment out when "KERNEL=no" FALLBACK=yes # "yes" enables fallback to userspace forwarding only.
FALLBACK=yes # (m) "yes" enables fallback to userspace forwarding RTP_IP[0]=127.0.0.1 # Local IPv4/6 address for RTP. The format of the value is [NAME/]IP[!IP].
# only, "no" disables
RTP_IP[0]=127.0.0.1 # (m) Local IPv4/6 address for RTP. The format of the value is [NAME/]IP[!IP].
#
# At least one of LISTEN_(TCP|UDP|NG) is required # At least one of LISTEN_(TCP|UDP|NG) is required
#LISTEN_TCP=127.0.0.1:2222 # IP address and port combination for TCP #LISTEN_TCP=127.0.0.1:2222 # IP address and port combination for TCP control
# control LISTEN_UDP=127.0.0.1:2222 # IP address and port combination for UDP control
LISTEN_UDP=127.0.0.1:2222 # IP address and port combination for UDP #LISTEN_NG=127.0.0.1:2223 # IP address and port combination for NG (UDP) control
# control
#LISTEN_NG=127.0.0.1:2223 # IP address and port combination for NG (UDP)
# control
#LISTEN_CLI=127.0.0.1:9900 #LISTEN_CLI=127.0.0.1:9900
# #
#TOS=184 # (o) TOS value to use in outgoing packets #TOS=184 # TOS value to use in outgoing packets
#TIMEOUT=60 # (o) Number of seconds after which a media stream is #TIMEOUT=60 # Number of seconds after which a media stream is considered dead if there is no traffic. Default: 60
# considered dead if there is no traffic. #SILENT_TIMEOUT=3600 # Number of seconds after which a muted or inactive stream is considered dead. Default: 3600
# Default: 60 #PORT_MIN=30000 # Lowest port in the local port range for media traffic. Default: 30000
#SILENT_TIMEOUT=3600 # (o) Number of seconds after which a muted or inactive #PORT_MAX=40000 # Highest port in the local port range for media traffic. Default: 40000
# stream is considered dead. Default: 3600
#PORT_MIN=30000 # (o) Lowest port in the local port range for media
# traffic. Default: 30000
#PORT_MAX=40000 # (o) Highest port in the local port range for media
# traffic. Default: 40000
# #
#LOG_LEVEL=6 # Log level to use #LOG_LEVEL=6 # Log level to use
#LOG_FACILITY=daemon # Syslog facility to use #LOG_FACILITY=daemon # Syslog facility to use
@ -41,10 +33,11 @@ LISTEN_UDP=127.0.0.1:2222 # IP address and port combination for UDP
#REDIS_DB=0 #REDIS_DB=0
#B2B_URL=http://127.0.0.1:8080/xmlrpc #B2B_URL=http://127.0.0.1:8080/xmlrpc
#RE_USER=ngcp-rtpengine # Run rtpengine as this specific user # User
#SET_USER=ngcp-rtpengine # Run rtpengine as this specific user
#RE_GROUP=ngcp-rtpengine # allow this group to control rtpengine in kernel mode #SET_GROUP=ngcp-rtpengine # allow this group to control rtpengine in kernel mode
#HOMER_SERVER=127.0.0.1:9060 # Address of Homer server for RTCP stats #HOMER_SERVER=127.0.0.1:9060 # Address of Homer server for RTCP stats
#HOMER_PROTO=udp # Transport protocol for Homer (default udp) #HOMER_PROTO=udp # Transport protocol for Homer (default udp)
#HOMER_CAPTURE_ID=1234 # 'Capture ID' to use within the HEP protocol #HOMER_CAPTURE_ID=1234 # 'Capture ID' to use within the HEP protocol

Loading…
Cancel
Save