Using twilio API how to make a call and extract the call response in Text format.
below is my code - I am able to make the call to specified number, but after making the call and after answering the call it says the configured message and then It just disconnects - It doesn't allow call recipient to speak.
And also how to extract the call response in text format (I mean whatever phone call recipient has responded)?
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OfficeOpenXml;
using System.Data;
using ExcelDataReader;
using Twilio;
using Twilio.Rest.Api.V2010.Account;
using Twilio.TwiML;
using System.Net.Http;
namespace CustomerCallerV1._0
{
internal class Program
{
static void Main(string[] args)
{
TwilioClient.Init("1603567658742638756874", "378659876587634785");
var call = CallResource.Create(
twiml: new Twilio.Types.Twiml($"<Response><Say>Hi, How are you Doing?Is that a good time to talk now ?</Say></Response>"),
to: new Twilio.Types.PhoneNumber($"+12396467367"),
from: new Twilio.Types.PhoneNumber("+12396467368"));
}
}
}
var call = CallResource.Create(
twiml: new Twilio.Types.Twiml($"<Response><Say>{column2}</Say></Response>"),
to: new Twilio.Types.PhoneNumber($"+12396467367"),
from: new Twilio.Types.PhoneNumber("+12396467368"));