Вызов 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
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

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