Update rtpengine.init

Refactoring $RTP_IP/$RTP_IP6 so we can use a number of parameters for --interface command line
pull/55/head
sybasesql 11 years ago
parent 3cfeb5ddbc
commit b94bae87f1

@ -58,25 +58,21 @@ build_opts() {
if [[ -n "$RTP_IP" ]] if [[ -n "$RTP_IP" ]]
then then
OPTS+=" --interface=$RTP_IP" for IP in "${RTP_IP[@]}"
fi do
OPTS+=" --interface=$IP"
if [[ -n "$RTP_ADV_IP" ]] done
then
OPTS+="!$RTP_ADV_IP"
fi fi
if [[ -n "$RTP_IP6" ]] if [[ -n "$RTP_IP6" ]]
then then
OPTS+=" --interface=$RTP_IP6" for IP6 in "${RTP_IP6[@]}"
do
OPTS+=" --interface=$IP6"
done
IP6=1 IP6=1
fi fi
if [[ -n "$RTP_ADV_IP6" ]]
then
OPTS+="!$RTP_ADV_IP6"
fi
if [[ -n "$LISTEN_TCP" ]] if [[ -n "$LISTEN_TCP" ]]
then then
OPTS+=" --listen-tcp=$LISTEN_TCP" OPTS+=" --listen-tcp=$LISTEN_TCP"

Loading…
Cancel
Save