Replacing Asterisk with Twilio
From Wildsong
Incoming calls
Currently
- Landline # comes in to Twilio.
- Twilio sends call to Asterisk over SIP.
- Asterisk rings home phones + rings mobile
- If no answer, Asterisk sends call to voicemail.
Cool part: If I pick up on the mobile the call is bridged directly between T-mo and Twilio, the Asterisk link drops out of the picture.
Other cool part: Twilio service quality is still on the uptick, seems to get better and better.
To do:
- Send call to Asterisk
- Send call to Mobile
- If no answer, handle voicemail.
Call already goes to asterisk,
but I want to direct it to both Asterisk and T-mo directly from Twilio instead of bouncing the T-mo call off Asterisk.
IVR
Chapter 8 of the Twilio Cookbook
TwiML application
Outgoing calls
Not working on this yet still routes through Asterisk
Voice mail
- Play message
- Record voice mail
- Create transcript
- Email mp3 and transcript
- SMS Text
Creating a transcript
I think I can send a sound file into Twilio and get back the transcript. Let's play with that.