Home / Companies / Vonage / Blog / Post Details
Content Deep Dive

Handle an Incoming Call With Go

Blog post from Vonage

Post Details
Company
Date Published
Author
Greg Holmes
Word Count
985
Company Posts That Month
12
Language
English
Hacker News Points
-
Post removed?
No
Summary

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.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.