devel:kamailio-5.0-design
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
devel:kamailio-5.0-design [2016/02/24 22:20] – created miconda | devel:kamailio-5.0-design [2016/05/03 16:33] (current) – miconda | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Kamailio v5.0 Design ====== | ====== Kamailio v5.0 Design ====== | ||
+ | |||
+ | ===== Overview ===== | ||
After 15 years of development, | After 15 years of development, | ||
- | ===== Configuration File ===== | + | This page collects suggestions and ideas for major refactoring of various components to make the leap to v5.0. |
- | ==== Exporting Functions To Embedded Interpreters ==== | + | When adding a remark that needs to be tracked by author, use initials in front of the paragraph. The list of contributors to this document and initials: |
- | * define and implement an export interface from modules to embedded interpreters to automatically add new functions to embedded interpreters, | + | * Daniel-Constantin Mierla (dcm) |
- | ==== Routing Logic In Embedded | + | ===== Initial Remarks ===== |
+ | |||
+ | Initial content for this document is listing also ideas popped up during discussions at Fosdem 2016 and Kamailio Development Workshop - among participants: | ||
+ | |||
+ | ===== Configuration File Interpreters ===== | ||
+ | |||
+ | Goals: | ||
+ | |||
+ | * have at least one option of an optimized configuration file interpreter targeting high performance SIP routing deployments | ||
+ | * have at least one option of a more flexible configuration language that allows: | ||
+ | * extended language syntax | ||
+ | * reloading routing rules at runtime | ||
+ | |||
+ | Ongoing implementation that enables writing routing blocks in Lua and Python as alternative to native language is documented at: | ||
+ | |||
+ | * [[devel: | ||
- | * writing the routing logic only in a scripting language supported via embedded interpreters | ||
- | * eventually setting core parameters, loading modules and setting modules' | ||
- | * routing logic in an embedded language should allow reloading at runtime without kamailio restart | ||
===== Source Tree Structure ===== | ===== Source Tree Structure ===== | ||
+ | |||
+ | Goals: | ||
+ | |||
+ | * group files per components to be easier to spot their role, especially the core, include files and utilities | ||
+ | |||
+ | ==== Reorganizing Source Files Location ==== | ||
It was discussed in the past: | It was discussed in the past: | ||
* source code files should be relocated to have a better structure for include headers, core files, modules and internal libraries as well as utilities | * source code files should be relocated to have a better structure for include headers, core files, modules and internal libraries as well as utilities | ||
+ | |||
+ | Two models proposed: | ||
+ | |||
+ | * a) only move core files in a new ' | ||
+ | * b) move all source code files for Kamailio in a new ' | ||
===== Build System ===== | ===== Build System ===== | ||
- | Revising | + | Goals: |
+ | |||
+ | * revising | ||
+ | |||
+ | ==== Reviewing Alternative Build Systems ==== | ||
Alternatives to analyze: | Alternatives to analyze: | ||
Line 30: | Line 59: | ||
* cmake | * cmake | ||
+ | ===== Continuous Integration ===== | ||
+ | |||
+ | Goals: | ||
+ | |||
+ | * attempt to make a more consistent and "easy to contribute to" continuous integration eco-system | ||
+ | |||
+ | |||
+ | ==== Unit Test Framework ==== | ||
+ | |||
+ | Reviving the exiting unit testing or selecting another framework. | ||
+ | |||
+ | Available frameworks: | ||
+ | |||
+ | * http:// | ||
+ | |||
+ | ==== Minimal Unit Tests ==== | ||
+ | |||
+ | Defining a minimum set of automatic tests that needs to be provided by each module: | ||
+ | |||
+ | * a minimal config for loading the module, to be sure it doesn' | ||
+ | * can be done with a config as simple as: | ||
+ | |||
+ | < | ||
+ | |||
+ | loadmodule " | ||
+ | |||
+ | request_route { | ||
+ | ; | ||
+ | } | ||
+ | </ | ||
+ | * or can require setting some module parameters or even loading other modules |
devel/kamailio-5.0-design.1456352446.txt.gz · Last modified: 2016/02/24 22:20 by miconda