/plushcap/analysis/vonage/vonage-handle-an-incoming-call-with-go

Handle an Incoming Call With Go

What's this blog post about?

This tutorial teaches developers how to handle incoming phone calls using a JSON array of actions called Call Control Objects (NCCOs) with the help of Go and the Voice API from Vonage. To complete this tutorial, one needs to have a Vonage API account, a virtual phone number, and a Vonage application with voice capabilities. The code handles two types of webhook requests: `answer` and `event`, which are triggered by incoming calls and events, respectively. When a call comes in, the code creates a Talk Ncco Action with a thank-you message for the caller, which is then returned as the response to the webhook request. To test the application, one needs to run the provided Go code and access the `/webhooks/answer` URL in a browser, where they will hear the pre-recorded message. The tutorial also discusses exposing the project to the internet using Ngrok and configuring the settings for the Vonage application.

Company
Vonage

Date published
Dec. 3, 2020

Author(s)
Greg Holmes

Word count
985

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.