mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2025-12-19 05:47:46 +00:00
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:
@@ -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}`, {
|
||||
|
||||
Reference in New Issue
Block a user