need to provide status ENABLED when creating a subspace teleport

This commit is contained in:
Dave Horton
2021-12-08 20:11:15 -05:00
parent f6d358d3df
commit 0fd87a732f
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -385,7 +385,7 @@ router.post('/:sid/SubspaceTeleport', async(req, res) => {
const teleport = await enableSubspace({
subspace_client_id,
subspace_client_secret,
destination: `sip:${dest}`
destination: dest
});
logger.info({destination, teleport}, 'SubspaceTeleport - create teleport');
await Account.update(req.params.sid, {
+2 -1
View File
@@ -247,8 +247,9 @@ const enableSubspace = async(opts) => {
const teleport = await postTeleport('/v1/sipteleport',
{
name: 'Jambonz',
destination,
name: 'Jambonz'
status: 'ENABLED'
},
{
'Content-Type': 'application/json',
+2
View File
@@ -10,6 +10,7 @@ networks:
services:
mysql:
platform: linux/x86_64
image: mysql:5.7
ports:
- "3360:3306"
@@ -35,6 +36,7 @@ services:
ipv4_address: 172.58.0.3
influxdb:
platform: linux/x86_64
image: influxdb:1.8-alpine
ports:
- "8086:8086"