From 42fd4f199ed56405efa2b21eb936c5b287b16aa1 Mon Sep 17 00:00:00 2001 From: Hoan HL Date: Sat, 8 Nov 2025 15:34:46 +0700 Subject: [PATCH] Inbound and outbound sipgateway can be duplicated --- .../internal/views/carriers/form.tsx | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/src/containers/internal/views/carriers/form.tsx b/src/containers/internal/views/carriers/form.tsx index 4e30976..72889bc 100644 --- a/src/containers/internal/views/carriers/form.tsx +++ b/src/containers/internal/views/carriers/form.tsx @@ -577,26 +577,6 @@ export const CarrierForm = ({ return "Each SIP gateway must have a unique IP address."; } } - - // Check for duplicates between inbound and outbound gateways - for (let i = 0; i < sipInboundGateways.length; i++) { - const inboundGateway = sipInboundGateways[i]; - const dupeInOutbound = sipOutboundGateways.find((g) => { - return ( - inboundGateway.ipv4 && - g.ipv4 === inboundGateway.ipv4 && - g.port === inboundGateway.port - ); - }); - - if (dupeInOutbound) { - if (refSipInboundIp.current[i]) { - refSipInboundIp.current[i].focus(); - } - setActiveTab("inbound"); - return "Each SIP gateway must have a unique IP address."; - } - } }; const getSmppValidation = () => {