From dcdc2c0808364f9c9de39c6a0a8086c3b2c4763d Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Sat, 15 Jun 2024 20:13:04 +0700 Subject: [PATCH] add use sips scheme to outbound tls gateway (#439) * add use sips scheme to outbound tls gateway * update license --- LICENSE | 4 ++-- src/api/types.ts | 1 + .../internal/views/carriers/form.tsx | 24 +++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/LICENSE b/LICENSE index 0f11736..5a47215 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Drachtio Communications Services, LLC +Copyright (c) 2018-2024 FirstFive8, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/src/api/types.ts b/src/api/types.ts index 0b266f1..a2f1a0d 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -489,6 +489,7 @@ export interface SipGateway extends Gateway { port: number | null; pad_crypto?: boolean; send_options_ping?: boolean; + use_sips_scheme?: boolean; } export interface SmppGateway extends Gateway { diff --git a/src/containers/internal/views/carriers/form.tsx b/src/containers/internal/views/carriers/form.tsx index afe66c1..3a2b94d 100644 --- a/src/containers/internal/views/carriers/form.tsx +++ b/src/containers/internal/views/carriers/form.tsx @@ -1142,6 +1142,30 @@ export const CarrierForm = ({ )} + {Boolean(g.outbound) && + (g.protocol === "tls" || g.protocol === "tls/srtp") && ( +
+ +
+ )}