I am new to Twilio and I need some help on a specific scenario. I have been trying to find a solution for this for some time, but I haven't been able to do so.
I want to use a Twilio number from one mobile (A) to call another user on mobile (B). I want to do this in a manner where the call is initiated by the Twilio number and not by (A)'s phone number.
In other words, (A) dials a Twilio number from a mobile and Twilio in turn dials (B) and connects (B) with (A).
I have configured the Twilio phone number dialed by (A) to used a Twiml bin and I have used the Dial verb to dial (B) upon receiving the call from (A).
But the Dial verb adds user (B) to the call. USer (B) does not see the call coming from the Twilio number but from User (A). This is not what I was hoping to achieve.
First of all, I hope I have been able to explain the scenario properly.
IS the scenario possible?
IS it possible for me to get Twilio to dial another user's number when it receives a call from a user? (without using the dial verb in Twiml).
IS there any solution in the API?
Let me know your thoughts. Also, please feel free to ask for any clarifications
Yes it's possible, you just need to supply a callerId parameter in your TwiML. Without one then Twilio will just use the incoming callers number as the caller ID, as you are currently experiencing.
You can use any Twilio number you have purchased or any number you have verified as the displayed caller ID. Your TwiML dial verb should look like this:
<Dial callerId="+15551231234">
<Number>+1555555555</Number>
</Dial>
Related
How do I get my twilio Virtual landline number to show as caller id when I call my customer from my cellphone? Both my cell phone and twilio virtual landline numbers are "verified" with twilio.
Twilio developer evangelist here.
To make your Twilio number appear, you would need to generate the outbound call to the customer from Twilio. There are a couple of ways you can do this. The easiest is likely triggering a call to your phone first with the REST API then connecting you to the customer using <Dial> and setting the callerId to your Twilio number. If you wanted to do the entire thing starting from an outbound call on your phone, you could build an app that let you dial a Twilio number, then use <Gather> to take the number you want to dial, and then connect the call out to that number. And the hardest way is building yourself an application using the Twilio Voice SDK so you can open the app and dial your customer.
I have an incoming phone call that is waiting in a conference. While they are waiting, our application looks for an appropriate rep based on some business logic to connect to them too. If we are unable to find a rep, we would like to forward the call to a general number. It's possible that this number will dial to voicemail.
Normally, I would dial out, and when the phone is picked up I would connect the call to the conference. The issue with that workflow is the person in the conference will not hear the call being dialed out, and it also presents challenges with voicemails (I need the inbound call to know if they are leaving a voicemail).
How can I either remove the inbound caller from the conference and dial out to the generic number, or call out from the conference?
I found from here: https://twilio.radicalskills.com/projects/conference-calling-voice/3.html (under "modify live calls") that using the original call Sid you should be able to remove them and send new twiml instructions. Whoopie!
edit: I was asked to expand on my answer. Here is what I'm doing:
The caller is already waiting in a conference, I need to "remove" them and dial out.
Using the Rest API I send a Redirect to the original call sid of the call that was put into a conference.
The Redirect url returns a twiml dial app to the number I want the original call to be connected to.
That's it :)
This is more of a general quest ok but when using Twilio dial in a twiML to connect the caller to another number, can you disconnect Twilio after they are connected or will it just keep connected and increase the call time?
Twilio developer evangelist here.
It sounds like you are asking whether, when you direct a phone call to a TwiML app with something like this:
<Response>
<Dial><Number>OTHER_PHONE_NUMBER</Dial>
</Response>
that you want to disconnect from Twilio once the call is connected to the number?
If that's the case, then the answer is no, I'm afraid. Once a call comes into Twilio, it is being controlled and routed by the Twilio system and you will incur costs by the minute. Whilst this call continues to live you will still be able to affect it via the REST API using its call SID.
Let me know if this helps or if you have any other questions.
I have 2 phone numbers registered as caller ids in my twilio account.
Is is possible to change the caller id during call. Lets say i am using Phone 1 as a caller id but during call if user presses 1 he will be connected to other user. But Before connecting to other user i want that Phone 2 works as caller id.
Is it possible? Please help
Twilio evangelist here.
Based on your description of the workflow, I believe this is possible.
I assume you are using <Gather> to listen for Caller1 to indicate he wants to be connected to another call. If thats the case, in the URL thats requested once Caller1 had pressed one, you're going to return some TwiML that includes the <Dial> verb to tell Twilio to dial Caller2 and bridge them with Caller1. The <Dial> verb has a callerID attribute that you can set to one of your verified caller ID's, and that is what will be shown to Caller2 when Twilio rings them.
https://www.twilio.com/docs/voice/twiml/dial#dial-attributes
Hope that helps.
I'm wondering if the following is possible:
Caller rings Twilio number which gets answered and then automated message is played.
Caller is placed in a queue
In parallel to this, our system dials a number (using the rest API) showing the caller id of the incoming call, plays a gather to verify the user wants to pick up, and then connects the call.
I know that the easiest way to achieve something similar to this is to redirect the incoming call with a Dial verb, but for reasons that aren't really relevant to the question that isn't possible.
Twilio evangelist here.
Yes, this is possible, with the caveat that the initial callers phone number must be previously verified with Twilio. See this topic in the help center:
http://www.twilio.com/help/faq/voice/can-i-use-a-non-twilio-number-as-the-caller-id-for-outgoing-calls
Hope that helps.
Devin