twilio

Twilio - Dial with Record attribute error

ε祈祈猫儿з 提交于 2020-02-25 08:41:09
问题 I'm using the twimlbin service to test a simple bit of Twilio xml: <?xml version="1.0" encoding="UTF-8"?> <Response> <Say>This call may be recorded for quality purposes</Say> <Dial record="true" action="http://testmyapp.ca/sendmail.php" method="GET"> 555-404-3200 </Dial> </Response> At the action url I receive the url of the recording and the duration and send an email to myself. All goes well, the email is sent, but the voice on the phone says an application error has occurred. The error is

How do I set custom parameters for Twilio TVOCallInvite on iOS?

回眸只為那壹抹淺笑 提交于 2020-02-23 06:55:06
问题 I'm trying to pass custom parameters in call invite structure but don't receive them on the recipient side. let connectOptions: TVOConnectOptions = TVOConnectOptions(accessToken: token) { (builder) in builder.params = ["To": "Recipeint Id", "From": "Caller name"] builder.uuid = uuid } self.call = TwilioVoice.connect(with: connectOptions, delegate: self) Any ideas? 回答1: You need to add logic in backend or you can say server code for the same. Link for server code in node https://github.com

How to send several messages using Twilio Autopilot?

十年热恋 提交于 2020-02-23 04:29:27
问题 When sending a response to a Twilio Autopilot bot, I want to split the message in several "blocks", like in the sample image below: Is it possible to do that? I tried adding two Say actions, but it didn't work: I got an Invalid Autopilot Actions JSON: Invalid Autopilot Action ` { "actions": [ {"say": "Hello, World!}, {"say": "Hello, World!}, {"listen":true} ] } Or in the other hand, if that's not possible, how can I add new lines to the message, so that the message is in paragraphs. I tried

How to use Twilio Client in Angular 2?

六月ゝ 毕业季﹏ 提交于 2020-02-20 08:43:17
问题 I am creating an app in which i require to implement Click To Call facility. So for communication I am using Twilio Client . I have tried this example. Now all i need it i need to implement the same in my Angular 2 application. How can i import Twilio Client in my Typescript and how can i make use of it? I am trying to import Twilio in my component like import * as Twilio from 'twilio' but this is not correct method to import it. 回答1: Twilio Developer Evangelist here. Right now we don't have

How to detect DTMF tones in Twilio's android sdk

别说谁变了你拦得住时间么 提交于 2020-02-07 02:36:14
问题 I am using Twilio Voice SDK on android to initiate a call to a normal phone number. I need to be able to detect from within the app that initiated the call that the person on the phone pressed one of the keypad keys. I cannot find a counterpart in the Voice SDK to call.sendDigits() for detecting DTMF tones. I have tried a couple of approaches and am thinking of a third: The most obvious approach was to find an api call for registering a listener to DTMF or a listener to Digits but I cannot

Twilio - channel descriptor paginator order

笑着哭i 提交于 2020-02-07 01:31:36
问题 I want to retrieve the list of channels for a user containing unread messages. The best solution I have found so far (please correct me if I'm wrong) is using channel descriptors. // Example for a single page client.getUserChannelDescriptors().then(function(paginator) { for (var i = 0; i < paginator.items.length; i++) { var descriptor = paginator.items[i].descriptor; if (descriptor.unread_messages_count > 0) { console.log("Channel found, id: " + descriptor.uniqueName); } } }); My question: is

Downloading media files from Twilio in Python

醉酒当歌 提交于 2020-02-05 08:34:19
问题 I'm trying to download all the media that is sent to my Twilio account and cannot for the life of me figure out how to access the actual images. from twilio.rest import Client import requests from operator import itemgetter import json ACCOUNT_SID = "xxxxxxx" AUTH_TOKEN = "xxxxxxxx" client = Client(ACCOUNT_SID, AUTH_TOKEN) # builds a list of messages and media uris messages = client.messages.list(from_="+19999999999") msgs = [] for m in messages: line = [m.from_, m.to, m.body, m.sid, m

Send Formatted messages through Twilio

吃可爱长大的小学妹 提交于 2020-02-04 08:44:25
问题 I want to know that how I can send formated messages through twilio .net api Using .net library So my requirements are like. also can I make use of html tags? TwilioRestClient client; client = new TwilioRestClient(accountSID, authToken); string msg="Hi dalvir, //line break Welcome to my website..... .... //line break Thanks <b>Support Team<b> "; // Send an SMS message. Message result = client.SendMessage(....); 回答1: Use %0a For example: "Body=Here is my first line%0aHere is my second line"

How to build administrative functions in Twilio Programmable Voice (Conference)

徘徊边缘 提交于 2020-01-25 11:24:25
问题 I'm playing around Twilio programmable Voice (Conference) along with PHP. I'm unable to implement administrative functions like muting/un-muting all participants, start & stop recording etc by moderator of the conference, I preferably would like to use *1, *2, *3, *4 as keypad presses by moderator to have control over the active ongoing conference call. Appreciate your feedback. The flow I've created so far as prototype is working good. Participant/moderator dials Twilio number TwiML greets

How to directly use Twilio TURN server for Android (Server, Client)

馋奶兔 提交于 2020-01-24 21:31:05
问题 I have libstreaming RTSP server on Android device (open some port and wait for client p2p connection). I'm able to connect to the server via local network. For outside p2p connection I have to use STUN / TURN. I read a lot about Twilio. They wrote about TURN server: NETWORK TRAVERSAL, but didn't actually provide clear example of how to use it. They have some ready solutions I don't need. Is it possible to use Twilio directly as TURN server for video streaming, without any additional