feat send options ping for sip gateway (#273)

* feat send options ping for sip gateway

* update upgrade db script to have 8006
This commit is contained in:
Hoan Luu Huu
2024-03-30 20:14:29 +07:00
committed by GitHub
parent 3ac9693735
commit a4792a521f
4 changed files with 26 additions and 12 deletions

View File

@@ -28,7 +28,8 @@ test('sip gateway tests', async(t) => {
netmask: 32,
inbound: true,
outbound: true,
protocol: 'tcp'
protocol: 'tcp',
send_options_ping: true,
}
});
t.ok(result.statusCode === 201, 'successfully created sip gateway ');
@@ -41,6 +42,7 @@ test('sip gateway tests', async(t) => {
json: true,
});
t.ok(result.length === 1 , 'successfully queried all sip gateways');
t.ok(result[0].send_options_ping === 1 , 'successfully queried all sip gateways');
/* query one sip gateway */
result = await request.get(`/SipGateways/${sid}`, {