This module implements precise timers, which are not limited in precision by the kamailio tick frequency. All timers in this module are implemented as background processes, using system time for synchronization. Each timer can have 3 config routes associated with it: * start - the route to execute when the timer starts * loop - the route to execute continuously (every interval) * end - the route to execute when the timer ends A faked SIP message is given as parameter to called functions, so all functions available for REQUEST_ROUTE can be used. Additionally, the message state is preserved from start to end of the timer.
| Parámetro | Tipo | Descripción |
|---|---|---|
| default_type | int | 3.2. default_interval (str) 3.3. default_nworkers (int) 3.4. timer (str) 3.5. start (str) 3.6. loop (str) 3.7. end (str) |
| default_interval | str | 3.3. default_nworkers (int) 3.4. timer (str) 3.5. start (str) 3.6. loop (str) 3.7. end (str) |
| default_nworkers | int | 3.4. timer (str) 3.5. start (str) 3.6. loop (str) 3.7. end (str) |
| timer | str | 3.5. start (str) 3.6. loop (str) 3.7. end (str) |
| start | str | 3.6. loop (str) 3.7. end (str) |
| loop | str | 3.7. end (str) |
| end | str | 3.1. default_type (int) |
| default_type | int | The default timer type (if not present on the "timer" parameter). |
| default_interval | str | The default interval to execute loop route for timers (if not present on the "timer" parameter). Suffix with "s", "ms", or "us" for an interval in seconds, milliseconds, or microseconds. If a number i |
| default_nworkers | int | The default number of workers to run per timer (if not present on the "timer" parameter). |
| timer | str | The definition of a timer. The value of the parameter must have the following format: * "name=_str_;type=_int_;interval=_str_;nworkers=_int_;ntasks=_int_;n slices=_int_" |
| start | str | Route to be executed when timer stars. The value of the parameter must have the following format: * "timer=_str_;route=_str_" |
| loop | str | Route to be executed on timer interval. The value of the parameter must have the following format: * "timer=_str_;route=_str_" |
| end | str | Route to be executed when timer ends. The value of the parameter must have the following format: * "timer=_str_;route=_str_" |
Copyright © 2025 Tyler Moore, dOpenSource