SlideShare a Scribd company logo
1 of 28
Look Who’s Talking




        Pablo Cantero
       @pablocantero
   http://pablocantero.com
                             28° GURU-SP - 09/03/2013
Why I started with it?
We had a problem
We needed a phone support 24x7 in case the
  website becomes unavailable and other
          possible urgent issues.
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.
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 Roulette
https://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_token

capability.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 Mingdom
https://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/twimlets

Twimlets 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
    @pablocantero
http://pablocantero.com

More Related Content

What's hot

WEC Content Elements API
WEC Content Elements APIWEC Content Elements API
WEC Content Elements APIJeff Segars
 
Mojolicious: what works and what doesn't
Mojolicious: what works and what doesn'tMojolicious: what works and what doesn't
Mojolicious: what works and what doesn'tCosimo Streppone
 
LAMP_TRAINING_SESSION_8
LAMP_TRAINING_SESSION_8LAMP_TRAINING_SESSION_8
LAMP_TRAINING_SESSION_8umapst
 
HTML5 Web Messaging
HTML5 Web MessagingHTML5 Web Messaging
HTML5 Web MessagingMike Taylor
 
Ben Bridts - $ aws help
Ben Bridts -  $ aws helpBen Bridts -  $ aws help
Ben Bridts - $ aws helpAWSCOMSUM
 
PHP - RAQ (Rarely Asked Questions!)
PHP - RAQ (Rarely Asked Questions!)PHP - RAQ (Rarely Asked Questions!)
PHP - RAQ (Rarely Asked Questions!)Suresh Pandian
 
[PL] Jak nie zostać "programistą" PHP?
[PL] Jak nie zostać "programistą" PHP?[PL] Jak nie zostać "programistą" PHP?
[PL] Jak nie zostać "programistą" PHP?Radek Benkel
 
Hack this site
Hack this siteHack this site
Hack this siteikram
 
API Pain Points (PHPNE)
API Pain Points (PHPNE)API Pain Points (PHPNE)
API Pain Points (PHPNE)Phil Sturgeon
 
fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)
fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)
fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)modeelf
 
自社サービスのAPIをOAuth2対応にして公開した
自社サービスのAPIをOAuth2対応にして公開した自社サービスのAPIをOAuth2対応にして公開した
自社サービスのAPIをOAuth2対応にして公開したMaki Toshio
 

What's hot (15)

WEC Content Elements API
WEC Content Elements APIWEC Content Elements API
WEC Content Elements API
 
Mojolicious: what works and what doesn't
Mojolicious: what works and what doesn'tMojolicious: what works and what doesn't
Mojolicious: what works and what doesn't
 
LAMP_TRAINING_SESSION_8
LAMP_TRAINING_SESSION_8LAMP_TRAINING_SESSION_8
LAMP_TRAINING_SESSION_8
 
HTML5 Web Messaging
HTML5 Web MessagingHTML5 Web Messaging
HTML5 Web Messaging
 
Ben Bridts - $ aws help
Ben Bridts -  $ aws helpBen Bridts -  $ aws help
Ben Bridts - $ aws help
 
Blog Hacks 2011
Blog Hacks 2011Blog Hacks 2011
Blog Hacks 2011
 
Api pain points
Api pain pointsApi pain points
Api pain points
 
Tutorial
TutorialTutorial
Tutorial
 
PHP - RAQ (Rarely Asked Questions!)
PHP - RAQ (Rarely Asked Questions!)PHP - RAQ (Rarely Asked Questions!)
PHP - RAQ (Rarely Asked Questions!)
 
[PL] Jak nie zostać "programistą" PHP?
[PL] Jak nie zostać "programistą" PHP?[PL] Jak nie zostać "programistą" PHP?
[PL] Jak nie zostać "programistą" PHP?
 
Hack this site
Hack this siteHack this site
Hack this site
 
API Pain Points (PHPNE)
API Pain Points (PHPNE)API Pain Points (PHPNE)
API Pain Points (PHPNE)
 
fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)
fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)
fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)
 
Intro to Silex
Intro to SilexIntro to Silex
Intro to Silex
 
自社サービスのAPIをOAuth2対応にして公開した
自社サービスのAPIをOAuth2対応にして公開した自社サービスのAPIをOAuth2対応にして公開した
自社サービスのAPIをOAuth2対応にして公開した
 

Viewers also liked

Viewers also liked (20)

Nota seminar kesempurnaan solat
Nota seminar kesempurnaan solatNota seminar kesempurnaan solat
Nota seminar kesempurnaan solat
 
Ukr 2.part ii of ccs ppt with allimi (06.07.2015)
Ukr 2.part ii of ccs ppt with allimi (06.07.2015)Ukr 2.part ii of ccs ppt with allimi (06.07.2015)
Ukr 2.part ii of ccs ppt with allimi (06.07.2015)
 
Saoirse B
Saoirse BSaoirse B
Saoirse B
 
easter
eastereaster
easter
 
หนึ่ง
หนึ่งหนึ่ง
หนึ่ง
 
Are resumesdead
Are resumesdeadAre resumesdead
Are resumesdead
 
Placemaking Conference: Walkable Cities
Placemaking Conference: Walkable CitiesPlacemaking Conference: Walkable Cities
Placemaking Conference: Walkable Cities
 
Segmintation
SegmintationSegmintation
Segmintation
 
Annual-Report-RTB-2014
Annual-Report-RTB-2014Annual-Report-RTB-2014
Annual-Report-RTB-2014
 
Презентація на семінар для грантерів, 10-11 квітня 2014
Презентація на семінар для грантерів, 10-11 квітня 2014Презентація на семінар для грантерів, 10-11 квітня 2014
Презентація на семінар для грантерів, 10-11 квітня 2014
 
програма е урядування львів
програма е урядування львівпрограма е урядування львів
програма е урядування львів
 
положение о конкурсе учебных кабинетов
положение о конкурсе учебных кабинетовположение о конкурсе учебных кабинетов
положение о конкурсе учебных кабинетов
 
customer journey
customer journeycustomer journey
customer journey
 
Mgsdp for ualrc 13 09 2012
Mgsdp for ualrc 13 09 2012Mgsdp for ualrc 13 09 2012
Mgsdp for ualrc 13 09 2012
 
Docs
DocsDocs
Docs
 
Akhlaq warga muhammadiyah
Akhlaq warga muhammadiyahAkhlaq warga muhammadiyah
Akhlaq warga muhammadiyah
 
византия
византиявизантия
византия
 
Cs3 3
Cs3 3Cs3 3
Cs3 3
 
Welcome
WelcomeWelcome
Welcome
 
Milagro Tequila Cocktail Recipes
Milagro Tequila Cocktail RecipesMilagro Tequila Cocktail Recipes
Milagro Tequila Cocktail Recipes
 

Similar to Look Who's Talking

Phone calls and sms from php
Phone calls and sms from phpPhone calls and sms from php
Phone calls and sms from phpDavid Stockton
 
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
[CB16] Esoteric Web Application Vulnerabilities by Andrés RianchoCODE BLUE
 
Tech campmemphis slides_post_session
Tech campmemphis slides_post_sessionTech campmemphis slides_post_session
Tech campmemphis slides_post_sessionStewart Whaley
 
Lets have some fun with twilio open tok
Lets have some fun with   twilio open tokLets have some fun with   twilio open tok
Lets have some fun with twilio open tokmirahman
 
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...DevOpsDays Tel Aviv
 
Petr Dvořák: Mobilní webové služby pohledem iPhone developera
Petr Dvořák: Mobilní webové služby pohledem iPhone developeraPetr Dvořák: Mobilní webové služby pohledem iPhone developera
Petr Dvořák: Mobilní webové služby pohledem iPhone developeraWebExpo
 
The Future of the Web - Cold Front conference 2016
The Future of the Web - Cold Front conference 2016The Future of the Web - Cold Front conference 2016
The Future of the Web - Cold Front conference 2016Robert Nyman
 
The Future of Progressive Web Apps - View Source conference, Berlin 2016
The Future of Progressive Web Apps - View Source conference, Berlin 2016The Future of Progressive Web Apps - View Source conference, Berlin 2016
The Future of Progressive Web Apps - View Source conference, Berlin 2016Robert Nyman
 
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)Dotan Dimet
 
Simple callcenter platform with PHP
Simple callcenter platform with PHPSimple callcenter platform with PHP
Simple callcenter platform with PHPMorten Amundsen
 
Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012Michael Peacock
 
How to Integrate Text and Phone Messaging with your Website
How to Integrate Text and Phone Messaging with your WebsiteHow to Integrate Text and Phone Messaging with your Website
How to Integrate Text and Phone Messaging with your WebsiteCindy Cullen
 
Practical PHP by example Jan Leth-Kjaer
Practical PHP by example   Jan Leth-KjaerPractical PHP by example   Jan Leth-Kjaer
Practical PHP by example Jan Leth-KjaerCOMMON Europe
 
Smashing the stats for fun (and profit)
Smashing the stats for fun (and profit)Smashing the stats for fun (and profit)
Smashing the stats for fun (and profit)Security B-Sides
 
My app is secure... I think
My app is secure... I thinkMy app is secure... I think
My app is secure... I thinkWim Godden
 
Ruby on Rails For Java Programmers
Ruby on Rails For Java ProgrammersRuby on Rails For Java Programmers
Ruby on Rails For Java Programmerselliando dias
 

Similar to Look Who's Talking (20)

Phone calls and sms from php
Phone calls and sms from phpPhone calls and sms from php
Phone calls and sms from php
 
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
[CB16] Esoteric Web Application Vulnerabilities by Andrés Riancho
 
Tech campmemphis slides_post_session
Tech campmemphis slides_post_sessionTech campmemphis slides_post_session
Tech campmemphis slides_post_session
 
Lets have some fun with twilio open tok
Lets have some fun with   twilio open tokLets have some fun with   twilio open tok
Lets have some fun with twilio open tok
 
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
CI/CD on Windows-Based Environments - Noam Shochat, eToro - DevOpsDays Tel Av...
 
Petr Dvořák: Mobilní webové služby pohledem iPhone developera
Petr Dvořák: Mobilní webové služby pohledem iPhone developeraPetr Dvořák: Mobilní webové služby pohledem iPhone developera
Petr Dvořák: Mobilní webové služby pohledem iPhone developera
 
- Webexpo 2010
- Webexpo 2010- Webexpo 2010
- Webexpo 2010
 
The Future of the Web - Cold Front conference 2016
The Future of the Web - Cold Front conference 2016The Future of the Web - Cold Front conference 2016
The Future of the Web - Cold Front conference 2016
 
The Future of Progressive Web Apps - View Source conference, Berlin 2016
The Future of Progressive Web Apps - View Source conference, Berlin 2016The Future of Progressive Web Apps - View Source conference, Berlin 2016
The Future of Progressive Web Apps - View Source conference, Berlin 2016
 
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
Mojolicious - Perl Framework for the Real-Time Web (Lightning Talk)
 
Simple callcenter platform with PHP
Simple callcenter platform with PHPSimple callcenter platform with PHP
Simple callcenter platform with PHP
 
Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012Real time voice call integration - Confoo 2012
Real time voice call integration - Confoo 2012
 
How to Integrate Text and Phone Messaging with your Website
How to Integrate Text and Phone Messaging with your WebsiteHow to Integrate Text and Phone Messaging with your Website
How to Integrate Text and Phone Messaging with your Website
 
Practical PHP by example Jan Leth-Kjaer
Practical PHP by example   Jan Leth-KjaerPractical PHP by example   Jan Leth-Kjaer
Practical PHP by example Jan Leth-Kjaer
 
Writing a slack chatbot seattle
Writing a slack chatbot seattleWriting a slack chatbot seattle
Writing a slack chatbot seattle
 
Smashing the stats for fun (and profit)
Smashing the stats for fun (and profit)Smashing the stats for fun (and profit)
Smashing the stats for fun (and profit)
 
Payments On Rails
Payments On RailsPayments On Rails
Payments On Rails
 
My app is secure... I think
My app is secure... I thinkMy app is secure... I think
My app is secure... I think
 
Api
ApiApi
Api
 
Ruby on Rails For Java Programmers
Ruby on Rails For Java ProgrammersRuby on Rails For Java Programmers
Ruby on Rails For Java Programmers
 

Recently uploaded

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Bhuvaneswari Subramani
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontologyjohnbeverley2021
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityWSO2
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 

Recently uploaded (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

Look Who's Talking

  • 1. Look Who’s Talking Pablo Cantero @pablocantero http://pablocantero.com 28° GURU-SP - 09/03/2013
  • 2. Why I started with it?
  • 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
  • 11.
  • 13. Call me maybe WebRTC
  • 15. 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_token capability.allow_client_outgoing  twiml_app_sid   token  =  capability.generate
  • 16. <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>
  • 17. <ul  id="user-­‐list"  data-­‐token="eyJ0...">    <li>          Pablo  Cantero          <a  href="#"  rel="phone-­‐number">              +551199...          </a>      </li> </ul>
  • 19. $  -­‐>    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()
  • 20. $(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());    }); });
  • 22. Twilio + Monit = Pingdom Mingdom https://gist.github.com/phstc/5044114
  • 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." )
  • 25. SMS Forwarding <Response>    <Sms  from="+5511.."  to="+5511...">        Hello  World    </Sms> </Response>
  • 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