Add a Receive Call Route

You will now provide an answer webhook so that when you receive an inbound call on your virtual number, the Vonage API platform will notify you on that webhook via an HTTP request.

The webhook will return an NCCO to Vonage containing a single stream action, which will play the audio from the file located at the STREAM_URL into the call.

For testing purposes you will use the URL:

Add the following code to the VoiceController class

public string Answer()
    const string STREAM_URL = "";
    var streamAction = new StreamAction{
        StreamUrl = new string[]
    var ncco = new Ncco(streamAction);
    return ncco.ToString();