twilio-twiml

Is there a way to programmatically create a Twimlbin?

坚强是说给别人听的谎言 提交于 2019-12-11 03:28:20
问题 I'd like to make an application where the user can enter a phone number and a message and I can have Twilio send that phone number a message with that text synthesized. An example of the TwiML code I'm using is something simple like <?xml version="1.0" encoding="UTF-8"?> <Response> <Say>Hello World</Say> <Response> In order to make this work I've tried setting up a PHP function that takes in the message and echoes the above TwiML but the phone calls I get from the test report an application

Twilio autopilot handoff action is not working with Twiml Bin

耗尽温柔 提交于 2019-12-11 02:47:41
问题 I have a Twilio autopilot task from an incoming call, which performs a greeting then asks a question before redirecting to a new task called 'callnumber'. This all works fine. The 'callnumber' task looks like this { "actions": [ { "handoff": { "channel": "voice", "uri": "https://handler.twilio.com/twiml/TWIMLBINID" } } ] } TWIMLBINID actually has the correct ID from the Twiml Bin. This is the Twiml content in the bin: <Response> <Say>I will put you in contact with our customer care specialist

What Request URL for Voice in TwiML App setup should I use when I develop on localhost?

大憨熊 提交于 2019-12-10 17:49:14
问题 I am creating an app in ASP.NET-MVC where I can call phone number from browser. To do that I need to create capability token like in the sample: var capability = new TwilioCapability(accountSid, authToken); capability.AllowClientOutgoing(appSid); capability.AllowClientIncoming("jenny"); string token = capability.GenerateToken(); The appSid is an identifier of TwimlApp created on my Twilio account as described here: https://www.twilio.com/help/faq/twilio-client/how-do-i-create-a-twiml-app I

How can I generate a half second pause in TwiML?

回眸只為那壹抹淺笑 提交于 2019-12-10 14:42:05
问题 I'm trying to use Twilio's <Say> verb to pronounce a sequence of digits clearly. I'm finding it is hard to generate a natural (half-second) pause between each digit. How do I do this correctly? The <Pause> xml command only takes integer values for seconds, so it's too long to use. 回答1: From here: Link When saying numbers, '12345' will be spoken as "twelve thousand three hundred forty five." Whereas '1 2 3 4 5' will be spoken as "one two three four five." Punctuation such as commas and periods

SMS messaging using Twilio with SIP

爷,独闯天下 提交于 2019-12-10 11:30:44
问题 I'm trying to use Twilio to send and receive SMS on my iPhone. I've gotten inbound and outbound calling set up following these instructions. I'd like the equivalent instructions for SMS. I'm presently using Zoiper as a SIP client, but that's flexible. The phone number configuration page (from here click a phone number) has a section called "Messaging" which allows one to configure a TwiML bin. However, I haven't been able to find any documentation about how to configure SMS over SIP, let

Twilio play pause/resume

◇◆丶佛笑我妖孽 提交于 2019-12-10 10:02:04
问题 Does Twilio have any support for pausing and resuming playback of content. In other words, I have fairly long files that will be played to the caller, and I'm trying to find a way to implement pause & resume functionality. In the middle of a play of some content, I want to have user ability to press a digit to pause, and then later press a digit again to resume play from the same point in audio file where it was paused. Does Twilio support something like that? 回答1: I did find a workable,

Twilio - TwiML with SNI Support

一个人想着一个人 提交于 2019-12-09 03:41:09
问题 When I use TwiML to send commands, Twilio API (TwilioProxy/1.1) makes requests to my Apache server on HTTPS without SNI support. I need to block non-SNI clients ( SSLStrictSNIVHostCheck On ) on my server because I use multiple SSL certificates with multiple domains and they all use Twilio. Is it possible to use a different API that has SNI support or a workaround that would make that work with SNI ? 回答1: I've just had a similar problem. Twilio was working fine with SNI (CloudFlare free

TwiML Bin - Anyway to access parameters?

回眸只為那壹抹淺笑 提交于 2019-12-08 01:14:25
问题 I am setting up a demo for a product, and we are using Twilio two connect two people together. To host the XML response, I set up new TwiML bin files that Twilio offers. I am using the <Gather> call to prompt the first caller to hit 1 to accept or 2 to decline. Is there anyway to check the Digits parameter from the Gather in a TwiML bin file? 回答1: Twilio developer evangelist here. Unfortunately, to get the value from the <Gather>, you will need a backend server as Twilio will make and HTTP

SMS messaging using Twilio with SIP

余生长醉 提交于 2019-12-06 07:59:19
I'm trying to use Twilio to send and receive SMS on my iPhone. I've gotten inbound and outbound calling set up following these instructions . I'd like the equivalent instructions for SMS. I'm presently using Zoiper as a SIP client, but that's flexible. The phone number configuration page (from here click a phone number) has a section called "Messaging" which allows one to configure a TwiML bin. However, I haven't been able to find any documentation about how to configure SMS over SIP, let alone TwiML code. 来源: https://stackoverflow.com/questions/52100722/sms-messaging-using-twilio-with-sip

TwiML Bin - Anyway to access parameters?

夙愿已清 提交于 2019-12-06 04:57:29
I am setting up a demo for a product, and we are using Twilio two connect two people together. To host the XML response, I set up new TwiML bin files that Twilio offers. I am using the <Gather> call to prompt the first caller to hit 1 to accept or 2 to decline. Is there anyway to check the Digits parameter from the Gather in a TwiML bin file? Marcos Placona Twilio developer evangelist here. Unfortunately, to get the value from the <Gather> , you will need a backend server as Twilio will make and HTTP POST or GET request to your page with that digit. Luckily doing that is pretty simple, and you