add voip_carriers.e164_leading_plus for carrier-level configuration of E.164 dial string

This commit is contained in:
Dave Horton
2020-07-16 09:45:59 -04:00
parent 326b1b673e
commit 4efee5a8b8
5 changed files with 36 additions and 11 deletions
+3 -2
View File
@@ -22,7 +22,8 @@ test('voip carrier tests', async(t) => {
auth: authAdmin,
json: true,
body: {
name: 'daveh'
name: 'daveh',
e164_leading_plus: true
}
});
t.ok(result.statusCode === 201, 'successfully created voip carrier');
@@ -33,7 +34,7 @@ test('voip carrier tests', async(t) => {
auth: authAdmin,
json: true,
});
t.ok(result.length === 1 , 'successfully queried all voip carriers');
t.ok(result.length === 1 && result[0].e164_leading_plus, 'successfully queried all voip carriers');
/* query one voip carriers */
result = await request.get(`/VoipCarriers/${sid}`, {