...
 
Commits (3)
......@@ -5,4 +5,13 @@ rtpstart=${rtpstart:-10000}
rtpend=$(uci -q get $VOICE_UCI_CONFIG.SIP.rtpend)
rtpend=${rtpend:-20000}
sip_proto=udp
sip_port=5060
transport=$(uci -q get $VOICE_UCI_CONFIG.sip0.transport)
if [ "$transport" = "tls" ]; then
sip_proto=tcp
sip_port=5061
fi
iptables -I zone_wan_input -m $sip_proto -p $sip_proto --dport $sip_port -m comment --comment "!fw3: Allow-SIP" -j ACCEPT
iptables -I zone_wan_input -m udp -p udp --dport $rtpstart:$rtpend -m comment --comment "!fw3: Allow-RTP" -j ACCEPT