Update rtpengine.init

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

@ -56,26 +56,22 @@ build_opts() {
fi fi
shopt -u nocasematch shopt -u nocasematch
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 fi
OPTS+="!$RTP_ADV_IP"
fi
if [[ -n "$RTP_IP6" ]]
then
OPTS+=" --interface=$RTP_IP6"
IP6=1
fi
if [[ -n "$RTP_ADV_IP6" ]] if [[ -n "$RTP_IP6" ]]
then then
OPTS+="!$RTP_ADV_IP6" for IP6 in "${RTP_IP6[@]}"
fi do
OPTS+=" --interface=$IP6"
done
IP6=1
fi
if [[ -n "$LISTEN_TCP" ]] if [[ -n "$LISTEN_TCP" ]]
then then

Loading…
Cancel
Save