[SR-Users] Computing a time difference when handling a stateless SIP request

Chaigneau, Nicolas nicolas.chaigneau at capgemini.com
Wed Sep 30 11:06:35 CEST 2020


> You can try with concatenating a variable set to "000" stripped by the length of milliseconds string with the value of the milliseconds string
> -- see the transformations cookbook for strip variant.
>
> Also, useful for complex operations, have in mind that you can combine use of kamailio cfg scripting language with other embedded interpreters, such as app_jsdt, app_lua, app_python, ...
>
> On the other hand, if you just want to log how long it takes to execute config for a request or a reply, then you can get it by tuning the value of core parameter:
>
>  * https://www.kamailio.org/wiki/cookbooks/5.4.x/core#latency_cfg_log
>
> Cheers,
> Daniel


Thanks Daniel, this fully answers my question. :)

Regards,
Nicolas.


This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.


More information about the sr-users mailing list