diff --git a/lib/routes/api/accounts.js b/lib/routes/api/accounts.js index 6bd1b1a..58b4549 100644 --- a/lib/routes/api/accounts.js +++ b/lib/routes/api/accounts.js @@ -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, { diff --git a/lib/routes/api/utils.js b/lib/routes/api/utils.js index 3fc124b..c6bc2cd 100644 --- a/lib/routes/api/utils.js +++ b/lib/routes/api/utils.js @@ -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', diff --git a/test/docker-compose-testbed.yaml b/test/docker-compose-testbed.yaml index dc4248b..ae48e57 100644 --- a/test/docker-compose-testbed.yaml +++ b/test/docker-compose-testbed.yaml @@ -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"