/usr/share/doc/kamailio/modules/README.uuid is in kamailio-extra-modules 4.3.4-1.1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | UUID Module
Daniel-Constantin Mierla
<miconda@gmail.com>
Edited by
Daniel-Constantin Mierla
<miconda@gmail.com>
Copyright © 2014 asipto.com
__________________________________________________________________
Table of Contents
1. Admin Guide
1. Overview
2. Dependencies
2.1. Kamailio Modules
2.2. External Libraries or Applications
3. Usage
List of Examples
1.1. $uuid(type) usage
Chapter 1. Admin Guide
Table of Contents
1. Overview
2. Dependencies
2.1. Kamailio Modules
2.2. External Libraries or Applications
3. Usage
1. Overview
This module exports the $uuid(type) class of variables that return
unique values using functions from the libuuid library. UUIDs are used
in the +sip.instance media feature tag in SIP, but can also be used for
other purposes, like defining a unique session ID for a group of SIP
dialogs.
2. Dependencies
2.1. Kamailio Modules
2.2. External Libraries or Applications
2.1. Kamailio Modules
The following modules must be loaded before this module:
* none.
2.2. External Libraries or Applications
The following libraries or applications must be installed before
running Kamailio with this module loaded:
* libuuid - OSSP uuid - Universally Unique Identifier (UUID) Library
3. Usage
The following variables can be used:
* $uuid(g) - return the UUID value using uuid_generate().
* $uuid(r) - return the UUID value using uuid_generate_random().
* $uuid(t) - return the UUID value using uuid_generate_time().
* $uuid(s) - return the UUID value using uuid_generate_time_safe().
If the generation was not safe, the variable returns $null. The
function is not available on Mac OS X - the value is the one
returned by uuid_generate_time().
Example 1.1. $uuid(type) usage
...
$var(uuid) = $uuid(g);
xdbg("generated uuid is [$var(uuid)]\n");
add_rr_param(";uuid=$var(uuid)");
...
|