Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions voice/connect-an-inbound-call.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require('dotenv').config({ path: __dirname + '/../.env' });

const VONAGE_NUMBER = process.env.VONAGE_NUMBER;
const VONAGE_VIRTUAL_NUMBER = process.env.VONAGE_VIRTUAL_NUMBER;
const VOICE_TO_NUMBER = process.env.VOICE_TO_NUMBER;
const port = process.env.PORT || 3000;

const Express = require('express');
Expand All @@ -12,11 +12,11 @@ const onInboundCall = (_, response) => {
const ncco = [
{
action: 'connect',
from: VONAGE_NUMBER,
from: VONAGE_VIRTUAL_NUMBER,
endpoint: [
{
type: 'phone',
number: VONAGE_VIRTUAL_NUMBER,
number: VOICE_TO_NUMBER,
},
],
},
Expand Down