• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Look Who's Talking
 

Look Who's Talking

on

  • 824 views

http://www.youtube.com/watch?v=d9fvd_OErc8

http://www.youtube.com/watch?v=d9fvd_OErc8

Statistics

Views

Total Views
824
Views on SlideShare
551
Embed Views
273

Actions

Likes
0
Downloads
1
Comments
0

4 Embeds 273

http://gurusp.org 194
http://localhost 64
http://www.gurusp.org 14
https://twitter.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Look Who's Talking Look Who's Talking Presentation Transcript

    • Look Who’s Talking Pablo Cantero @pablocantero http://pablocantero.com 28° GURU-SP - 09/03/2013
    • Why I started with it?
    • We had a problemWe needed a phone support 24x7 in case the website becomes unavailable and other possible urgent issues.
    • SolutionWe decided to use a Communication as a Service (CaaS) toregister a fixed phone number in Brazil, which receives a call and redirects it to the developer on duty cellphone.
    • http://www.twilio.com
    • Why Twilio?• No Contracts• Pay as you go• Simple and well documented API
    • 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
    • Support Roulettehttps://github.com/phstc/support-roulette
    • Plantão Elo7
    • Call me maybe WebRTC
    • gem “twilio-ruby”
    • account_sid      =  ENV["TWILIO_ACCOUNT_SID"]auth_token        =  ENV["TWILIO_AUTH_TOKEN"]twiml_app_sid  =  ENV["TWILIO_TWIML_APP"]capability  =  Twilio::Util::Capability.new  account_sid,  auth_tokencapability.allow_client_outgoing  twiml_app_sid  token  =  capability.generate
    • <ul  id="user-­‐list"  data-­‐token="<%=  token  %>"><%  @users.each  do  |user|  %>        <li>    <%=  user.name  %>  -­‐      <a  href="#"  rel="phone-­‐number">    <%=  user.name  %>    </a> </li><%  end  %></ul>
    • <ul  id="user-­‐list"  data-­‐token="eyJ0...">    <li>          Pablo  Cantero          <a  href="#"  rel="phone-­‐number">              +551199...          </a>      </li></ul>
    • <script src="//static.twilio.com/libs/twiliojs/1.1/twilio.min.js"></script>
    • $  -­‐>    Twilio.Device.setup  $("#user-­‐list").data  "token"      $("a[rel=phone-­‐number]").on  "click",  (e)  -­‐>        e.preventDefault()        if  Twilio.Device.status()  !=  "ready"            Twilio.Device.disconnectAll()            return        $this  =  $  e.target        Twilio.Device.connect  $this.text()
    • $(function(){    Twilio.Device.setup($("#user-­‐list").data("token"));      $("a[rel=phone-­‐number]").on("click",  function(e){        e.preventDefault();        if(Twilio.Device.status()  !==  "ready"){            Twilio.Device.disconnectAll();            return;        }        $this  =  $(e.target);        Twilio.Device.connect($this.text());    });});
    • Other examples
    • Twilio + Monit =Pingdom Mingdomhttps://gist.github.com/phstc/5044114
    • #  /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"
    • #  /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.")
    • SMS Forwarding<Response>    <Sms  from="+5511.."  to="+5511...">        Hello  World    </Sms></Response>
    • Twimlets https://www.twilio.com/labs/twimletsTwimlets are tiny web applications that implement basic voice and text functionality. Think of them as "Widgets" in the web world.
    • Apps which talk• Alerts & Notifications• Rewards• Reminders• System administration• Sales Automation• Bike Sampa• Identity Verification• Security token• Support Roulette ;)
    • Thank you Pablo Cantero @pablocanterohttp://pablocantero.com