Test your SIP server at KwanLabs and use the code SUMMER3X40 for a 40% discount for 3 months 😎

Kwancro

Thoughts, tips and tricks

March 28, 2024

Arithmetic and other custom functions in Kamailio

Although Kamailio supports basic arithmetic, it does so only using configuration variables and not dynamic variables. Due to its flexibility, it is just a matter of time until you will come up with an idea where you would need to use dynamic variables for some form of arithmetic calculations. In version 5.7.0 released on May 17th 2023, a Math module was released with 5 functions, mainly around logarithmic and square root computation.