We're building Call Tracking website using Twilio API.
The goal of our website is, when someone call a Twilio number (i.e (855) 329-5712), that call will be redirected to a specific predefined number.
The following TwiML we have generated for the same:
<Response>
<Play>//s3.amazonaws.com/calltrackingdashboard/upload/greetings/d9e5234534c5ca818e26225ed7e15809.mp3</Play>
<Dial record="true">
<Number url="http://www.filenewtrack.com/callfrds/whisper/170">+919674683063</Number>
</Dial>
</Response>
The Call is not connecting to the receiver properly.
Call just redirecting properly and the Caller heard the continuous ringing though the receiver receives and start communication. Even Call Whisper is not working.
Any help in this regard will be highly obliged.
Thanks in advance.
Twilio evangelist here.
In addition to checking the App Monitor, I'd also suggest checking the call logs and see what Twilio is logging as the result of the call.
It looks like you are trying to dial an Indian number, so if nothing interesting shows up in the call logs or the app monitor, my suggestion would be to drop our awesome support team an email at help#twilio.com. If possible, include in your email the Call Sids of several calls where you experience the issue so the support team can dig into them for you.
Hope that helps.
Related
As subject says I am reading api docs for twilio but even after brainstorming for 2 hours I am still unable to figure out exactly how can I receive a call from twilio on my web application and answer the call with my own voice like we do in a real phone.
I know how to respond a call when someone call your twilio number but that's only text to speech conversion like their "Hello Monkey" example application but nothing so far about answering a call using their API.
Can anyone please explain how can we do that? Not everything, just main concept and few references if possible
I am using Laravel so would be good if it's in php
Twilio evangelist here.
I would suggest working through the Twilio Client for JavaScript Quickstart. This will walk you through both the server and client side code needed to build a phone in your browser, showing you how to both make outbound calls from the browser to a PSTN phone as well as receive incoming PSTN calls in the browser.
The magic that you are looking for in either of those cases is the <Dial> verb. When an incoming PSTN call comes into Twilio, you can use the Dial verb to tell Twilio to dial and bridge that call with a Client instance:
<Dial>
<Client>jenny</Client>
</Dial>
When and instance of client make an outbound call and wants to connect to a PSTN phone number you again us the Dial verb:
<Dial>
<Number>+15555555555</Number>
</Dial>
The quickstart shows in more detail how this works.
Hope that helps.
You tried the Twilio PHP lib? As for Laravel... Incoming call? No problem!
Please try to use Google before asking questions! I think one important trait to any programmer is the ability to organize the idea of "what you want", and then google each step to get it that you want...
Has anyone found a way to use google voice to send a phone call without first calling you. I need a phone to ring, but it is not necessary that any particular message be sent or anything. Here is the API I've been looking at. https://github.com/aaronpk/Google-Voice-PHP-API In the API you specify your google voice number and the recipient's number, and then it calls your phone and connects you to the recipient. I'm looking for a way to just connect to the recipient.
That's just the way Google Voice works... to call out you either a) use the web interface, which calls one of your phones then dials the other person or b) you call you own GV number and use the menu to dial out. The API packages I've looked at all use the GV mobile site to dial or send text messages (method a).
The only method I can think of for your scenario would be to get a free VoIP account with a number somewhere and set up a softphone that auto-answers.
But that begs the question... what is your purpose...? web driven prank calls?
I was using this for a system to alert people when a computer system I created needed attention. Text alerts are good...unless you're asleep and can't hear them. So, what I did was create a google voice number and then delete all of the phones off of it, and record a long voicemail. This way, it calls, and goes straight to a message that tells them the system needs attention and then they can just hang up and respond.
Slight work around, but it seems to work out fine.
I have a question about Twilio's call forwarding concept.
I want to create an application that lets users forward their existing numbers to Twilio, which processes the necessary information, and forwards the call back to the user.
However, when I try to implement this, an infinite loop happens: The call is forwarded to Twilio, which forwards the call back to the user, which forwards the call to twilio...
How would I implement this on the Twilio side, since it is difficult to implement any code on the user side?
Here is my code on Twilio that forwards the call back to the user.
<?php
header("content-type: text/xml");
?>
<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<Response>
<Say>Hello User</Say>
<Dial>+1973XXXXXXX</Dial>
</Response>
This is tricky. How are users forwarding their existing numbers to Twilio?
The problem is that you want a rule for your cellphone like, "Forward all calls from my cellphone to my Twilio number, unless they are coming back to my cellphone from Twilio." I'm not sure if the call forwarding mechanism for your existing numbers is that sophisticated.
On the Twilio side, you could try returning different TwiML based on whether you've "seen" the call before (is it being forwarded for the first time, or the second time)? But you would have to forward the call to a third number, to avoid the forwarding problem you are already running into.
It is not possible to forward calls to a Twilio number and have that number call you back if you've set up call forwarding on your phone. Conditional call forwarding can only be used for unanswered or busy calls, and for some providers, certain numbers. However, AT&T and Verizon do not allow "forward all numbers but one" for call forwarding.
you are working with twilio call it is with the best solution that we have:
"But you would have to forward the call to a third number, to avoid the forwarding problem you are already running into."
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.
If you've already figured Twilio voice calls, you'll find SMS easier once you figure out what they're doing. Which is essentially:
Carrier delivers an SMS to Twilio for a number you're renting from them.
Twilio makes an HTTP POST or GET (you choose) to the URL you setup in their web admin. The content of the text message will be a parameter in there.
You do whatever you want with the POST or GET, returning a TwiML if you want an SMS reply sent or nothing if not.
Note, Twilio can't execute a script for you, unless it's TwiML, in which case you're just returning TwiML as the response to the HTTP call from #3. So if you want to do something in response to an SMS, you'll need build that something into the logic that handles the URL you've given Twilio. If you're still lost a bit, tell us about how you're trying to do this, e.g., you've a Rails app, a PHP website, or just a Bash script you want to run and nothing else yet...
Why not avoid Twilio and have your network monitoring tool execute the script itself?
I want to make a web page in PHP from there users can easily call to any mobile numbers how is this possible in PHP?
I think you're looking for something similar to Google Talk Developer API with the libjingle kit.
(Considering that's about as close to voice and calls you'll get to without finding a company with a phone number and SDK--Google voice I don't think has an SDK).
Additionally, you could Google "VOIP SDK" and see what you get.
If you don't need synchronous voice communication (i.e.: a pre-recorded message is fine) then Twilio has a wonderful HTTP API for interfacing with telephones.