add use sips scheme to outbound tls gateway (#439)

* add use sips scheme to outbound tls gateway

* update license
This commit is contained in:
Hoan Luu Huu
2024-06-15 20:13:04 +07:00
committed by GitHub
parent a3c48e7efb
commit dcdc2c0808
3 changed files with 27 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
MIT License 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@@ -489,6 +489,7 @@ export interface SipGateway extends Gateway {
port: number | null; port: number | null;
pad_crypto?: boolean; pad_crypto?: boolean;
send_options_ping?: boolean; send_options_ping?: boolean;
use_sips_scheme?: boolean;
} }
export interface SmppGateway extends Gateway { export interface SmppGateway extends Gateway {

View File

@@ -1142,6 +1142,30 @@ export const CarrierForm = ({
</label> </label>
</div> </div>
)} )}
{Boolean(g.outbound) &&
(g.protocol === "tls" || g.protocol === "tls/srtp") && (
<div>
<label
htmlFor={`use_sips_scheme_${i}`}
className="chk"
>
<input
id={`use_sips_scheme_${i}`}
name={`use_sips_scheme_${i}`}
type="checkbox"
checked={g.use_sips_scheme ? true : false}
onChange={(e) => {
updateSipGateways(
i,
"use_sips_scheme",
e.target.checked,
);
}}
/>
<div>Use sips scheme</div>
</label>
</div>
)}
</div> </div>
<button <button