3. We had a problem
We needed a phone support 24x7 in case the
website becomes unavailable and other
possible urgent issues.
4.
5.
6. Solution
We decided to use a Communication as a Service (CaaS) to
register a fixed phone number in Brazil, which receives a call
and redirects it to the developer on duty cellphone.
8. Why Twilio?
• No Contracts
• Pay as you go
• Simple and well documented API
9. Brazilian pricing
• To receive a call = 1¢/minute
• To make a call = 33¢/minute
• To send a text: starts at =1.2¢/message
• Fixed brazilian number = 3$/month
• Fixed american number = 1$/month
23. #
/etc/monitrc
check
host
localhost
with
address
127.0.0.1
if
failed
port
8080
with
timeout
15
seconds
then
exec
"ruby
/usr/bin/notify-‐site-‐is-‐down.rb'"
24. #
/usr/bin/notify-‐site-‐is-‐down.rb
require
"rubygems"
require
"twilio-‐ruby"
account_sid
=
ENV["TWILIO_ACCOUNT_SID"]
auth_token
=
ENV["TWILIO_AUTH_TOKEN"]
@client
=
Twilio::REST::Client.new(account_sid,
auth_token)
@client.account.SMS.messages.create(
from:
"+5511…",
to:
"+5511…",
body:
"Houston
we
have
a
problem,
the
website
is
down."
)
26. Twimlets
https://www.twilio.com/labs/twimlets
Twimlets are tiny web applications that implement basic voice and text functionality. Think
of them as "Widgets" in the web world.
27. Apps which talk
• Alerts & Notifications
• Rewards
• Reminders
• System administration
• Sales Automation
• Bike Sampa
• Identity Verification
• Security token
• Support Roulette ;)
28. Thank you
Pablo Cantero
@pablocantero
http://pablocantero.com