Upload
saul-ibarra-corretge
View
3.890
Download
1
Tags:
Embed Size (px)
DESCRIPTION
Charla del voip2day 2013
Citation preview
sip2sipSIP gratis para las masas
Saúl Ibarra Corretgé
@saghul
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
¡Hola!
• @saghul
• VOIP ALL THE THINGS
• Open Source
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
AG Projects
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Software en el que trabajamos
• OpenSIPS - Servidor SIP (core contributors y parte del board)
• OpenXCAP – Autorización de Presencia
• MediaProxy – Relay para audio / video
• MSRP Relay – Relay para chat y transferencia de ficheros
• CDRTool – Generación de CDRs / facturación
• SylkServer – Servidor de Aplicaciones SIP / XMPP
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Productos Comerciales
• MSP y SIP Thor – Plataformas SIP
• Blink – Cliente SIP para OSX, Linux y Windows
Self-organizing SIP Infrastructure
SIP User Agents
User agents need only RFC3263 support(locating SIP services using DNS lookups)
Internet
Self-organizingHorizontally scalableBuilt-in disaster recoveryNo single point of failureMaintenance free
Multiple RolesSIP Proxy/RegistrarRTP Media relayPresence AgentXCAP serverVoicemailProvisioning
Node 5
DB
Node 3
DB
Node 1
DB
Node 2
DB
Node 6
DB
Node 4
DB
SIPRTP
NATNAT
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
SIP Trapezoid
DNS query DNS query
Global identity
.e164.arpa
.net
.org
.biz
.net
.com
NAT
RTP
RTP media
SIPSIP
Operator 2
SIP
Presence
Voicemail
DB
DB
SIPSIP Registrar
DB queryDB
LocationDatabase
Media Relay
DNS
DNSand
ENUMDB
NAT
SIP
RTP
Copyright © 2002-2013 AG ProjectsNAT
RTP
SIP
Operator 1
DB
Accounting
Radius
SIP Proxy
DB
Media Relay
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Funcionalidades con SIP
• Dirección “portable” (no vinculada a una ubicación)
• Cualquier tipo de media utilizando SDP y el modelo offer / answer
• RTP – audio y video
• MSRP – chat, transferencia de ficheros
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Numeración en SIP
[email protected]:1234
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Numeración en SIP
usuario@dominio
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
ENUM: el gateway al pasado
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
¿Qué es SIP2SIP?
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
¿Qué ofrece SIP2SIP?
• Una dirección SIP pública: [email protected]
• Funciona con cualquier dispositivo SIP (teléfonos, softphones, PBX, ...)
• Funciona tras cualquier tipo de NAT
• Cliente SIP gratuito (Blink para SIP2SIP)
• Puedes usar tu propio dominio
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Primera versión de SIP2SIP
• Año 2004: SIP sobre UDP y llamadas de audio
• Testing para SIP Express Router
• Cuentas SIP gratuitas
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Evolución de SIP2SIP
• MediaProxy para NAT traversal
• Buzones de voz
• Chat y transferencia de ficheros (protocolo MSRP)
• Terminación a la PSTN
• Soporte para NAT traversal con ICE
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Evolución de SIP2SIP
• Presencia (SIMPLE y XCAP)
• Soporte TLS
• Conferencias multimedia
• Federación con dominios XMPP
• Utiliza tu propio dominio
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Estadísticas de uso
0
1000
2000
3000
4000
2008 2009 2010 2011 2012Nuevos registros / mes
• 3000 dispositivos registrados habitualmente
• > 200.000 cuentas creadas
• Clientes SIP más allá de la VoIP
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Construyendo SIP2SIP
• Servidores SIP (SER, OpenSER y ahora OpenSIPS)
• Relays para RTP (RTPProxy, ahora MediaProxy)
• Autorización de Presencia (OpenXCAP)
• Bases de Datos (MySQL, pronto Mongo DB)
• Accounting (FreeRadius, Call Control, CDRTool)
• Escalabilidad (Heartbeat, ahora SIP Thor)
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
OpenSIPS
• Proxy SIP (envía / recibe paquetes SIP)
• Registrar (ubicación de dispositivos)
• Agente de Presencia
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
MediaProxy
• Relay de RTP
• Audio y video
• Codec agnostic
• Soporte para ICE
MediaProxy - RTP media relay
Copyright © 2002-2013 AG Projects
NAT NAT
SIP
RTP
OpenSIPS
Server Reflexive Candidates
STUN servers
STUN
RelayCandidate
Hosts Candidates
MediaProxy MediaProxy
MediaProxy
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
MSRP Relay
• Relay de MSRP
• Sesiones de chat
• Transferencia de ficheros
• Compartir escritorio
MSRP RelayOperator
SIP Proxy
DB
SIPMSRP relayRFC4976
MSRP
NATrouter
MSRP Device B
MSRP Device A
Copyright © 2002-2013 AG Projects
NATrouter
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
CDRToolCDRTool Accounting
OpenSIPS MediaProxy
Freeradius
STARTSTOP
FAILED
Copyright © 2002-2013 AG Projects
UPDATE
MediaTraceSipTrace
CDRToolrating engine
CDR
RTPSIP
WEB interface
NAT
NAT
• Clasificación de llamadas
• Accounting
• Portal de usuario
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Call Control
OpenSIPS Prepaid Engine
OpenSIPSProxy
CallControlserver
CDRTool rating engine
DebitBalance()
MaxSessionTime()callcontrol()
/etc/init.d/callcontrol show sessions
MySQL
Freeradius
START/STOPFAILED
dlg_end_dlg()
RTP timeout
sessionsNormalize()
Copyright © 2009 AG Projects
WEB interface
• Motor de gestión de prepago
• Límites en las llamadas
• Medidas antifraude
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Asterisk
• Buzones de voz
• Locuciones
• Futuro: SylkServer
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
SylkServer
• Servidor de Aplicaciones SIP
• Conferencias multimedia multiusuario
• Gateway XMPP (chat, audio y presencia)
• Locuciones
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
SylkServer
SylkServer
SIP Networks XMPP Networks
ConferencingHigh Definition Audio
Instant MessagingFile Transfer
Presence
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Self-organizing SIP Infrastructure Self-provisioned DNS
SIP User Agents
User agents need only RFC3263 support(locating SIP services using DNS lookups)
Internet
SIP Thor
Dynamic updates
Self-organizingHorizontally scalableBuilt-in disaster recoveryNo single point of failureMaintenance free
Multiple RolesSIP Proxy/RegistrarRTP Media relayPresence AgentXCAP serverVoicemailProvisioning
DNSserver
DB
Node 5
DB
DNSserver
DB
DNSserver
DB
Node 3
DB
Node 1
DB
Node 2
DB
Node 6
DB
Node 4
DB
SIPRTP
DNS lookup
NATNAT
Node 7
DB
Bootstrap
New nodes are provisioned with a valid TLS certificate to be accepted by the network
All nodes are in active mode, can be distributed in multiple datacenters and any of them can handle requests from any subscriber
_sip_udp.example.com 0 1 proxy1_sip_udp.example.com 0 1 proxy2_sip_udp.example.com 0 1 proxy3_sip_udp.example.com 0 1 proxy4_sip_udp.example.com 0 1 proxy5_sip_udp.example.com 0 1 proxy6_sip_udp.example.com 0 1 proxy7
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
Demo
Sunday, November 10, 13
AG ProjectsSIP Infrastructure Experts
¿Preguntas?
bettercallsaghul.comSunday, November 10, 13