Send options ping sip gateway (#363)

* wip

* up options ping

* update review comments
This commit is contained in:
Hoan Luu Huu
2024-04-15 18:19:35 +07:00
committed by GitHub
parent 4df5709c10
commit 1111e93918
2 changed files with 24 additions and 0 deletions
+1
View File
@@ -485,6 +485,7 @@ export interface SipGateway extends Gateway {
protocol?: string;
port: number | null;
pad_crypto?: boolean;
send_options_ping?: boolean;
}
export interface SmppGateway extends Gateway {
@@ -1119,6 +1119,29 @@ export const CarrierForm = ({
</label>
</div>
)}
{Boolean(g.outbound) && (
<div>
<label
htmlFor={`send_options_ping_${i}`}
className="chk"
>
<input
id={`send_options_ping_${i}`}
name={`send_options_ping_${i}`}
type="checkbox"
checked={g.send_options_ping ? true : false}
onChange={(e) => {
updateSipGateways(
i,
"send_options_ping",
e.target.checked,
);
}}
/>
<div>Send OPTIONS ping</div>
</label>
</div>
)}
</div>
<button