7 ms·
Using Twilio to make a call forwarding and voice messaging system
- tyingq 7y agoI would also recommend having a look at Anveo. They have a visual call flow handler that is less flexible than Twilio, but generally easier to understand and faster to make changes in. https://www.anveo.com/consumer/features.asp?code=ivrcallflow https://www.anveo.com/consumer/features.asp?code=ivrcallflow
- ooklala 7y agoThe one feature that everyone seems to be missing with these tutorials is a simple tool to have people confirm that they would like to accept the forwarded call... I'm helping a mutual aid group and we have a list of people whose phones all ring simultaneously (meaning that inevitably someones voicemail answers first) and I have yet to find an easy way to implement a simple "Press any key to accept this call" where the first person to answer AND press any key gets the call...
- yusyusyus 7y ago>I have yet to find an easy way to implement a simple "Press any key to accept this call" where the first person to answer AND press any key gets the call Would you be interested in a functions script that does this? I've got one kicking around I can share.
- mc_ 7y agoKazoo [0] offers this as a config option on devices (which can represent SIP desk phones, soft phones, WebRTC endpoints, or call-forwarded cell phones): call_forward.require_keypress [1] There's a lot of re-inventing of telecom wheels required (if even possible) with TwiML (and clones). [0] https://github.com/2600hz/kazoo https://github.com/2600hz/kazoo [1] https://docs.2600hz.com/dev/applications/crossbar/doc/devices/ https://docs.2600hz.com/dev/applications/crossbar/doc/device...
- ping_pong 7y agoYou can implement this with the Twilio API or Twilio Studio pretty easily.
- mksreddy 7y agoDoesn't Twilio charge both incoming and outgoing minutes for call forwarding?
- a2tech 7y agoYes--why wouldn't they? Your call is going through their network fully--this isn't a broker situation where their router connects the 2 endpoints directly.
- skrtskrt 7y agoYes, but this is standard of any telecom provider, and Twilio is charging you for it because their underlying providers are charging them. Also inbound legs are generally an order of magnitude cheaper per minute for standard phone numbers. Standard call: - A places an outbound leg to C. A pays for this leg - C receives an inbound leg from A. C pays for this leg Forwarded call with B (your Twilio/some other telephony API provider number) in the middle: - A places an outbound leg to B. A pays for this leg - B receives an inbound leg from A. B pays for this leg. - B places outbound leg to C. B pays for this leg - C receives an inbound leg from B. C pays for this leg In this scenario the two "sides" of the call could be going through completely different underlying telcos so there's no "Oh it's just forwarding!" The two different telcos don't really care about that. To them they're still each setting up 1 outbound & 1 inbound leg. Although the billing structure is standard, Twilio is not considered a low cost provider for what they offer. They kind of rely on their customers being software people that need an API but don't know enough about telecom billing to demand better. The value-add is real though, you would never want to go about this on your own. Companies like Twilio (and their competitors) gloss over the millions of rough edges that exist when working with a telco directly. It's just that the markup is very high for Twilio.
- tracker1 7y agoAre there alternatives that have as simple and well documented an interface for development... considering how much some of the SIP providers I've seen charge for SMBs, I think it kind of evens out depending on usage.
- quit32 7y agoTwilio is pretty great but for this use case using Google Voice is a lot simpler (assuming its available in your country) I recently did this for a firm that is fully remote now during pandemic. They had non voip line for main number. Set the office phone to FW to a GV number and put GV in DND so it goes straight to voicemail which was what they wanted. Then setup GV to send voicemail to email and gmail to forward to slack channel using the basic slack email integration app. All in all very easy to setup in 20 min or less and get transcribed VM in slack channel with link to play the message as well.
- deleted 7y ago[deleted]
- tracker1 7y agoI keep thinking of setting up something like this with Twilio as a backup... I don't trust GV to stay around forever... especially since it seems like they just stopped supporting voicemail transcription for a while (iirc over a month) and the settings and integrations seem to be left to die... I haven't looked in a while, but running a Virtual PBX via Twilio or similar is really interesting to me... and something I'm surprised more aren't taking on, considering I've seen the amount of what providers for SIP support are charging.
- TechBro8615 7y agoGoogle voice doesn't work for some 2FA services (Bank of America, for example). Messages simply do not deliver. Very annoying.
- etaioinshrdlu 7y agoCan one port their cell phone number into Twilio and build their own google voice equivalent using it? Not that I really plan on doing this :)
- zrail 7y agoThe tricky thing is that your cell phone needs a number in order to receive calls.
- martin_ 7y agoDisclaimer: Twilio engineer You could forward via VOIP! The biggest downside IMO is losing iMessage, or I probably would've ported mine years ago :)
- triangleman 7y agoSorry can you explain? Do you mean installing a VoIP app on your phone?
- etaioinshrdlu 7y agoAny other fun things I could build using my phone number on twilio???
- joshmn 7y agoYou can port to Twilio, but, yeah. Like you mentioned, you can use call forwarding — there's even things like conditional call forwarding if you just want to forward your missed calls or things that go to voicemail. I did exactly this to build https://tinyvoicemail.com https://tinyvoicemail.com (which I'll be open-sourcing in the near future)
- my_first_acct 7y agoNote that Twilio numbers (in the US, anyway) cannot receive SMS messages from short codes [1]. This means that you may not be able to receive SMS 2FA messages from your bank. [1] https://support.twilio.com/hc/en-us/articles/223181668-Can-Twilio-numbers-receive-SMS-from-a-short-code- https://support.twilio.com/hc/en-us/articles/223181668-Can-T...
- apapli 7y agoThe only issue I have with Twilio is their charging. For voicemails, calls typically last less than 10 seconds, and often only a second (because they hang up and don't leave a message) - but as they charge per minute you are billed the full 60 seconds each call. I built something similar as a side project but switched to Nexmo, purely because they charge per second. It was a fun thing to build and test.
- chetatkinsdiet 7y agoFun fact, if you're an enterprise customer you can demand full second rounding, or if you're mid market you can bring that down to 6 second rounding in many telco oriented places.
- joshmn 7y agoIf there's interest in this kind of stuff, I'm working on open-sourcing the core of a SaaS side project[0] I have. It's visual voicemail on steroids (cliché, sorry) and, like the linked article describes, accepts your forwarded call and handles the voicemail. Afterwards (and this was my original use-case), it can trigger a bunch of hooks to your favorite things — Dropbox, email, Slack, SMS, Zapier, what have you (and all right out of the box). I built it because I was on Android and wanted to keep my moms voicemails. :) [0] https://tinyvoicemail.com https://tinyvoicemail.com
- aleksandrm 7y agoI would be interested in seeing it if open sourced. I used YouMail in the past and their UI really bugged me, so I was playing around with the idea of building something more modern and self hosted.
- scrollaway 7y agoThis is interesting. Let me give you some potentially helpful context: Some services require companies to have a public phone number. This doesn't need to be a real support phone number, but it shouldn't be completely unattended. Your service would fit right into that, and if you (optionally) handled the purchase of the number itself (Twilio will do that), it would make it quite literally a 5 minute setup. The only other thing I haven't found is a forwarding service, that would allow such companies to purchase a number in a particular country, to forward calls/sms to another arbitrary phone number (or an email/voicemail box). I'd certainly use that for myself as well.
- rsync 7y agoI hate voicemail so much. I wanted my phone number to "ring forever" if I didn't pick up, and here is the Twilio twiml bin that does that: <?xml version="1.0" encoding="UTF-8"?> <Response> <Pause length="600"/> <Hangup /> </Response> OK, actually ring for 10 minutes, but that might as well be forever ...
- mathrawka 7y agoAnd you get billed for up to 10 minutes. <Response><Reject /></Response> is free
- Nexxxeh 7y agoThis is super simple, and I like that using Twilio Studio makes it easy to expand and customise. But for just the end goal, depending on use case specifics, another option is to use Twimlets which has the added bonus of the missing voicemail to email. https://www.twilio.com/labs/twimlets https://www.twilio.com/labs/twimlets I've been thinking of building something a little bit more in depth, using Twilio Studio and Google Firebase, with proper dial-in voicemail retrieval, SMS notification, and maybe Sendgrid voicemail to email. Does anyone has a ready-rolled Twilio Studio direct to Firebase example?
- j88439h84 7y agoI've been wondering, how hard would it be to set up a system like Apple's "hide my email" but for phone numbers, generating a new random phone number whenever I need to give it out?
- chetatkinsdiet 7y agoSuper easy and a bunch of apps do it, the problem here is that the numbers actually have a leasing cost if you want to hang on to them vs something like an email alias/front.
- anonred 7y agoOne possible way around this is to use phone number extensions, although I haven’t researched how well supported this might be across apps and the web.
- beams_of_light 7y agoI did this a while back, and got rid of the home phone. We had made the transition to VoIP in the early 2000s, and then migrated the number to Google, Anveo, and finally Twilio. I was tired of getting calls all day for various things and decided to make a Twilio Studio IVR. Now, I have text messages and certain calls (if someone vocalizes a choice or pushes a key) forwarded to mine or my wife's mobile.
- maxdo 7y agoyou can go a bit forward and transfer the call to WhatsApp or any other messenger using flow.ai , very useful nowadays.
- locusofself 7y agoTwilio has a great API and documentation etc. But I don't understand why we don't kill the old telephone system as soon as possible. And for anyone who has looked at how SMS actually works, it's a dumpster fire similar to XMPP but probably worse.
- stevekemp 7y agoTwilio really is a great provider. Sure they're expensive, and sure you have to pay to lease your number every month, but I've had so much fun with them. For example I hooked I setup a simple "on-call" system by monitoring a specific Slack channel, and when emergency-messages were present, would dial and play a message to an engineer. Wonderfully reliable and worked really well.