SIP2SIP - Direcciones SIP gratuitas para las masas

40
AG Projects SIP Infrastructure Experts SIP2SIP SIP accounts for the Masses By Adrian Georgescu Elastix World 2013 Mexico City

description

Esta charla es acerca de las lecciones aprendidas operando el servicio SIP2SIP.info, una oferta para cuentas SIP gratuitas creada en el año 2004 usando software y estándares abiertos, incluye: Direccionamiento y numeración, Proxy SIP frente a diseño B2B, Aplicaciones más allá de VoIP, NAT: mejores prácticas, Mejores prácticas anti-fraude, Datos y Almacenamiento de contraseñas. Conferencista: Adrian Georgescu

Transcript of SIP2SIP - Direcciones SIP gratuitas para las masas

Page 1: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

SIP2SIPSIP accounts for the Masses

By Adrian Georgescu

Elastix World 2013 Mexico City

Page 2: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Adrian [email protected]

@agprojects

Founder and CEO

Page 3: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

AG ProjectsSIP Infrastructure Experts

Since 2002

We are a software vendor specialized in the development and deployment of real-time communications client and server solutions. AG Projects develops, maintains or contributes to thirty software packages among which are OpenSIPS, MediaProxy, OpenXCAP, CDRTool, MSRP Relay, Blink, SylkServer and stacks for real-time protocols and data-exchange mechanisms like SIP, TLS, XCAP, MSRP, RTP, TLS, JSON, PUB/SUB and P2P DHT.

Page 4: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

About AG Projects

Page 5: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Main Portfolio

• OpenSIPS - SIP Server (contributor and management)

• OpenXCAP – Presence Policy Server

• MediaProxy – Audio/video media relay

• MSRP Relay – Chat /File Transfer media relay

• CDRTool – Mediation and Accounting

• SylkServer – Real-time Application Server

Page 6: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Commercial Products

•MSP and SIP Thor - Turnkey SIP platforms

•Blink - SIP Client for OSX, Linux and Windows

Page 7: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Elastix World 2013

•Adrian Georgescu & Saúl Ibarra

•Today SIP2SIP and a live demo (Adrian)

•Today “Project OP^2” (Saúl)

•Tomorrow OpenSIPS tutorial (Adrian & Saul)

Page 8: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

What is SIP2SIP

SIP2SIP is a real time communications service for Audio, Video, Presence, Chat, File Transfer and multiparty conferencing based on SIP and related media protocols (RTP, MSRP and XCAP).

[email protected]

Page 9: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

SIP Protocol

• SIP stands for 'Session Initiation Protocol', an IETF standard described in RFC 3261. SIP is an Internet application-layer control protocol that can establish, modify and terminate multimedia sessions such as Internet telephony calls (VoIP). Media can be added to (and removed from) an existing session

• SIP allows the endpoints to negotiate and combine any type of session they mutually understand like Audio, Video, Instant Messaging (IM), File Transfer and provides a generic event notification system with real-time Publications and Subscriptions about state

Page 10: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

SIP Protocol mechanics

• INVITE mechanism, media agnostic, any type of media supported by end-points (not just VoIP)

•Subscribe/Notify asynchronous mechanism with XML payloads (Presence, Dialog-info, MWI)

Page 11: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

SIP Protocol features

• Portable Internet address (not tied to geography)

• Any media possible using Offer/Answer model (SDP)

• RTP media (audio, video)

• MSRP media (chat, file transfer)

Page 12: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

SIP Protocol Addressing

• SIP Address example: user@domain

• Can be the same as Email or XMPP address

• Phone numbers can be mapped to SIP using ENUM

Page 13: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Page 14: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

What is SIP2SIP

SIP2SIP is a real time communications service for Audio, Video, Presence, Chat, File Transfer and multiparty conferencing based on SIP and related media protocols (RTP, MSRP and XCAP).

[email protected]

Page 15: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

What SIP2SIP offers

• A publicly reachable SIP address [email protected]

• Works with any SIP device (phone, soft client, PBX)

• Works behind NAT

• A free SIP client (Blink for SIP2SIP)

Page 16: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

First iteration of SIP2SIP

• Started in 2004 with UDP signaling and audio calls

• Testbed for SIP Express Router

• Free SIP address

Page 17: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

SIP2SIP Timeline

• Added MediaProxy NAT traversal

• Added Voicemail and Voice to Email

• Added Chat and File Transfer (MSRP protocol)

• Added PSTN termination

• Added ICE NAT traversal

Page 18: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

SIP2SIP Timeline

• Added Presence (SIMPLE and XCAP)

• Added TLS support (encryption)

• Added multiparty conferencing

• Federation with XMPP domains

• User your own Internet domain

Page 19: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Usage (2010)

Page 20: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Today’s Usage

Page 21: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Building SIP2SIP

• SIP Servers (SER, OpenSER and now OpenSIPS)

• Media relays (RTP Proxy then MediaProxy)

• Presence Policy (OpenXCAP)

• Databases (MySQL moving to Mongo DB)

• Accounting (FreeRadius, Call Control, CDRTool)

• Scalability layer (Heartbeat then SIP Thor)

Page 22: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

OpenSIPS

•SIP Proxy (routes SIP packets)

•SIP Registrar (end-points are reachable)

•Presence Agent (for presence)

Page 23: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

MediaProxy

• Relay for RTP media

• Audio and video

• Codec agnostic

• ICE friendly

Page 24: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

MSRP Relay

• Relay for MSRP media

• Chat Sessions

• File Transfer

• Screen sharing

Page 25: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

CDRTool

• Rating engine

• Accounting

• User portal

Page 26: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Call Control

• Prepaid engine

• Call Limits

• Anti fraud

Page 27: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Asterisk

•Voicemail and Voice to email

•Various telephony integration tasks

Page 28: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

SylkServer

•SIP Application server

•Multiparty multimedia conferencing

•XMPP gateway (for chat, audio, presence)

•Voice prompt playing

Page 29: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

SylkServer

Page 30: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Page 31: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

What is Privacy

• Whom and when I communicate with (Signaling)

• What and how I communicate (Media)

• Encryption and Identity management

Page 32: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Privacy Stakeholders

• Server based privacy (THEY know too)

• Client based privacy (only YOU know)

Page 33: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts Why should I care about privacy?

• If you have nothing to hide you should not worry (big government mantra). Returns FALSE.

• Who says the above is your nemesis (ask any one who lived in a communist collectivist regime)

• Yes, you should care about your privacy. If your privacy is not respected, it is a matter of time until all your personal freedoms are taken away

Page 34: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Should I Trust the Cloud?

•Don’t trust ANY server in the cloud

• Privacy is COMPROMISED ‘by design’

• All signaling information is known for routing and accounting purposes

•GB per month of free storage but who owns my data?

Page 35: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Encryption

• Parties must exchange some keys

• The keys are used to encrypt and sign the data

• Exchanging the keys is key to this process

Page 36: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Symmetric Key algorithms

• Same key used by both parties

• Same key is used for encrypt and decrypt

• Protects integrity but does not guarantee identity

Page 37: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Asymmetric Key algorithms

• Each party has a public/private key pair

• Public key is used for encryption

• Private key is used for signing and decryption

Page 38: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Encryption and Privacy tools

• zRTP for audio and video (roadmap for Blink)

• OTR for chat (now available in Blink)

Page 39: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Live Demonstration

•Blink SIP Client on SIP2SIP

•SylkServer multiparty conferencing

•Federation with XMPP Gmail

Page 40: SIP2SIP - Direcciones SIP gratuitas para las masas

AG ProjectsSIP Infrastructure

Experts

Adrian [email protected]

@agprojects