twilio

Why is Twilio not sending sms?

泪湿孤枕 提交于 2019-12-11 12:11:41
问题 I tried send a sms via the Twilio Api. But Twilio does not send to me any sms messages. What is wrong? Reference https://www.twilio.com/docs/api/rest/sending-sms My code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Twilio; namespace SMS { class Program { static void Main(string[] args) { string AccountSid = "myAccountSid"; string AuthToken = "{{ myAuthToken }}"; var twilio = new TwilioRestClient(AccountSid, AuthToken); var sms = twilio

Twilio - twilio/sdk PHP Status Callback for messages

冷暖自知 提交于 2019-12-11 11:43:24
问题 I am attempting to set a StatusCallback on outgoing SMS messages using twilio/sdk - see https://github.com/twilio/twilio-php The problem I'm running into is that it would appear that the StatusCallback option should be included in an array after the Body, like so: $this->twilio->account->messages->sendMessage( "+{$this->client->number}", "+{$phone->number}", $outgoing, array('StatusCallback' => 'http://foo.bar/status') ); .. but Twilio now supports MMS messaging and seems to be considering

Getting compile error: package com.twilio.sdk does not exist

家住魔仙堡 提交于 2019-12-11 11:22:11
问题 New-bee in java here. I'm on an ubuntu 12.04 machine. I am trying the Twilio API using java to make voice calls from an uiautomator test case and following the instructions provided at https://www.twilio.com/docs/java/install. I downloaded both twilio-java-sdk-3.4.2-with-dependencies.jar and twilio-java-sdk-3.4.2.jar from http://search.maven.org/#browse|1260284827 (pre-built). I am using Twilio API in an uiautomator java project. I am able to build and run that uiautomator java project

Detecting voice call disconnection with Twilio iOS client SDK

假装没事ソ 提交于 2019-12-11 10:19:00
问题 I am using Twilio iOS SDK. The problem i am facing is that when i make an outgoing call and the called party disconnects, I am not receiving any delegate callbacks. I have implemented the TCConnectionDelegate method connectionDidDisconnect . It is never invoked in this case. On the other hand i can successfully disconnect calls from the calling device. I have tested using their sample app "Basic Phone" . The same problem exists in that app too. 回答1: After contacting Twilio support itself on

Detecting if an answering service picks up

微笑、不失礼 提交于 2019-12-11 10:18:11
问题 In our Twilio application a number is dialed, the call is recorded, and it's url is emailed to an administrator. An issue occurs when nobody is there to answer the call and the clients call answering service picks up and deals with the caller (perhaps forwarding them to another number). Can we detect when the answering service picks up to handle the call and terminate the recording/hangup? Is there an event raised? I understand we can detect when an answering machine picks up (beeps) but is

How is the Twilio 'ConferenceSid' generated?

こ雲淡風輕ζ 提交于 2019-12-11 10:16:26
问题 Here is the code from Twilio Docs - Python # Download the Python helper library from twilio.com/docs/python/install from twilio.rest import TwilioRestClient # Your Account Sid and Auth Token from twilio.com/user/account account_sid = "AC0edc1a7f12e0e0876ce878e903d3bd54" auth_token = "{{ auth_token }}" client = TwilioRestClient(account_sid, auth_token) conference = client.conferences.get("CFbbe46ff1274e283f7e3ac1df0072ab39") print conference.status I am trying to create conference call

Twilio Test Credentials: WaitingForActivation when I try to purchase a number?

风流意气都作罢 提交于 2019-12-11 10:15:38
问题 I have the following code: public void PurchaseNumber(string username, string phoneNumber) { var twilio = new TwilioRestClient(accountSid, authToken); var options = new PhoneNumberOptions { VoiceUrl = "", PhoneNumber = "+15005550006" }; var number = twilio.AddIncomingPhoneNumber(options); Console.WriteLine(number.Id); // Sid is not available return; } Two issues - number.Sid is not available, as the samples display, and number.Status always shows "WaitingForActivation". What am I doing wrong?

Twilio (TwiML): Dial another phone

醉酒当歌 提交于 2019-12-11 10:07:54
问题 I would like to connect two phone numbers in that flow: Person_1 is answering the call. a voice message played and ask him if he willing to enter the conference call. only if Person_1 accepting the conference call will be initiated: This is what I am trying to do: Intro.chtml: <Response> <Gather numDigits="1" action="StartConferenceCall.chtml" method="GET"> <Say>Press 1 to start the conference call</Say> </Gather> </Response> StartConferenceCall.chtml: @{ var digits = Request["Digits"]; if

Twilio Queue Cleanup

会有一股神秘感。 提交于 2019-12-11 10:07:29
问题 I have a scenario where I need to connect an inbound caller with another party, selected dynamically. The logic to select, and connect the 3rd party can take a little time to execute as it involves some additional back-end systems, so I want to <Enqueue /> the original caller while I make the outbound call - this way they get hold music! When I enqueue the original caller I generate a Guid::NewGuid() for the queue name to ensure they are the only person in it. All the call flow logic is under

Twilio Threaded Messages

穿精又带淫゛_ 提交于 2019-12-11 10:03:17
问题 If I want to kick off a thread that will be sending a text message with twilio, is it better to do TwilioRestClient client = new TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN); for each thread or should I make one client and share it with the threads? 回答1: You can see the source code for TwilioRequestClient class of the twilio-java helper library here: https://github.com/twilio/twilio-java/blob/master/src/main/java/com/twilio/sdk/TwilioRestClient.java I don't see anything not obviously thread-safe