twilio

Twilio - Pass custom parameters to JS client, so my client knows who's calling

北城以北 提交于 2019-12-11 05:29:15
问题 I have a web app that accepts incoming phone calls at a twilio number. The calls are routed through the webserver, where details on the incoming caller can be retrieved. I'm trying to pass the caller name and additional details to the agent client in javascript, BEFORE the incoming call is accepted. After 2 days of trying, I haven't found any way to do this. I know I can pass the info back to the client through a websocket in the same server method that creates the TWiML, but that seems like

How to get Twilio conference participants after it is over?

别来无恙 提交于 2019-12-11 04:58:24
问题 As per Twilio docs curl -G https://api.twilio.com/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Conferences/CFbbe4632a3c49700934481addd5ce1659/Participants.json -u 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:your_auth_token' should give list of participants but I don't get list of participants after conference is over, I only get data back when conference is in-progress . Whereas if I go to Twilio console, I am able to see all the participants details(timestamp, phone numbers, duration etc)

Twilio video — no video and mute methods

我只是一个虾纸丫 提交于 2019-12-11 04:54:58
问题 How do you mute and no-video the local participant? https://www.twilio.com/docs/api/video/getting-started this code has been proposed elsewhere - but is this the track data? var localMedia = conversation.localMedia; localMedia.mute(); So would I get the tracks of the local participant var tracks = Array.from(participant.tracks.values()) audioTrack.mute()? videoTrack.mute()? document.getElementById('button-mute').onclick = function () { log('Mute call...') console.log('mute call') // var

Android pending intent not invoked in twilio incoming call

我们两清 提交于 2019-12-11 04:48:13
问题 I am making calling app using twilio sdk i have integrated all stuff and it is in wokring condition. But the problem is when my android app remains in the background for long time then app didn't receive incoming call request , pending intent not invoked by Twilio Here is the code: if (!Twilio.isInitialized()) { /* * Needed for setting/abandoning audio focus during call */ Twilio.initialize(context, new Twilio.InitListener() { /* * Now that the SDK is initialized we can register using a

Twilio iOS Video Call: Getting “User is unavailable” error message when user rejects the call

China☆狼群 提交于 2019-12-11 04:45:08
问题 I am implementing twilio's video call in my iOS application. The problem is that I am looking for a way to know when the counterpart application is dead to send him a VoIP Push notification. The solution I was trying to implement was that, when the call returns "User is unavailable" error then i would tell my backend to send VoIP notification to the counterpart, the problem with this solution is that I found a twilio's bug where sometimes if the user rejects the call twilio's SDK returns a

Twilio Request Message

半世苍凉 提交于 2019-12-11 04:44:30
问题 I have configured my endpoint to which twilio will make a request when an SMS is received. Below is my model which will accept twilio request. public class TwilioRequest { public string MessageSid { get; set; } public string AccountSid { get; set; } public string From { get; set; } public string To { get; set; } public string Body { get; set; } public int NumMedia { get; set; } public List<string> MediaContentType { get; set; } public List<string> MediaUrl { get; set; } } Below is my WEB API

Build a Twilio Autopilot bot IVR that answers phone and follows instructions

拜拜、爱过 提交于 2019-12-11 04:29:58
问题 I am trying to build a bot that can answer a call. The caller would say a phrase like "Press 1" and the bot would play digits 1. If the caller said Press 2, the bot would respond by playing digits 2, and so on. Any insight would be helpful. Thank you Lu 回答1: Twilio developer evangelist here. Welcome to StackOverflow! This Node.js quickstart has the first few steps you'd need to make a voice bot with Autopilot. First, you'd buy a Twilio phone number here. Then, you'd configure that number with

logic apps designer can't select Twilio - Get Message

﹥>﹥吖頭↗ 提交于 2019-12-11 04:15:25
问题 I am a total newbie to Azure Logic Apps and Twilio. I am trying to follow the instructions to create a connection to Twilio. However I can't click the any of the Twilio icons: I am logged into Twilio on another browser tab. I have tried Edge and Chrome. If I press F12, I can see there are numerous errors in the console tab: How do I go about troubleshooting my problem? 回答1: Maybe you are trying to put Twilio actions as first step of your Logic App. Twilio connector hasn't triggers, then you

Accessing Twilio MMS images

左心房为你撑大大i 提交于 2019-12-11 03:54:18
问题 In Twilio when the ImageMedia URL is given it is accessing the twilio api as follows https://api.twilio.com/2010-04-01/Accounts/{account sid}/Messages/{message sid}/Media/{media sid} If you have manually logged into the twilio API that url redirects to the image located at http://media.twiliocdn.com.s3-website-us-east-1.amazonaws.com/{account sid}/{image id} How can I get the direct image ID from the twilio API to include in my web app? I am working with node.js and every time I try to poll

AttributeError when creating Notify service via client.notify.services() using the Python SDK

不羁的心 提交于 2019-12-11 03:53:27
问题 I'm trying to create a binding for an SMS-related notify service in Twilio (Python SDK, v 6.4.3), but it keeps giving me an AttriuteError . The code is simply: from twilio.rest import Client from myproj.twilio_settings import ACCNT_SID, AT, SERV_SID client = Client(ACCNT_SID, AT) service = client.notify.services(SERV_SID) def bind_user_to_twilio_notify_service(user_id,phone_number): binding = service.bindings.create( identity=user_id, binding_type='sms', address=phone_number, ) print(binding