Вызов Twilio зависает после зависания после воспроизведения ответаC#

Место общения программистов C#
Anonymous
Вызов Twilio зависает после зависания после воспроизведения ответа

Сообщение Anonymous »


I am trying to build this simple example using twilio C# api:

string accountSid = Environment.GetEnvironmentVariable("TWILIO_ACCOUNT_SID"); string authToken = Environment.GetEnvironmentVariable("TWILIO_AUTH_TOKEN"); TwilioClient.Init(accountSid, authToken); var call = CallResource.Create( twiml: new Twilio.Types.Twiml("Ahoy there!"), to: new Twilio.Types.PhoneNumber("+15558675310"), from: new Twilio.Types.PhoneNumber("+15552223214") ); Console.WriteLine(call.Sid); This example is from Twilio documentation itself. After replacing the account id, authtoken and phone number, this program just say the response "Ahoy there" and hangs up the call. If I add "Redirect" verb with a relative or absolute path, it just process the verbs specified in redirected file and ends the call.

I want to keep the call alive and not hang up as twilio api is doing it. Is there any configuration I am missing?


Источник: https://stackoverflow.com/questions/780 ... g-response

Вернуться в «C#»