[Kamailio-Devel] important: transformations moved from core to pv module
miconda at gmail.com
Mon Dec 8 11:31:58 CET 2008
the pseudo-variable and transformation framework in core has been
completed for upcoming v1.5.0 of Kamailio (OpenSER). The core has now
only API to register, parse name, evaluate and set values for PV&T.
All specific implementations have moved to PV module:
The current architecture provides a flexible way to enhance the number
PV&T available in config file without affecting the stability and the
performance of core and main modules. As this number increased a lot,
and will grow more, the API changed the indexing from a list to a hash
table, offering faster lookup and quicker shorter up time.
With this work done, a new functionality is available for developers:
- they can export new transformations from their module.
As example, check the pv or textops (new transformation to be announced
in separate message) modules. The system is simple, you have to
implement a function to parse the name of transformation and its
parameter, plus a function to evaluate a transformation.
Now core got some clean up, not that fat anymore, implementation of
about 100 pseudo-variables and over 30 transformations was moved out
(couple of thousands lines of code). This work is part of the efforts to
increase the stability, performance and flexibility of the core, so that
specific implementations do not affect typical use cases.
As final note, remember to load the pv module from now on if you work
with/need old core pseudo-variables or transformations.
More information about the Devel