Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
142 views

DCM Sip Routing Async Sip PDF

This document summarizes asynchronous SIP routing capabilities in Kamailio (formerly known as OpenSER). Key points include: - Asynchronous TCP and upcoming asynchronous TLS allow Kamailio to handle thousands of concurrent TCP/TLS connections without blocking. This improves processing capacity and traffic handling for IM/presence. - Asynchronous SIP message processing allows Kamailio to suspend processing of a message, do other tasks, and later resume/reply, improving concurrency. - These asynchronous capabilities are available in recent Kamailio versions like 3.0.x and planned for the 3.1.0 release, providing major performance and scalability benefits for SIP routing.

Uploaded by

Emi Curletto
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
142 views

DCM Sip Routing Async Sip PDF

This document summarizes asynchronous SIP routing capabilities in Kamailio (formerly known as OpenSER). Key points include: - Asynchronous TCP and upcoming asynchronous TLS allow Kamailio to handle thousands of concurrent TCP/TLS connections without blocking. This improves processing capacity and traffic handling for IM/presence. - Asynchronous SIP message processing allows Kamailio to suspend processing of a message, do other tasks, and later resume/reply, improving concurrency. - These asynchronous capabilities are available in recent Kamailio versions like 3.0.x and planned for the 3.1.0 release, providing major performance and scalability benefits for SIP routing.

Uploaded by

Emi Curletto
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 31

Asynchronous SIP Routing

SIP Express Router (SER) and Kamailio (OpenSER)

SIP-Router.org

Daniel-Constantin Mierla
Co-Founder Kamailio
asipto.com
www.kamailio.org

2
History

2002 Jun 2005 Jul 2008 Aug 2008 Nov 2008 Oct 2009 Jan 2010
SIP Express Router (SER)

SIP Router Project

Integration
Completed
v3.0.0

v1.5.0
OpenSER Kamailio

Other Forks...

3
Development Portals

 Open source, GPL SIP server – IETF RFC3261


 Web: http://www.kamailio.org
 SourceForge Project: http://sourceforge.net/projects/openser/
 SIP Router Project: http://sip-router.org

4
Awarded

Best Open Source


Networking Software
2009

By InfoWorld

5
Usage in Germany

 Some of biggest VoIP deployments world wide


− 1&1 (members of the management board)
 Over 3 millions subscribers
 Over 1.5 billion minutes per month
− Sipgate
− Freenet
 0.8 million subscribers
 Hundreds of millions of minutes per month

http://www.kamailio.org/w/references/
6
Features
Plug in module
interface
Perl programming
interface Customizable routing
policy
SIP proxy, redirect User location service
and registrar server IPv4-IPv6
user registration UDP/TCP/TLS/SCTP
with SIP translator
digest authorization
Instant Messaging
Offline message
service
Presence server

ENUM lookup support


Advanced routing
Multi-domain support (dispatching and LCR)
LDAP/H.350 support Dialing support
aliases and speeddial

7
Features
OSP support for peering
Java SIP Servlet
programming interface

NAT traversal
Security
Link any application to Kamailio using permissions
FIFO/UNIXSOCK/DATAGRAM/XMLRPC interfaces anti-DOS attacks
User call preferences
Call Processing
Language
Gateway
Database API
MySQL
SMS
PostgreSQL
XMPP
UNIXODBC
BERKELEYDB
ORACLE Accounting through log file,
Text files database or Radius/DIAMETER
RADIUS servers

8
New in 3.0.0

Released January 11, 2010


3.0 Releases

10
Improving architecture

[ DB API ] [ MI ] … LIBRARIES ... [ P / XCAP ] [ RPC ]


11
New in 3.0.0

Asynchronous TCP Number Portability

several ten thousands customizable policies


of TCP connections caching system

SCTP

multi-homing
multi-streaming
statistics

Topology hiding Web & CLI Tools


SIREMIS
fast and secure SERCMD
no session dependency

12
New in 3.0.0

DNS Caching System CFG Reload Framework


fast failover
update global parameters
blacklisting
avoid blocking at runtime

XMLRPC

scalable control
interface
secure

Memcached connector CFG Optimizations


operations - operators
data distribution across switch - break - while
many instances

13
New in 3.0.0

CFG Directives Transport layer

include UDP MTU fallback


define scalable TLS

Auth
Identity

RFC4474

New routing blocks Async SIP Message


Processing
onsend route suspend - process - resume
event route

14
SIREMIS

15
SIREMIS

16
SIREMIS

17
SERCMD

18
SERCMD

19
New in 3.0.0

http://www.kamailio.org/dokuwiki/doku.php/features:new-in-3.0.x
http://www.kamailio.org/w/kamailio-openser-v3.0.0-release-notes/
http://by-miconda.blogspot.com/2010/01/best-of-new-in-kamailio-300-toc.html

20
New in Development
3.1.0

Autumn 2010
New in devel (upcoming 3.1.0)

Embedded
Lua
Config Tree
Preprocessor Caching
Directive System
SIP
Registration
to
New Remote
Embedded
Traffic Servers
Python
Shaping
Module GeoIP
Config API
Message
Queuing
System

22
New in devel (upcoming 3.1.0)

Load
Balancing
weight
call load
Reason
Header Interactive
for Config
CANCEL Debugger
Config
Parameters
Reload
Embedded
Framework
HTTP XLOG
& Enhancements
XCAP
Server line, file
Asynchronous
TLS

23
New in devel (upcoming 3.1.0)

http://sip-router.org/wiki/features/new-in-devel

24
Asynchronous SIP Routing
Asynchronous TCP

 present in 3.0.x (latest stable)


 Issues solved
 blocking the SIP worker process

 opening a connection
 sending data

 Configuration as easy as:


 tcp_async = yes

 Benefits
 increased processing capacity over TCP

 better handling of traffic for IM and Presence

 transparent for modules and config file functions

 integrated with DNS blacklisting

26
Asynchronous TLS

 Asynchronous TCP and TLS for SIP Routing


 worldwide - you can get them only with Kamailio and SER

 in code tree GIT repository (ready for upcoming 3.1.0)


 Same benefits as for asynchronous TCP
 asynchronous TCP implies asynchronous TLS

 same config parameter: tcp_async=yes

 Extra
 increased capacity of handling secure communication

27
Asynchronous SIP Message Processing
 present in 3.0.x (latest stable)
 default message processing
 receive - process - forward/reply

 new possibility of message processing


 receive - process - suspend - do something else - resume
- forward/reply
 requirements
 transaction management module (tm)

 example
 call comes in, authenticate user, then send a request to
billing engine to authorize the call
 suspend handling the invite (park it), process other SIP
requests
 when billing engine replies, resume INVITE processing
and allow or deny the call
28
Asynchronous SIP Message Processing
T1
READ SIP
MESSAGE
KAMAIALIO PROCESS A
INVITE X IN READ SIP
MESSAGE
T3 = T2 + N2

KAMAIALIO PROCESS B
INVITE X INITIAL
PROCESSING OPTIONS Y REPLY IN

SUSPEND RESUME
INVITE X INVITE X

T2 = T1 + N1
OPTIONS Y OUT INVITE X COMPLETING
PROCESSING
READ SIP
MESSAGE READ SIP
MESSAGE

29
Config Message Queuing System

 in code tree GIT repository (ready for upcoming 3.1.0)


 New module: mqueue
 multiple message queues

 message: (key, body)

 Features
 inter-process communication

 SIP worker process can send commands to timer


worker
 Examples
 SIPWEET
 send notifications to Twitter (see my other talk @18:00)
 email on various events

30
Questions?

Contact:

daniel@asipto.com

http://www.asipto.com
http://www.kamailio.org
http://sip-router.org

31

You might also like