Debian Codegraph @

src/modules/acc_diameter/README

raw
1 ACC_DIAMETER Module
2
3 Jiri Kuthan
4
5 iptel.org
6 <[email protected]>
7
8 Ramona-Elena Modroiu
9
10 rosdev.ro
11 <[email protected]>
12
13 Copyright © 2002, 2003 FhG FOKUS
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. Parameters
27
28 3.1. diameter_flag (integer)
29 3.2. diameter_missed_flag (integer)
30 3.3. diameter_client_host (string)
31 3.4. diameter_client_port (int)
32 3.5. diameter_extra (string)
33
34 4. Functions
35
36 4.1. acc_diam_request(comment)
37
38 List of Examples
39
40 1.1. diameter_flag example
41 1.2. diameter_missed_flag example
42 1.3. diameter_client_host example
43 1.4. diameter_client_host example
44 1.5. diameter_extra example
45 1.6. acc_diam_request usage
46
47 Chapter 1. Admin Guide
48
49 Table of Contents
50
51 1. Overview
52 2. Dependencies
53
54 2.1. Kamailio Modules
55 2.2. External Libraries or Applications
56
57 3. Parameters
58
59 3.1. diameter_flag (integer)
60 3.2. diameter_missed_flag (integer)
61 3.3. diameter_client_host (string)
62 3.4. diameter_client_port (int)
63 3.5. diameter_extra (string)
64
65 4. Functions
66
67 4.1. acc_diam_request(comment)
68
69 1. Overview
70
71 ACC_DIAMETER module is used to account transactions information to a
72 DIAMETER server. Read also the documentation for 'acc' module.
73
74 NOTE: This was developed based on some very early version of the
75 Diameter protocol, and has not been really tested for many years. It is
76 very likely to be deleted in upcoming releases. If you want to revive
77 this module, you are welcome, be sure you do proper testing before
78 using in production -- it also may need to be updated first to match
79 the exported API by 'acc' module.
80
81 NOTE: diameter support was developed for DISC (DIameter Server Client
82 project at http://developer.berlios.de/projects/disc/). This project
83 seems to be no longer maintained and DIAMETER specifications were
84 updated in the meantime. Thus, the DIAMETER part in the module is
85 obsolete and needs rework to be usable with opendiameter or other
86 DIAMETER servers.
87
88 IMPORTANT: If you need Diameter accounting, consider to use the
89 ims_charging module, it is up to date and used in IMS/VoLTE
90 deployments.
91
92 2. Dependencies
93
94 2.1. Kamailio Modules
95 2.2. External Libraries or Applications
96
97 2.1. Kamailio Modules
98
99 The module depends on the following modules (in other words the listed
100 modules must be loaded before this module):
101 * acc -- accounting module
102
103 2.2. External Libraries or Applications
104
105 The following libraries or applications must be installed before
106 running Kamailio with this module loaded:
107 * None
108
109 3. Parameters
110
111 3.1. diameter_flag (integer)
112 3.2. diameter_missed_flag (integer)
113 3.3. diameter_client_host (string)
114 3.4. diameter_client_port (int)
115 3.5. diameter_extra (string)
116
117 3.1. diameter_flag (integer)
118
119 Request flag which needs to be set to account a transaction -- DIAMETER
120 specific.
121
122 Default value is not-set (no flag).
123
124 Example 1.1. diameter_flag example
125 ...
126 modparam("acc_diameter", "diameter_flag", 2)
127 ...
128
129 3.2. diameter_missed_flag (integer)
130
131 Request flag which needs to be set to account missed calls -- DIAMETER
132 specific.
133
134 Default value is not-set (no flag).
135
136 Example 1.2. diameter_missed_flag example
137 ...
138 modparam("acc_diameter", "diameter_missed_flag", 3)
139 ...
140
141 3.3. diameter_client_host (string)
142
143 Hostname of the machine where the DIAMETER Client is running --
144 DIAMETER specific.
145
146 Default value is “localhost”.
147
148 Example 1.3. diameter_client_host example
149 ...
150 modparam("acc_diameter", "diameter_client_host", "3a_server.net")
151 ...
152
153 3.4. diameter_client_port (int)
154
155 Port number where the Diameter Client is listening -- DIAMETER
156 specific.
157
158 Default value is 3000.
159
160 Example 1.4. diameter_client_host example
161 ...
162 modparam("acc_diameter", "diameter_client_port", 3000)
163 ...
164
165 3.5. diameter_extra (string)
166
167 Extra values to be logged via DIAMETER - DIAMETER specific. See section
168 the section about extra accounting in 'acc' module for more details.
169
170 Default value is NULL.
171
172 Example 1.5. diameter_extra example
173 ...
174 modparam("acc_diameter", "diameter_extra", "7846=$hdr(Content-type);7847=$avp(s:
175 email)")
176 ...
177
178 4. Functions
179
180 4.1. acc_diam_request(comment)
181
182 4.1. acc_diam_request(comment)
183
184 Like acc_log_request, acc_diam_request reports on a request. It reports
185 to the configured Diameter server.
186
187 Meaning of the parameters is as follows:
188 * comment - Comment to be appended. The string can contain any number
189 of pseudo-variables.
190
191 This function can be used from ANY_ROUTE.
192
193 Example 1.6. acc_diam_request usage
194 ...
195 acc_diam_request("Some comment");
196 acc_diam_request("$var(code) Error: $avp(reason)");
197 ...