mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-07-04 19:21:58 +00:00
Send options ping sip gateway (#363)
* wip * up options ping * update review comments
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user