kamailio – an introduction · ffg 2009 – 12.03.2009 kamailio project henning westerholt...

17
Welcome! Henning Westerholt Kamailio project 1&1 Internet AG FFG 2009, 12.03.2009 Kamailio – an introduction

Upload: others

Post on 06-Oct-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Welcome!

Henning WesterholtKamailio project1&1 Internet AG

FFG 2009, 12.03.2009

Kamailio – an introduction

Page 2: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Kamailio project Henning WesterholtFFG 2009 – 12.03.2009

1. about Kamailio2. why people use this server3. usage scenarios4. recent developments5. roadmap and outlook6. how to use it yourself

Outline

Page 3: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

About Kamailio

building block of VoIP infrastructuresprovides core servicesproxyregistrarbalancer or routerapplication serverno PBX, more like a routercares only about signaling, no media datafoundation for custom high-performance SIP services

Page 4: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Kamailio project Henning WesterholtFFG 2009 – 12.03.2009

About Kamailio

an open source projectlicenced under GPL (version 2 or later)over 200,000 lines of C codefrequent time-based releasesmanaged from a board of core developerscommunity aspectsover 20 developers provides support and contribute new featuresfriendly and healthy user communityregular meetings at international free and open source conferencesa mature productused from carriers like 1&1, QSC, Telefonica..several companies use it to provide telephony turn-key solutionsalso sold as appliance for SMEsused in Cisco Linksys Service Node

Page 5: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Kamailio project Henning WesterholtFFG 2009 – 12.03.2009

Why Kamailio

Scalabilityusable from small embedded systems to carrier grade systemsfrom a few hundreds user up to several millionsPerformanceon a standard server several thousands calls per seconds throughput is no problema server with enough memory can manage 500.000 usersFlexibilitysmall core written in Cfunctionality can be added with modules, over 90 already availableconfiguration script allows access to any part of the SIP messagerouting decisions can be derived from many different sourcesPortabilityworks on Linux and Unix (Debian, RedHat, OpenBSD, Solaris..)

Page 6: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Usage scenarios

carrier servicesload balancingprovide core SIP servicesleast-cost routing to gateways for PSTN connectivitytranslate between different networksmulti-proctocoll instant messagingmessage adaptions because of different SIP dialectsconvergence between IM and voiceSIP presence support for user availability or call stateadditional services like shared lines appearance, message waiting indication

Page 7: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Kamailio project Henning WesterholtFFG 2009 – 12.03.2009

Example setup

Basic VoIP infrastructure for telephony servicesKamailio with MySQL databaseone (Debian) Linux serverweb interface for managmentadvanced servicesKamailio, Asterisk and Callweaverdedicated database or directory serviceone server for each service (balancing, proxy, registrar)Mediaproxy or nathelper to get through the NATPSTN gateways high-availability infrastructuredistribute services and databases to more serversetup failover solutionservice and quality monitoring

Page 8: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Kamailio project Henning WesterholtFFG 2009 – 12.03.2009

Kamailio at 1&1

usageproxy, registrar, load-balancer, least-cost-routingapplication server for MWI and other presence servicessome numbers1000 million minutes per month to the PSTN2 Million customers on the platformmore than 3 million registrations in the DBredundant infrastructure on several levelsclustering for applications and databasesinterfacing to other carrier networks, asterisk and callweavercustom testing and monitoring systems

Page 9: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Whats new in Kamailio 1.5.0

five months of coding, one month testingnew functionality and featuresmany new modulesextensions in the coredocumentationfor users and developersconsolidationintegrate common functionalityremove old and obselete functionalityWeb interface SIREMISeasy setup of user accounts and routing rules

Page 10: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Kamailio project Henning WesterholtFFG 2009 – 12.03.2009

Whats new in Kamailio 1.5.0

featuresgeneric memory hash table implementation, new multi-protocoll IM gatewaydialog info presence support, http interface, new sql operationsin total were over 12 new modules introducedmore flexible interfacing with SIP messages from the configurationrefactoring and cleanupsobselete unused memory management functions, refactoring of core functionsextensive refactoring of routing modules, making them more scalable and maintainableintegrate uri, options, gflags and other small modules into siputils, utils, cfgutilsdocumentation and quality assuranceuser documentation updates all over the place, man pages for all modulesdoxygen comments were extended or new added for many modulesextensions and updates to the test suite, now over 45 tests

Page 11: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

carrier infrastructure at 1&1DSL reseller, no own network to the customeruses network from Telekom, Telefonica, QSC..interface to PSTN via Telefonica, Broadnet, BT..different product lines and product flavours (i.e. bitstream access vs. full PSTN line)Routing problemsprefix based routingcustomer specific routingrouting is different in case of failureshigh number of routesNot possible with plain OpenSER

Roadmap and outlook

Page 12: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Kamailio project Henning WesterholtFFG 2009 – 12.03.2009

Roadmap and outlook

maintenanceversion 1.5.x and 1.4.x are now supportedOpenSER branch 1.3.x reached end of lifeshort term goalsnative memcached supportsupport for huge routing databasesfurther consolidation and documentation extensionsreplace our core with the one from sip-routermedium term goalsfurther merge with the sip-router projectadd prepared statements support to modulesmerge duplicated modules

Page 13: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

sip-router project

Page 14: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Kamailio project Henning WesterholtFFG 2009 – 12.03.2009

sip-router project

merge with the SER project, Kamailio forked several years agofunctional goalsimproved network core for more scalability, stability and performanceprepared statements support for the DB layerupdates to the core in areas like memory management, DNS, timer and lockinglibrary framework to keep the core small and maintenableupdates and new features for command line tools and management interfacesorganisational goalslarger development team, faster development cycleeasier maintenance, more expertise availablelarger community, more testing and production deploymentsbetter promotion and more popularitybetter documentation, more reliability and trust, solid business environment

Page 15: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Installation and setup

Page 16: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Kamailio project Henning WesterholtFFG 2009 – 12.03.2009

Installation and setup

download the actual stable releasesource code and also binary packages are availablethe releases in stable distributions are usually too oldsetup database and configure servertools to setup the DB are available, but also the SQL scheme can be usedenable proxy and registrar functionality, the default configuration can be used as templatesetup some userstools to setup users are available, or use the web interfaceconfigure your hard or soft phonesif something don't work, look in the documentation, search for the error message, then ask at our users list :-)have fun!

Page 17: Kamailio – an introduction · FFG 2009 – 12.03.2009 Kamailio project Henning Westerholt Kamailio at 1&1 usage proxy, registrar, load-balancer, least-cost-routing application server

Thanks for your attention

More informations and contact:[email protected] user and developer mailling listextensive documentation available at http://kamailio.org#kamailio IRC channel on freenode.net

Pictures:slide 1: paprikaplains, http://www.flickr.com/people/23883605@N00/slide 3: Thorsten Wagner, http://www.flickr.com/people/thunderstar/slide 6: Randi Hausken, http://www.flickr.com/people/randihausken/slide 9: dolorix, http://www.flickr.com/people/7684055@N08/slide 11: gato-gato-gato, http://www.flickr.com/people/gato-gato-gato/slide 13: Till Krech, http://www.flickr.com/people/extranoise/slide 15: Ville Miettinen, http://www.flickr.com/people/wili/slide 17: Toni, http://www.flickr.com/people/tony-/

Licence of the slides: http://creativecommons.org/licenses/by-nc-sa/2.0/