merge of features from hosted branch (#7)

major merge of features from the hosted branch that was created temporarily during the initial launch of jambonz.org
This commit is contained in:
Dave Horton authored and GitHub committed 2021-06-17 15:56:21 -04:00
1 parent ab7c69c0e8
commit ed51d8b13f
105 files changed
+10330 -1601

No files matched your search

+5 -2
View File
@@ -1,4 +1,4 @@
const test = require('blue-tape').test ;
const test = require('tape') ;
const ADMIN_TOKEN = '38700987-c7a4-4685-a5bb-af378f9734de';
const authAdmin = {bearer: ADMIN_TOKEN};
const request = require('request-promise-native').defaults({
@@ -25,6 +25,7 @@ test('sip gateway tests', async(t) => {
body: {
voip_carrier_sid,
ipv4: '192.168.1.1',
netmask: 32,
inbound: true,
outbound: true
}
@@ -34,6 +35,7 @@ test('sip gateway tests', async(t) => {
/* query all sip gateways */
result = await request.get('/SipGateways', {
qs: {voip_carrier_sid},
auth: authAdmin,
json: true,
});
@@ -55,12 +57,13 @@ test('sip gateway tests', async(t) => {
resolveWithFullResponse: true,
body: {
port: 5061,
netmask:24,
outbound: false
}
});
t.ok(result.statusCode === 204, 'successfully updated voip carrier');
/* delete sip gatewas */
/* delete sip gateways */
result = await request.delete(`/SipGateways/${sid}`, {
resolveWithFullResponse: true,
simple: false,