Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am not understand how to record the call using response.record() in mp3 format and i want to also know after recording how to save the recordings in database.

What I have tried:

[HttpPost]

public TwiMLResult recievecall(int?count=null)
{
var response = new VoiceResponse();
response.Record();
response.Say(IvrResource.IVR1Welcome);
response.Pause(length: 1);
if (count == null) { count = 0; }
while (count < 3)
{
response.Say(IvrResource.IVR2EnterNo);
count++;
var gather = new Gather(action: new Uri("https://860a78d2.ngrok.io/newvoice/inputnumber?count=" + count), finishOnKey: "*", timeout: 7);
response.Append(gather);
}
response.Say(IvrResource.IVR9Limit);
response.Pause(length: 2);
response.Hangup();
return TwiML(response);
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900