Debian Codegraph @

src/modules/uuid/README

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