twilio-php

Http 500 Error Sending a Message using PHP54 and Twilio

筅森魡賤 提交于 2019-12-05 22:04:50
<?php // Require the bundled autoload file - the path may need to change // based on where you downloaded and unzipped the SDK require_once __DIR__ . '/twilio-php-master/Twilio/autoload.php'; #require __DIR__ . '/var/sip10/public_html/htdocs/twilio/twilio-php-master/Twilio/autoload.php'; // Use the REST API Client to make requests to the Twilio REST API use Twilio\Rest\Client; // Your Account SID and Auth Token from twilio.com/console $sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXX'; $token = 'XXXXXXXXXXXXXXXXXXXXXXX'; $client = new Client($sid, $token); // Use the client to do fun stuff like send text

Receiving SMS and storing it in database using Twilio

北城以北 提交于 2019-12-05 13:09:52
i am using Twilio API to send and receive sms from the customers. Every time i send the sms to my customers, i store the feilds like to , body in to my database. I have implemented the API for send message that works fine and am simply saving the fields in to my database. My Problem When i receive SMS from my customers to my twilio number. i want to get the fields like from number and the body and save to my databse. i looked that the documentation here https://www.twilio.com/docs/api/twiml https://www.twilio.com/blog/2012/04/get-started-with-twilio-sms-receiving-incoming-sms-quickstart.html

Twilio - Connecting an Enqueued call to an Agent

匆匆过客 提交于 2019-12-04 07:45:46
I'm trying to create a phone system where a caller gets enqueued, and ideally, the system will then call out to an agent, who would then pickup and then modify the call to bridge the top of the queue. What I've accomplished thus far is the dialing loop, where a user calls in, and it dials agents in sequence, until someone picks up, or gives the user the option to leave a message or stay on the line while hearing it ring. And a simple enqueue with hold music. I just can't seem to figure out how to combine these two systems. The closest I've found is this post , and it's helpful, but it glosses

Twilio sms reply feature

拟墨画扇 提交于 2019-12-04 04:19:32
问题 I've created a system based on cron job which generates new tasks for user. When new task is generated cron file sends a sms to user using twilio sms api. Now I want make something like when user reply to that sms with word "Done" that task associated with sms will be completed in my database. I've set reply URL in twilio account. And everything is working fine. My point is how can I complete that task in database. Is there any feature exist in twilio that can help me to send extra parameter

Make a call between two numbers not registered in twilio

雨燕双飞 提交于 2019-12-04 01:50:52
问题 There's some way of make a call between two of my users? I mean... I have a twilio acount with a registered number and I have to make a call to my client "Bill" so when he answer that, the call should be redirected to another client, that Bill choosed, let's say "Joe". So, Bill click's a button and he's phone rings, he answer that and start to call Joe. When some of them hangup, the all call should be over. Have someone ever made that? Help me! And I'm sorry about my bad english (oh yeah, I'm

Is it possible to access the live audio stream in a Twilio call?

大城市里の小女人 提交于 2019-12-04 00:11:02
问题 Twilio can provide call recording, but that's not real-time. Is it possible to write an app that processes the caller's audio in real-time and responds after processing the audio? I'd like to have some software "listen" to the speaker and respond programmatically. 回答1: Two years later, Twilio has released the use case I was trying to do on my own. They have a real-time speech recognition service built into Programmable Voice now. It's in public beta: https://www.twilio.com/blog/2017/05

Twilio Browser client Available or not

半腔热情 提交于 2019-12-02 15:15:51
问题 I am facing a problem with Twilio to detect the Twilio Browser client Available or not. If Twilio client is not available then need to send the voicemail otherwise I am using to accept the call. Twilio.Device.incoming(function (conn); Thanks. 回答1: Sounds like you need agent presence. There are a couple ways to go about this. One (Recommended) is to use Twilio TaskRouter. https://www.twilio.com/taskrouter. This will handle agent presence for you (online, offline, busy, etc..) and much more

when we make call using rest api then what twiml we use on that url parameter

…衆ロ難τιáo~ 提交于 2019-12-02 14:23:27
问题 I am Creating the call using the rest api- try{ // Initiate a new outbound call $call = $this->client->calls->create( // to call. "num2", // Step 5: Change the 'From' number below to be a valid Twilio number // that you've purchased or verified with Twilio. "num1", array("url" => "url-tw", 'IfMachine'=>'Continue') ); echo "Started call: " . $call->sid; } catch(Exception $e){ echo "Error: " . $e->getMessage(); } and on the url-tw what twiml should I use which can't disconnect the call. Before

when we make call using rest api then what twiml we use on that url parameter

让人想犯罪 __ 提交于 2019-12-02 09:02:52
I am Creating the call using the rest api- try{ // Initiate a new outbound call $call = $this->client->calls->create( // to call. "num2", // Step 5: Change the 'From' number below to be a valid Twilio number // that you've purchased or verified with Twilio. "num1", array("url" => "url-tw", 'IfMachine'=>'Continue') ); echo "Started call: " . $call->sid; } catch(Exception $e){ echo "Error: " . $e->getMessage(); } and on the url-tw what twiml should I use which can't disconnect the call. Before I was handling the call using the TwiML but now I have to detect the AnsweredBy option which is only

Twilio Browser client Available or not

独自空忆成欢 提交于 2019-12-02 09:02:38
I am facing a problem with Twilio to detect the Twilio Browser client Available or not. If Twilio client is not available then need to send the voicemail otherwise I am using to accept the call. Twilio.Device.incoming(function (conn); Thanks. Sounds like you need agent presence. There are a couple ways to go about this. One (Recommended) is to use Twilio TaskRouter. https://www.twilio.com/taskrouter . This will handle agent presence for you (online, offline, busy, etc..) and much more Your other option is to use a service like PubNub http://www.pubnub.com/ and bind the clint so you can get