twilio

Failed to provide proxy info to twilio pythonanywhere

倖福魔咒の 提交于 2019-12-13 03:54:53
问题 I am trying to use Twilio in pythonanywhere and I know I need a proxy to make it work. My code looks like this: class ProxiedTwilioHttpClient(HttpClient): """ General purpose HTTP Client for interacting with the Twilio API """ def request(self, method, url, params=None, data=None, headers=None, auth=None, timeout=None, allow_redirects=False): session = Session() session.verify = get_cert_file() session.proxies = { "https" : "https://52.14.161.178:3128" } request = Request(method.upper(), url,

Twilio JS SDK, i want to answer a softphone call in a different window

廉价感情. 提交于 2019-12-13 03:54:53
问题 I created a soft phone that uses the Twilio Javascript tutorial (quickstart), it works ok...my problem is: i have a system that will receive the call from twilio (browser notification) and i want that the user, answer that call on a new window (pop up), that will show only a mute and a hangup button. Thats the problem, the Twilio object were created on the parent window and works ok, but i was unable to "take" the call in the new (child) window, because once a redeclare the twilio object on

Twilio MMS status is always remains Sent when sent using Bot framework

我的未来我决定 提交于 2019-12-13 03:44:42
问题 I am building a bot for Twilio (SMS) channel. When I send a Simple plain SMS to a number in US, it gets delivered with status in twilio message log as Delivered . But when I attach any image to the message to send MMS, the message never gets delivered, and its status in twilio log remains sent always. Here is how I'm attaching media to MMS. var msg = new builder.Message(session); msg.attachmentLayout(builder.AttachmentLayout.list) msg.attachments([ new builder.HeroCard(session) .title("This

Add a bot into Twilio conference, and announce some information, using conference Friendly name

半腔热情 提交于 2019-12-13 03:36:27
问题 With below code my users are joining a conference call, conference is created with unique names. const VoiceResponse = require('twilio').twiml.VoiceResponse; const response = new VoiceResponse(); const dial = response.dial(); dial.conference({ statusCallback: <event_url>, statusCallbackEvent: 'start end join leave' }, "test_conference_name"); res.type('text/xml'); res.send(response.toString()); Now I want to add bot to this conference call and announce something to all users, like conference

How to gather Twilio DTMF input from call recipient on outbound call

岁酱吖の 提交于 2019-12-13 03:34:11
问题 We're developing a Twilio programmable voice app that can select from a list of persons, and place an outbound call to their regular telephone number. Once the call is connected, we want to be able to speak to the party and then gather dtmf input from the call recipient in order to trigger some specific TwiML code based on the dtmf code entered. Twilio programmable voice docs don't specify how to gather dtmf input from a call recipient on an outbound call, but I would like to think this is in

Twilio Studio HTTP Post Request Header

不打扰是莪最后的温柔 提交于 2019-12-13 03:25:19
问题 I am trying to use the Http Request Widget, content type - application/json. I do not see an option to add a request header to supply a token. This .Net code gets a success response: string str = "Hello Webservice"; string url = "https://website.com/webserviceurl.php"; HttpClient httpClient = new HttpClient(); httpClient.DefaultRequestHeaders.Add("token", "xxxx"); HttpResponseMessage response = await httpClient.PostAsync(url, new StringContent(str)); In Twilio Studio I tried setting the

Twilio: Can a moderator mute specific participants in a conference call?

谁说胖子不能爱 提交于 2019-12-13 02:26:30
问题 I can use the Twilio JavaScript API to have a participant mute/unmute themselves, but I'm looking for a moderator to be able to mute specific participants, whether they dial in by phone or by clicking to call. Thank you! 回答1: Twilio evangelist here. You could build a UI that lets a "moderator" see all of the connected conference participants by using the Participants resource in the REST API. You can POST to a specific participant to mute them. Hope that helps. 回答2: it would seem this would

Connect Twilio wtih Google Apps Script

99封情书 提交于 2019-12-13 00:13:47
问题 I followed this tutorial from the GAS team. Adding voice and SMS to Google Apps using Twilio and Apps Script However, when I modify the TwiML as per the Twilio Docs to add <Redirect> upon timeout, I get an "Application Error". <Response> <Gather action="https://script.google.com/macros/s/SCRIPT_ID/exec" numDigits="1" timeout="10"> <Say>Welcome to Yard Stars</Say> <Say>To schedule a Sprinkler Service visit, press 1.</Say> <Say>To discuss a new Sprinkler System, press 2.</Say> <Say>To speak

Twilio: Mute a participant in a conference

无人久伴 提交于 2019-12-12 23:11:49
问题 I'm building a mobile voice conference application using Twilio SDK. I need to implement a mute button so a user could temporary block an incoming voice track of a specific participant. But other users in a conference should be able to hear the muted user ofc. Just like a mute button in the Skype. Yet I have no luck in finding a solution. Is it possible to do? 来源: https://stackoverflow.com/questions/39551921/twilio-mute-a-participant-in-a-conference

How to handle Twilio postbacks in Cloud9 IDE dev server?

佐手、 提交于 2019-12-12 21:07:13
问题 I'm building a Rails app in Cloud9 IDE, and part of the application involves interactive voice response. The end-user calls the Twilio phone number, and then Twilio POSTs into the Rails app. The app is working fine when deployed on Heroku, but the deployment process is an extra step. I would like to point Twilio directly at the app running in Cloud9, but it doesn't work. Cloud9 requires one to be logged in to access the dev-server URL, and Twilio can't log in. Is there a way to tell Cloud9