How to forward the call to an US local Twilio number from any mobile to any US number?
Its seems to me that I will have to use TwiML to achieve that. Moreover, the supporting doc in https://support.twilio.com/hc/en-us/articles/223179908-Setting-up-call-forwarding#devs is not seeming to show the TwiML correctly. And also with that way I will have to use verb.
Can I not directly call from the number pad of my mobile to the Twilio number so that the call can be received from the forwarding number?
Can I not set a forwarding number to the purchased number programmatically?
Twilio evangelist here.
To forward a call made from your mobile device to a Twilio number to another US phone number you can use the <Dial> verb:
<Response>
<Dial callerId="[your_twilio_phone_number]">[target_phone_number]</Dial>
</Response>
This part of the Voice Quickstart for PHP shows this and might be useful for you:
https://www.twilio.com/docs/quickstart/php/twiml/connect-call-to-second-person
Hope that helps.
This was what I went with before getting the answer from Twilio support but after the answer from #Devin Rader and from my client.
here is a great tutorial doing call forwarding programmatically,
https://www.twilio.com/docs/tutorials/walkthrough/call-tracking/php/laravel.
Yes, you can definitely set the TwiML programmatically on the numbers,
take a look at the documentation on provisioning phone numbers,
https://www.twilio.com/docs/api/rest/incoming-phone-numbers. You can
also set the number so that Twilio makes a call to your application
and your application delivers TwiML dynamically.
Related
I have a Twilio number
I have a TwiML app (3rd party web app)
I have a SIP phone (configured to a SIP domain)
I have a regular mobile phone
I know Twilio is very powerful, but also complex. I try to find out how I can achieve one of the following scenarios:
All phones should ring simultanously
If one phone is picked up
Other phones should stop ringing
I am quite sure, that this could be done. But I do not know how?
It is not important, which Tools used (Studio, Functions, TwiML, Google Code, or a mix of these...)
First I thought I can do this completely in Studio. I know I can ring multiple PSTN phones together, but how can I solve that with different types of phones.
Can someone please point mein the right direction? Maybe there is some "tutorial" or example code, I did not found
I'm not sure if Studio can handle making calls simultaneously to SIP and regular phones, but you can definitely achieve this with TwiML.
To ring more than one phone at a time, you use the <Dial> verb and nest the endpoints that you want to dial within. For dialling a regular phone you can use <Number> and for dialling a SIP phone you can use <Sip>.
<Response>
<Dial>
<Number>YOUR_MOBILE_PHONE_NUMBER</Number>
<Sip>sip:username#exampl.com</Sip>
</Dial>
</Response>
The documentation for parallel calling with Sip does note that:
In order to use the SIP Parallel Calling Twilio feature, you must enable the "Enhanced Programmable SIP Features" in your Voice settings in the Console.
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'm using the following Twimlet to direct all calls go to voicemail
http://twimlets.com/voicemail?Email=somebody#somedomain.com&Message=Please+Leave+A+Message
The voicemail picks up immediately. Is there a setting to make the phone ring for x seconds before voicemail kicks in without forwarding the calls to another number?
Thanks!
Twilio evangelist here.
Unfortunately not with the Twimlet. If you want to generate your own TwiML response you can use the <Pause> verb to keep Twilio from answering the call right away.
Hope that helps.
I would like to use the right Twilio phone number I own to make outgoing calls, once I know the destination phone number I need to choose programmatically the local number which can make the call the cheapest possible.
Is there a way to achieve using Twiml and without storing the Twilio Phone numbers in a DB and do checking from my side.
Thanks in advance.
Twilio evangelist here.
You can use the REST API to ask Twilio to give you a list of all of the phone numbers you own, select the right phone number from that list, then generate the TwiML dynanmically.
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