From 83a9ba888fb935ece2e72f570321ff541cccfb34 Mon Sep 17 00:00:00 2001 From: Prabhudas Gannavarapu Date: Tue, 10 Feb 2026 12:15:01 +0000 Subject: [PATCH] RDKBACCL-344: Bringup Telco Voice Manager in RDK-B BPI R4 router Reason for change: Adding firewall rules to support voice. Test Procedure: verify that rules were added are not using "iptables -nL" verify that registrations and endpoints are configured properly or not. Risks: None --- source/firewall/firewall.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/firewall/firewall.c b/source/firewall/firewall.c index b0237dd7..674ae8f7 100644 --- a/source/firewall/firewall.c +++ b/source/firewall/firewall.c @@ -13836,6 +13836,10 @@ WAN_FAILOVER_SUPPORT_CHECk_END } fprintf(filter_fp, "-I FORWARD -o %s -m state --state INVALID -j DROP\n",current_wan_ifname); #endif +#if defined(_PLATFORM_BANANAPI_R4_) + fprintf(filter_fp, "-I INPUT -p udp --dport 5060 -j ACCEPT\n"); + fprintf(filter_fp, "-I INPUT -p udp --dport 10000:20000 -j ACCEPT\n"); +#endif fprintf(raw_fp, "COMMIT\n"); fprintf(mangle_fp, "COMMIT\n"); fprintf(nat_fp, "COMMIT\n");