Compare commits

...

1 Commits

Author SHA1 Message Date
Quan HL
3d0029d08c pad crypto sip gateway 2023-09-18 13:41:03 +07:00
3 changed files with 25 additions and 1 deletions

View File

@@ -469,6 +469,7 @@ export interface SipGateway extends Gateway {
sip_gateway_sid?: null | string;
is_active: boolean;
protocol?: string;
pad_crypto?: boolean;
}
export interface SmppGateway extends Gateway {

View File

@@ -1064,6 +1064,29 @@ export const CarrierForm = ({
<div>Outbound</div>
</label>
</div>
{g.outbound > 0 && g.protocol === "tls/srtp" && (
<div>
<label
htmlFor={`sip_pad_crypto_${i}`}
className="chk"
>
<input
id={`sip_pad_crypto_${i}`}
name={`sip_pad_crypto_${i}`}
type="checkbox"
checked={g.pad_crypto ? true : false}
onChange={(e) => {
updateSipGateways(
i,
"pad_crypto",
e.target.checked
);
}}
/>
<div>Pad crypto</div>
</label>
</div>
)}
</div>
<button

View File

@@ -227,7 +227,7 @@ fieldset {
}
&:nth-child(2) {
grid-template-columns: repeat(3, 1fr);
grid-template-columns: repeat(4, 1fr);
margin-top: ui-vars.$px02;
> div:last-child {