twilio

Redirecting a twilio task to a new TwiML after task/reservation timeout

有些话、适合烂在心里 提交于 2019-12-06 06:54:49
问题 Currently using Twilio TaskRouter to build a telephony call center to route the calls. My target was: When a task kept pending for a certain time(i.e: no workers are available for reservation), redirect it to voicemail When a task is reserved but the the worker didn't response to it, redirect it to voicemail My Current Implementation was: Specify both task timeout and reservation timeout When task timeout / reservation timeout callback is triggered, query the Redirect Instruction reservation

twilio catching error does not work

岁酱吖の 提交于 2019-12-06 06:25:24
I am implementing twilio in my laravel 5 application. To use it in the framework I use aloha/laravel-twilio integration. Sending a valid request with test-credentials works fine. I have problems when I want to implement an error-handling . For some reason the catch does not get the error, which results in a crash of the app. The error seems to be in the twilio-sdk if I read the error message correctly. Here is what I've done so far: <?php namespace App; use Illuminate\Database\Eloquent\Model; use Aloha\Twilio\TwilioInterface; class Activation extends Model { protected $fillable = array( 'a',

Get phone number of SMS sender, using Twilio

旧时模样 提交于 2019-12-06 05:37:07
I am trying to retrieve the phone number of a user who sends SMS to my Twilio number, but I can't fetch it in my program. I have tried these: $message = $client->account->sms_messages->get("$Smssid"); $number = $message->From; But no matter what I try $number is still blank. I have tried to get $sid , sid , $SMSSid . Nothing. What am I doing wrong? When a user sends you an SMS, we make an HTTP request to your server. This HTTP request contains info about the SMS, such as the From, To, Body, etc. To retrieve the 'From' value from the HTTP request in PHP, simply do the following: $from_number =

Twilio: Incoming call handling using <Dial> when target is busy or cell is turned off

怎甘沉沦 提交于 2019-12-06 05:30:57
This question has been asked before (see Twilio - forward call after 2 rings and Twilio call busy status ), however they do not answer my scenario. We have a simple hunting list connected to an phone number provided by Twilio: <Response> <Dial timeout="20"><!--cellphone #1--></Dial> <Dial timeout="20"><!--cellphone #2--></Dial> <Dial timeout="20"><!--cellphone #3--></Dial> </Response> Now, this works in the normal case - if cell #1 doesn't answer it will switch to #2 after 20 seconds. However, if Cell #1 is turned off (airplane mode, or turned off) then the caller receives a voice message from

Twilio Authy 2FA for OneCode C# Implementation

房东的猫 提交于 2019-12-06 05:23:09
I am developing a web application using C# that uses 2 factor authentication during Sign Up. I have already tried 2FA using Nexmo's API. It worked fine. All I had to do was call their API and speciy the 'to' number. Here is the code: public ActionResult Start(string to) { var start = NumberVerify.Verify(new NumberVerify.VerifyRequest { number = to, brand = "NexmoQS" }); Session["requestID"] = start.request_id; return View(); } Now, I decided to give Twilio a try. I came across Authy and it's process. I found their 2FA API here . But I don't understand where should I enter the 'to' number as

SSL certificate error: self signed certificate in certificate chain in using Twilio on my Laravel Website

♀尐吖头ヾ 提交于 2019-12-06 05:01:09
I am testing my codes on my localhost and I tried dtisgodsson/laravel4-twilio to apply on my current website but I got this error SSL certificate problem: self signed certificate in certificate chain right after I put this code inside my index.blade.php: Twilio::to('119061539155')->message('This is so, damn, easy!'); What do I need to do to get rid of this error? rickyrobinett Twilio Developer Evangelist here. This error is caused by not having an up-to-date bundle of CA root certificates with your PHP installation. You need to download the latest CA root certificate bundle and update your php

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

Any examples of getnextpage usage in the twilio api for c#?

纵饮孤独 提交于 2019-12-06 04:51:53
The old code I've inherited for Twilio retrieves messages using the absolute PageNumber property of the MessageListRequest but according to the documentation this is obsolete and I should be using GetNextPage and GetPrevPage. The API metadata shows this as obsolete with the message "Use GetNextPage and GetPreviousPage for paging. Page parameter is scheduled for end of life https://www.twilio.com/engineering/2015/04/16/replacing-absolute-paging-with-relative-paging ". Are there any examples of this usage? I couldn't find any in the documentation except in one of the API test methods and I'm not

How do I use Twilio to receive text messages from users and reply to that text with a message?

折月煮酒 提交于 2019-12-06 04:30:51
问题 1.) User sends a text message to a designated Twilio phone number 2.) Application receives this message and parses it for actionable data 3.) Application replies to sender with a text message delivering the requested information How the heck do I do this with rails?! 回答1: Assuming your business logic doesn't take that long to execute, it's pretty simple to process a text and send a response. Here are the core steps: Grab the twilio-ruby helper library. Point your SMS Url to the Rails

Twilio sending message Using twilio library

余生长醉 提交于 2019-12-06 04:23:05
Sending twilio message from my api returns this error Twilio sending message The requested resource /2010-04-01/Accounts//Messages.json was not found this is how I send a message. anyone incountered a problem? $this->client = new \Services_Twilio($sid, $token); return $this->client->account->messages->sendMessage($from ,$to, $message); this is the documentation I followed https://www.twilio.com/docs/api/rest/sending-sms How do I create Messages.json I used this https://github.com/twilio/twilio-php on laravel 4.2 Hi Twilio developer evangelist here. Sorry to hear you're having trouble with your