[SR-Users] Accessing Transformations in KEMI
Alex Balashov
abalashov at evaristesys.com
Wed Jul 28 17:04:34 CEST 2021
By way of further answer:
Kamailio’s transformations exist in order to provide some semblance of string utility & parsing functions to a custom, from-ground-up programming language that wouldn’t otherwise possess them, for lack of a standard library that general-purpose programming languages have.
It has no built-in string primitives with accessor and mutator functions of various kinds[1], no String object with manipulation methods, no len(), no split(), etc.
The transformations are Kamailio config script’s effort to provide a subset of this sort of capability that is most useful for processing SIP messages.
Things like {tobody.user} exist in Kamailio because there’s literally* no other way to do that.
The whole point of doing Kamailio config scripting through KEMI in a more general language is to be able to leverage those general language capabilities, along with other libraries or modules, hot reload, etc.
— Alex
[1] Outside of the blunt instruments of textops* and friends.
--
Alex Balashov | Principal | Evariste Systems LLC
Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
More information about the sr-users
mailing list