I am trying to set up a very simple system where I can dial out to local numbers using a VOIP app or an ATA.
I have the local number on Twilio
I have a Sip Domain set up on Twilio
I have extensions and SIP Devices set up and working
Using Flow, I can: receive calls, transfer calls to Voicemail, Email and Txt Voicemails
What I cannot seem to figure out is how to just dial outbound calls. I have been over all the documentation but I am not a coder, and all the blogs on making an outbound call seem to require you to be running a host somewhere other than Twilio.
How do I set this up:
I pick up any SIP device authenticated to an extension on my SIP domain.
I dial a local POTS number and it rings that number using my Twilio Local number.
It all must happen on the Twilio platform (SIP Devices excluded)
I was hoping I could use Twilio flows to do that but I cannot figure it out.
Any help would be appreciated.
Thanks
I understand your question but it's a bit hard to understand at which point you are stuck. But I'm happy to point you to this blog post which aims for the same result. So you should be able to find the missing pieces in there.
Related
So I need to programmatically receive text messages from a shortcode. Twilio does not support this. Anybody know a service like Twilio but that is able to receive SMS messages from a short code sender?
Just to be clear. I need to receive a text message from a shortcode to a 10 digit number, not send from a shortcode.
Most services (Twilio, call fire) that let you send from a shortcode can not receive a text message from a shortcode
This can’t be done, shortcodes are unique to each carrier network, when a short code is available across multiple carriers it is implemented on each carrier separatly.
Also shortcodes are not international so 54321 could be used in both the UK and US by totally separate services.
SMS providers like Twilio and Vonage connect to the carriers in the same way as the shortcodes do, they are both an application connection. The carriers do not permit app to app messaging through their network so a shortcode app will only ever be able to send to a real subscriber with a SIM card.
You might find some providers that offer an SMS API by using banks of hosted SIM cards but this can be very flakey and you are usually sharing the number. The other option might be to look at hosting your own SIM card in a usb single or such and recieve the SMS that way.
Actually, Twillio does support this now, although with a big disclaimer that it "cannot guarantee that every short code globally will be able to reach Twilio numbers"
https://support.twilio.com/hc/en-us/articles/223181668-Can-Twilio-numbers-receive-SMS-from-a-short-code-?_ga=2.202438166.641482548.1608644940-210958917.1588771372
I think this article might be just what you're looking for https://help.nexmo.com/hc/en-us/articles/216487658-Inbound-SMS-on-dedicated-US-short-code
You should be able to receive SMS messages on a dedicated US Shortcode.
what I am trying to achieve is to make a VoIP call from an iPhone to an iPhone using Twilio.
To do that I'm using the iOS SDK, the Twilio Voice to be more specific as the iOS SDK is superseded.
I have a server that generates an access token and when I create a call the Twilio API would make a request to my server and I would return a <Dial /> keyword with the client name and the connection would be established.
The problem is, this counts as two calls(iOS app to Twilio is the first one and when I return a TwML <Dial /> response is the second one) so the price is practically doubled.
Is there a way to make it as a single iOS app to an iOS app call? All my server does is to generate the TWiML using the parameters that are sent from the client anyway.
Oh and also in the documentation there are some talks about capability tokens but all the current documentation is using Access Tokens.
Are capability tokens relics of the past for the older API?
Thanks
Twilio developer evangelist here.
Twilio calls are always priced per leg, so in a call between two people you do always pay for the outgoing leg and the incoming leg. They may also have different lengths, if the outgoing call goes through some other TwiML before making the <Dial> for example.
However, if all you want to do is make calls between applications and you don't need to be able to make calls to the phone network then can I recommend you take a look at the Twilio Video project. While it is called "Video" you can use the SDK to make audio calls between apps too. And if you choose to create peer-to-peer rooms, then the audio stream is sent directly between the two devices and not charged as a call leg at all. The only extra thing you need to do is to generate the call notifications yourself.
As for capability tokens, they are indeed a left over bit of documentation. Capability tokens have mostly been renamed as access tokens so you can use them interchangeably. If you investigate the Video SDK, then everything will be Access Tokens too.
I am developing contact center using twilio where my application get request from server to call contact center, so my application initiate a request to call contact center (Twilio enabled number) and contact center is twilio soft phone once the contact center accept a call my application initiate another request to call user so contact center person and user will be in conference. In my application From number is also a twilio enabled number. so my question is can I call one twilio enabled number to another twilio enabled number using java?
Twilio developer evangelist here.
I'm not 100% clear on what you're trying to achieve, but it is certainly possible to connect two Twilio numbers in a call. Those numbers will need to either dial onto a Twilio soft phone or a phone number connected to a real phone in order to connect two people.
I'd recommend taking a look at this Java click to call tutorial which should give you an idea of how to connect to one number, then generate the call to another number and give you a start in this.
Let me know if this helps at all.
I have a question and I need to know if this Twilio integration is possible.
My client needs to keep the same business phone number (as it is marketed and printed in all advertisement).
She has a landline phone handset which is connected to ATT&T with the business phone number, but we have a different number for tech support.
I want to be able to integrate Twilio so that it works like this:
1.Client calls studio phone number
2. Twilio receives the call and presents a (press 1 to speak with the front desk, press 2 to speak with tech support prompt)
3. They press 1 and the studio phone handset rings and the front desk rep is able to take the call.
3a. They press 2 and they are connected to our tech support number.
Please help. If you need any more clarification, please let me know. Thank you.
Twilio evangelist here.
It sounds like the best approach here is to port the business phone number into Twilio. This would let Twilio answer the incoming phone calls and execute your IVR for the callers, which solves steps 1 and 2 in your workflow.
For step 3, if you port the business phone number to Twilio then you'll need to find some other way to make the landline phone in the business ring since it won't have a phone number any more. There are a few ways to do this:
You could get a new phone number from AT&T that rings her landline.
You could go VoIP and build a Twilio Client application hosted either in web browser or a native iPhone or Android app.
With either of these options, from when the user selects option 1 in your IVR, you would just use the <Dial> verb to have Twilio make an outbound connection (either to the new landline number or to the Client instance name) and Twilio will bridge the incoming customers call with that outbound call.
Hope that helps.
I've spent days now searching for a way to route calls from an iOS application through a voip server to mobile number or fixed landline number (or send an SMS)... Essentially like voIP-GSM
I want to essentially have a similar system set up to Skype but with out the other user having the app, just directly call someone's phone using your data/wifi rather than your limited voice minutes or numbers if SMS.
One company who I know of that has worked out how to do this is: http://callsfreecalls.com/
I don't just want app-app communication like from twilio or rebtel!!
1) Would Asterisk or PJSIP help me in any way?
2) Would there be anyway I could do this all for free?
3) Will I have to create my own VoIP network or SIP server??
4) Will I be able to accomplish all this and put it into an iOS app?
Any ideas or help would be much appreciated. Thank you
Twilio evangelist here.
With Twilio Client you can make a VoIP connection from a mobile app into Twilio, then route that to any other number (mobile or landline). You are not restricted to app-to-app only calls.
When you create a Capability Token for Twilio Client, one of the parameters you can pass it is a TwiML Application SID. That TwiML Application maps to a URL that you can use to return TwiML instructions that Twilio will execute when a user initiates an outbound call from your iOS app. In those instructions, you can use the <Dial> verb to tell Twilio to dial a regular phone number, which we will bridge to the Twilio Client connection.
Hope that helps.