I am trying to make an outgoing call using Twilio and C#.
I gave the (fromnumber, tonumber, twiliodemourl) as 3 parameters for initiate outbound call.Then it is working with default twilio demo voice content.
Now i need to customize the voice content attribute and some other attributes every time i trigger the initiate outbound call method
I have gone through Twilio docs i did not find any good option for customize the content dynamically from the code using C# every time i send the request.
My client application running periodically to verify for any new messages and then trigger initiateoutboundcall.
I don't have any custom URL to post any new XML which voice is looking for in 3rd parameter of initiateOutBoundCall.
So is it required a external domain URL to customize the voice content dynamically from code? If no please provide the options/sample i have to do it from C# console application.
I tried to use the twimlets.com to echo the custom text to speak in the call. For text change it is working fine with custom text. But i am not sure whether twimlets.com/echo can be used for production use? Please confirm. Twimlets is not supporting some of the features which i am looking for like Gather input like IVR message for outbound call.
Using Twilio Voice and C# client:
Voice Request using Twilio C# client?
- Dial the number with custom voice content(). If user not responds leave a voice mail with the custom voice content().
- Dial the number with custom voice content (). If user responds, after reading
the message need to provide options like:
- press 1 for repeat the same voice message.
- press 2 to confirm the action on the message.
- press 3 to send SMS for the voice message.
Need to get the response for each voice call / message?
For the sms it send i am getting response as "queued" instead of message sent. Based on the SMS sent successfully or not i need to update some flag. So how i can get the SMS reponse as "sent".
SMSMessage sms = twilio.SendSmsMessage(sFromNumber, sToNumber, sMessage); Console.WriteLine("SMS Status::::::" + sms.Status);
Similarly I need the reponse for voice call once the call is ring id done. But it is giving "queued".
var call = twilio.InitiateOutboundCall(sFromNumber,sToNumber, url); Console.WriteLine("Call Status" + call.Status);
So please provide me options for doing it using Twilio.
It would be great if you provide any sample example using C#.