Skip to content

Commit

Permalink
Send options ping sip gateway (#363)
Browse files Browse the repository at this point in the history
* wip

* up options ping

* update review comments
  • Loading branch information
xquanluu authored Apr 15, 2024
1 parent 4df5709 commit 1111e93
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
23 changes: 23 additions & 0 deletions src/containers/internal/views/carriers/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1111e93

Please sign in to comment.