twilio

Sending SMS text message using twilio not working

浪尽此生 提交于 2020-01-05 10:25:14
问题 I am trying to send SMS message from c# unit test code but I am not able to receive the text message and I don't know where to debug this. Also, inside my response object, I get the value "Bad Request". What am I doing wrong. Also in while loop, I wait for the response to get processed. Here is my code. [TestMethod] public void TestMethod1() { Assert.IsTrue(SendMessage("+1MYFROMPHONENUMBER", "+1MYTOPHONENUMBER", "sending from code")); } public bool SendMessage(string from, string to, string

How do I configure my Android phone to send images to Twilio via MMS?

丶灬走出姿态 提交于 2020-01-05 08:37:09
问题 Using my Android phone, I want to share an image via MMS to a Twilio phone number and be able to extract the images via code. I have set up a Function App to capture the message, as per my question here I am surprised however to find that the message contains the following values NumMedia = 0 Body = "You+have+a+new+MMS+Picture+or+Video+Message.+To+view+your+message%2C+go+to+http%3A%2F%2Ftelstra.com%2Fmmsview etc I was hoping that NumMedia would be 1 and that I would be able to iterate through

Remove and add microphone at beta5 version

两盒软妹~` 提交于 2020-01-05 07:30:32
问题 I use new beta5 version of Twilio to create video chat: https://media.twiliocdn.com/sdk/js/video/releases/1.0.0-beta5/docs/#toc5__anchor When user clicks first time on the button, I need remove his microphone. When user clicks second time on the button, I need restore his microphone. Beta4 version had two methods: addMicrophone() and removeMicrophone() : https://media.twiliocdn.com/sdk/js/video/releases/1.0.0-beta4/docs/LocalMedia.html How can I remove and add microphone at beta5 version ?

Unable to join chat channel

偶尔善良 提交于 2020-01-05 05:36:08
问题 When trying to join a channel in the twilio code I've been working with, it comes up with the error saying that it "Cannot read property 'getChannelByUniqueName' of null". The chat works but when I try to open it up on a different browser, like firefox instead of chrome, it says the error "Channel with provided unique name already exist". Can anyone help with this problem? // Initialize the Chat client chatClient = new Twilio.Chat.Client(data.token); joinChannels(chatClient); }); function

How to receive and send back bytes audio data to Twilio?

梦想的初衷 提交于 2020-01-05 05:10:39
问题 I have been working on a Twilio project and i have set everything up using this guide: Stream TwiML i have already resolved a common issue with the help of Alan here Answer I'm unable to send back the processed bytes I'm using. ws.send(bytes) ws.receive() These two methods i assume are required to send and receive back and forth data using the web socket. But im receving a constant data stream from twilio. That's: b'\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe

Problems with verb Record timeout when calling an IVR

蹲街弑〆低调 提交于 2020-01-04 05:54:22
问题 We're trying to use Twilio to create an automated test framework for those IVRs. We do an outbound call from Twilio to the IVR, use the verb Say/Play to interact with the IVR and we're using Record to capture what the IVR is saying, latter we transcribe it and make the assertions. When I ask Twilio to call a phone number and I pretend to be the IVR, everything works perfectly. But when I ask Twilio to call the real IVR, apparently the Record verb can't recognize the pauses, when the IVR stops

Twilio sms question

蹲街弑〆低调 提交于 2020-01-03 21:04:11
问题 Uptill now I have been using Twilio for phone calls. Now I want to be able to have a network monitoring tool that texts when there is a problem to a number. I would like to make it so that when twilio receives the text it will execute the script that I have put into its URL...I really don't know how to get started with sms it seems very hard and complicated as compared to phone calls...Any help on the sms is greatly appreciated to get me started. 回答1: If you've already figured Twilio voice

Twilio: Update the Voice (or Message) URL via API?

南楼画角 提交于 2020-01-03 08:59:40
问题 I've been using Twilio for quite some time, think its a slick service, and would like to use Twilio to power text/voice capability to/from my home automation server (an old mac-mini). The problem is, if my home IP address changes, then my Twilio number's SMS and Voice URLs would be pointing at the wrong IP, which would obviously prevent my webserver (Node.js) from doing ... well, anything. My plan was to periodically grab the mac-mini's external IP and update my number's Voice/SMS URLs by

Grasshopper Voice + Twilio Text

北城余情 提交于 2020-01-03 00:56:24
问题 My company is currently using Grasshopper as our voice system for receiving and routing inbound customer support calls. It's working pretty well. Except that it's 2014 and people expect to be able to text issues to our toll free customer support number and get responses. Grasshopper doesn't support receiving/forwarding SMS. So I want to use Twilio just for receiving inbound text and Grasshopper for voice on the same number . It seems like a number has to be registered either with Twilio or

Error: Unable to reach host: “api.twilio.com”

删除回忆录丶 提交于 2020-01-02 10:59:33
问题 I'm using node-twilio and I keep getting a "Error: Unable to reach host: "api.twilio.com" for every request. We've checked the packets via mtr and they are reaching api.twilio.com. Running on debian on GCE. 回答1: After days of digging around, found out that the node-twilio module shows many errors incorrectly as: "Error: Unable to reach host: "api.twilio.com". The following lines: var error = null; if (err || (response && (response.statusCode < 200 || response.statusCode > 206))) { error = {};