Find incoming caller on my twilio number without answering it - twilio

I own a twilio number. I want to test if a caller can call my twilio number but connect to it. ie. The caller just hears a ringing sound.
My idea is to find the caller's phone number but not incur any expense on the twilio number. Is this possible?

I compromised on ringing sound. I found this doc in twilio for sending busy signal to the caller.
https://www.twilio.com/docs/api/twiml/reject

Related

For forwarded call, can Twilio trace the original number the caller dialled to?

Example: a caller called phone A, phone A forward to Twilio Number.
Does the payload in Twilio request contains phone A number?
Not consistently, it depends on what the carrier sends Twilio.
TwiML™ for Programmable Voice
https://www.twilio.com/docs/voice/twiml#request-parameters
"ForwardedFrom
This parameter is set only when Twilio receives a forwarded call, but its value depends on the caller's carrier including information when forwarding.
Not all carriers support passing this information."

How to stop ringing sound on incoming call in Twilio

I want to stop the ringing sound when anyone call on my twilio number or is there any way I can make the incoming call to get retrieved automatically,I mean when any call comes to my twilio number it just instantly get received.I don't the caller to hear the ringing sound.
Thanks,
Twilio developer evangelist here.
As far as I'm aware, the ringing is the least possible, but it is also not under our control. As you can imagine, when you dial a Twilio number the call has to go through several networks before it reaches Twilio, Twilio then has to make an HTTP request to your application, retrieve the TwiML required to answer the phone and then respond to the call. All of that can't happen instantly so the phone will ring.
Does that make sense?

Twillio Call Screening - Dial stops ringing

I am using twilio's call screening / whisper example. So basically when we use the Dial verb to call the number, we want to play a message when the receiver picks up the phone and give them the option to accept/reject the call. While the caller should keep hearing the ringing tone until the receiver makes a choice.
Most of this works as expected if we follow what's described in the call screening example https://www.twilio.com/docs/howto/callscreening
The problem is as soon as the receiver picks the phone, the caller can no longer hear the ringing tone, and the call goes silence until we have a response back from the receiver. This is a huge problem, because the caller will probably hang up once the ringing tone stops and there is no answer.
I have already had a look at the following two answers.
Twillio Call Screening silence on answer
Detecting when call had been answered using Dial verb
I personally don't want to go down the conference route.
In Number verb's documentation its clearly mentioned that the caller will continue to hear ringing tone.
https://www.twilio.com/docs/api/twiml/number#attributes-url
The 'url' attribute allows you to specify a url for a TwiML document that will run on the called party's end, after she answers, but before the parties are connected. You can use this TwiML to privately play or say information to the called party, or provide a chance to decline the phone call using Gather and Hangup. The current caller will continue to hear ringing while the TwiML document executes on the other end. TwiML documents executed in this manner are not allowed to contain the Dial verb.
The same issue happens with the Find Me Twimlet as well.
twilio.com/labs/twimlets/findme
Contacted Twilio support, you'll need to set "ringTone" attribute on like this:
<Dial answerOnBridge="true" ringTone="us">
I have tried that and it worked for me.

Can I send digits to an incoming twilio call with twiml?

I have a twilio number that can process incoming calls with twiml. These incoming calls expect the recipient to press some digits after the call is connected.
If I were making an outgoing call, I could use the sendDigits attribute of a <Dial> tag. However, I can't figure out how to do this in response to an incoming call.
If I were receiving the call in a web client, I could use connection.sendDigits
Is there a way to do this in just twiml? Should I just play a recording file of various DTMF tones?
Edit: To clarify, I'm receiving calls from another automated system that expects additional numbers to be dialed after the call is connected.
Turns out the way to to do this is by using the <Play> twiml tag, which accepts a digits attribute.
<Play digits="94"></Play>

Get the time between when an incoming call is connected to a carrier and when the call is answered using Twilio

Is there a way to get the time between when an incoming call connects to a carrier and when it is answered using Twilio?
This is how I understand the flow for an coming call through the Twilio system:
Caller dials a "Twilio" number
Caller's carrier connects call to Twilio
Twilio connects to my application to ask for instructions
My application tells Twilio to formward the call to the callee's phone
Twilio connects to the callee's carrier
The callee's carrier locates the phone (if it is a cell phone)
When the callee's carrier locates the phone, the callee's phone starts ringing
The callee answers the phone or the calls rolls over to voicemail, either way, the call was "answered"
Twilio detects that the call was answered
Is there a way to get the time delta between #5 and #9?
Twilio Evangelist here.
The upshot is a simple no. This data isn't exposed through Twilio's API (see the REST Docs for a call). Is there a particular reason you need this data?

Resources