Replacing Asterisk with Twilio

From Wildsong
Jump to navigationJump to search

Incoming calls

Currently

  1. Landline # comes in to Twilio.
  2. Twilio sends call to Asterisk over SIP.
  3. Asterisk rings home phones + rings mobile
  4. 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:

  1. Send call to Asterisk
  2. Send call to Mobile
  3. 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

  1. Play message
  2. Record voice mail
  3. Create transcript
  4. Email mp3 and transcript
  5. 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.