Reputation: 1658
This Twilio is really awesome. I just have a question to which I was not able to find a straightforward answer.
All calls in twilio(Incoming and Outgoing) take place through webhooks.i.e you have to specify to which URL an incoming call needs to be redirected. Say suppose, once an incoming call to a twilio number is redirected to the URL, the set of actions defined in the URL are being provided as response to the caller.
Instead of this, is it possible for a real person to answer an incoming call to a twilio number. I am already aware of the "dial" verb where you can redirect the call to a different number. My exact question is whether is it possible to make a real person answer a call directly in the twilio number itself?
Upvotes: 1
Views: 740
Reputation: 73029
Twilio developer evangelist here.
There are a number of ways you can connect an incoming call to a person.
The simplest is to provide a URL for your phone number that directs the call onto the person's real phone number. For that, your URL would need to return some TwiML, using <Dial>
and <Number>
to set up a call to the phone. Like this:
<Response>
<Dial>
<Number>PERSONS_PHONE_NUMBER</Number>
</Dial>
</Response>
However, you have specified that you don't want the call redirected. You have a few options here. You still need to use <Dial>
, we just have some other choices for how to set up the phone on which the user answers the call.
You could build a soft phone using Twilio Client JS or the Programmable Voice SDK for Android or iOS. Once you have the client set up, you can then direct calls to it using the <Client>
element:
<Response>
<Dial>
<Client>CLIENT_ID</Client>
</Dial>
</Response>
You could get your users a SIP capable phone and use Twilio's SIP registration to register the phone. You can then direct the call to that phone using it's SIP address and the <Sip>
element:
<Response>
<Dial>
<Sip>SIP_ADDRESS</Sip>
</Dial>
</Response>
If you got a Twilio Wireless Sim card then you could direct the call to a phone with that sim card using <Sim>
:
<Response>
<Dial>
<Sim>SIM_ID</Sim>
</Dial>
</Response>
These are just some ways you can connect a call to a user. I hope this helps.
Upvotes: 1
Reputation: 2142
Yes, a real person can answer a Twilio inbound call. The way you do that is to Forward that call to the real person's real phone number.
Upvotes: 0