.NET
Add Voice Controller
Right-click on the Controllers folder and select add->Controller. Select "Add Empty MVC Controller" and name it VoiceController.
Add using statements for Vonage.Voice, Vonage.Voice.Nccos, Vonage.Voice.Nccos.Endpoints, Vonage.Request, and Microsoft.Extensions.Configuration at the top of this file.
Inject Configuration
Dependency inject an IConfiguration object via the constructor:
private readonly IConfiguration _config { get; set; }
public VoiceController(IConfiguration config)
{
_config = config;
}
Play Audio into a Call with .NET
A tutorial showing you how to build an app that will play audio into a PSTN call
Steps
1
Introduction to this tutorial2
Prerequisites3
Create .NET Voice Application4
Install Vonage Dotnet5
Add a Voice Controller6
Add Make Call Action7
Add a Receive Call Route8
Add a Voice View9
Set Startup Route10
Configure the ASP.NET App11
Run the .NET App12
What's Next?