This module tracks dialogs (active calls) in stateless mode and offers statistics about them. The dialogs can be tagged and the number of dialogs with the same tag can be retrieved in configuration file. The module aims to be a lightweight alternative to dialog module, to enable SIP server instances (such as an edge proxy or SBC) to know how many active calls they route, without being a call stateful proxy. The tracking of active calls is done without any dependency on other modules, in other words, it does not need the tm (transaction management) module.
| Parámetro | Tipo | Descripción |
|---|---|---|
| active_lifetime | int | 3.2. init_lifetime (int) 3.3. finish_lifetime (int) 3.4. timer_interval (int) 3.5. hash_size (integer) |
| init_lifetime | int | 3.3. finish_lifetime (int) 3.4. timer_interval (int) 3.5. hash_size (integer) |
| finish_lifetime | int | 3.4. timer_interval (int) 3.5. hash_size (integer) |
| timer_interval | int | 3.5. hash_size (integer) |
| hash_size | integer | 3.1. active_lifetime (int) |
| active_lifetime | int | The lifetime in seconds of an active dialog in memory. A dialog is considered active after the ACK of 200 OK for INVITE. |
| init_lifetime | int | The lifetime in seconds of an initial dialog in memory. A dialog is in initial state from the moment of creation until it gets to active state. If the dialog stays longer in the initial state, then it |
| finish_lifetime | int | The lifetime in seconds of a finished dialog in memory. A dialog is finished if the initial INVITE was not answered or the BYE was received. Once this lifetime passes, the dialog record is removed fro |
| timer_interval | int | The value in seconds to run the timer callback function for cleaning up dialogs past the lifetime limit. |
| hash_size | integer | The size of the hash table internally used to keep the dialogs. A larger table is much faster but consumes more memory. The hash size must be a power of two. |
4.2. dlgs_update() 4.3. dlgs_count(field, op, data) 4.4. dlgs_tags_add(vtag) 4.5. dlgs_tags_rm(vtag) 4.6. dlgs_tags_count(vtag)
4.3. dlgs_count(field, op, data) 4.4. dlgs_tags_add(vtag) 4.5. dlgs_tags_rm(vtag) 4.6. dlgs_tags_count(vtag)
4.4. dlgs_tags_add(vtag) 4.5. dlgs_tags_rm(vtag) 4.6. dlgs_tags_count(vtag)
4.5. dlgs_tags_rm(vtag) 4.6. dlgs_tags_count(vtag)
4.6. dlgs_tags_count(vtag)
4.1. dlgs_init(src, dst, data)
Start track the dialog corresponding to the current SIP message. It has to be used for INVITE messages.
Update dialog state. It has to be used for SIP requests only, the SIP responses are handled automatically.
Return the number of dialogs matching the filter specified by the parameters. It does not count the dialogs that are finished (not answered or terminated with BYE).
Add a tag to current dialog.
Remove a tag from current dialog.
Count all tags for ongoing dialogs matching the parameter.
Copyright © 2020 asipto.com