Skip to content

Commit 44145eb

Browse files
authored
fix: missing from parameter in make outbound call with NCCO (#185)
1 parent cb64854 commit 44145eb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

voice/make-an-outbound-call-with-ncco.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ const builder = new NCCOBuilder();
1717
builder.addAction(new Talk('This is a text to speech call from Vonage'));
1818

1919
vonage.voice.createOutboundCall({
20-
ncco: builder.build(),
2120
to: [
2221
{
2322
type: 'phone',
2423
number: VOICE_TO_NUMBER,
2524
},
26-
{
27-
type: 'phone',
28-
number: VONAGE_VIRTUAL_NUMBER,
29-
},
3025
],
26+
from: {
27+
type: 'phone',
28+
number: VONAGE_VIRTUAL_NUMBER,
29+
},
30+
ncco: builder.build(),
3131
})
3232
.then((result) => console.log(result))
3333
.catch((error) => console.error(error));

0 commit comments

Comments
 (0)