kazoocon 2014 - ziron, sms for voice people
TRANSCRIPT
SMS for voice people
Alex Kinch CEO and Founder, Ziron [email protected] / @alexkinch
About Ziron
● Next generation global wholesale voice and messaging carrier
● Founded in 2011, team based in the UK, US and Australia
● Core footprint: ● Europe: UK, Ireland ● North America: US, Canada ● Asia Pacific: Australia, New Zealand
● Services: ● Voice and SMS enabled DIDs ● Outbound SMS ● Number Lookup
2
About Alex
● Background in IP networks and mobile (nearly 20 years)
● Involved in voice since 1997
● Built my first SMS service in 1998
● One of the founders of LONAP IXP
● English
● Likes: Tea, complaining about the weather
3
A BRIEF HISTORY OF SMS
4
FRIEDHELM HILLEBRAND
When: 1984 Where: Germany What: 160 characters
5
NOKIA 1011
When: 10 November, 1992 Where: Germany What: The first SMS-capable handset
6
NEIL PAPWORTH
When: December 3, 1992 Where: United Kingdom What: The first SMS message
7
VODAFONE
When: 1998 Where: United Kingdom What: The first A2P SMS
8
TEGIC
When: 1995 Where: Seattle, WA What: The first predictive text software
9
MOBILE OPERATORS
When: 1999 Where: Everywhere What: Cross network SMS
10
THE CONSUMER
When: 2002 Where: Everywhere What: More than 250 billion SMSs sent around the world
11
When: July 2006 Where: San Francisco, CA What: SMS-based social network launches
12
AMERICAN CONSUMERS
When: 2007 Where: US What: SMS usage surpasses calls
13
BARACK OBAMA
When: 2008 Where: US What: Obama announces Biden as running mate via SMS
14
THE CONSUMER
When: 2010 Where: Worldwide What: 200K SMS per minute
15
SMS - THE NUMBERS
16
SMS - the numbers
$254,664
17
SMS - the numbers
Every minute of 2013, SMS generated
$254,664 of revenue for mobile network operators worldwide Source: Portio Research
18
SMS - the numbers
8.3TN
19
SMS - the numbers
SMS traffic worldwide will peak at
8.3TN messages per year by 2015 Source: Portio Research
20
SMS - the numbers
SMS traffic worldwide will peak at
8,300,000,000,000 messages per year by 2015 Source: Portio Research
21
SMS - the numbers
6.5BN
22
SMS - the numbers
In North America
6.5BN messages are sent every day Source: Portio Research
23
SMS IS NOT DEAD!
24
A2P vs P2P
● You text me or text you: PERSON TO PERSON (P2P)
● You interact with an automated system: APPLICATION TO PERSON (A2P)
● DISCLAIMER: I AM NOT A LAWYER
● US long numbers (MSISDNs, long codes) are supposed to be for P2P usage only
● CTIA regulations say A2P must be via short codes
25
WHAT IS A2P SMS USED FOR?
26
Two factor authentication
27
SMS for banks
28
SMS for credit card issuers
29
Location Services for anti-fraud
30
SMS for healthcare reminders
31
SMS for realtime customer care
32
SMS for deliveries
33
SMS - THE TECHNOLOGY
34
SMS technology 101
● SMS defined in GSM recommendation 0.340 (now 3GPP TS 23.040)
● ‘Store and forward’ service ● Uses SS7 MAP layer, 140 octets ● Three character sets: ● GSM 7bit (160 characters) ● 8bit alphabet (140 characters) ● 16bit UCS-2 / unicode (70 characters)
● Concatenation of long messages ● Reduces length to 153, 134 or 67 characters ● Theoretical limit of 255 segments, practical limit 6-8
35
Common SMS Terminology
● A2P - Application to Person ● P2P - Person to Person ● MSISDN - Mobile Station International Subscriber Identity
Number (aka long code, long number, DID) ● MCC - Mobile Country Code ● MNC - Mobile Network Code ● IMSI - International Mobile Subscriber Identity ● DLR - Delivery Report ● MAP - Mobile Application Part
36
SMS and SS7-MAP
● SMS uses SS7-MAP layer ● Commands: ● Send Routing Info for Short Message (SRI-SM) ● Forward Short Message (FSM)
37
Mobile Terminated SMS flow
38
Interfacing to Ziron
● Inbound SMS: ● HTTP/S webhook ● Email ● SIP MESSAGE ● SMPP (Q1 2015)
● Outbound SMS: ● REST API ● SIP MESSAGE (Soon!) ● SMPP (Q1 2015)
39
DEMO TIME!
40
Ziron API endpoints
● Accounts ● Balances ● Billing ● Calls ● Contact Lists ● Email to SMS ● Endpoints
41
● Lookups ● Messages ● Numbering ● Payments ● Pricing ● Trunks
API documentation available at http://docs.ziron.com
“quick and dirty” SMS auto responder
<?php !include 'ziron-php/ziron-api.php'; !include 'config.php'; !!// Restrict access to Ziron IPs !if (!in_array($_SERVER['REMOTE_ADDR'],$config['webhook_ips'])) { ! die('access denied'); !} !!// Use Ziron class !$Ziron = new Ziron($config['account_sid'], $config['auth_token']); !!// Receive SMS !$inbound_message['from'] = $_GET['from']; !$inbound_message['to'] = $_GET['to']; !$inbound_message['body'] = $_GET['message']; !!// Send reply !$outbound_message['src'] = "+".$inbound_message['to']; !$outbound_message['dst'] = "+".$inbound_message['from']; !$outbound_message['data'] = $config['reply_message']; !!$result = $Ziron->message_send($outbound_message); !
42
Ziron PHP library: https://github.com/zironuk/ziron-php
Setting up an SMS and voice number
● Get available numbering areas for country (state) (/Numbers/Available/US/CA)
● Purchase number from required area (/Numbers/Assigned)
● Create SMS and voice endpoints (/Endpoints)
● Attach SMS and voice endpoints (/Endpoints)
43
The final service
Call or send an SMS to:
+1 415 915 6483
44
Thank you! Alex Kinch CEO and Founder, Ziron [email protected] / @alexkinch Sign up for a FREE account and get $5 / €5 / £5 of FREE credit https://dashboard.ziron.com/signup