Debian Codegraph @

src/modules/uid_uri_db/README

raw
1 UID Uri_db Module
2
3 Jan Janak
4
5 FhG FOKUS
6
7 Copyright © 2003 FhG FOKUS
8 __________________________________________________________________
9
10 Table of Contents
11
12 1. Admin Guide
13
14 1. Overview
15 2. Dependencies
16 3. Parameters
17
18 3.1. db_url (string)
19 3.2. uri_table (string)
20 3.3. username_column (string)
21 3.4. uri_domain_column (string)
22 3.5. uri_uriuser_column (string)
23 3.6. subscriber_table (string)
24 3.7. subscriber_user_column (string)
25 3.8. subscriber_domain_column (string)
26
27 4. Functions
28
29 4.1. check_to()
30 4.2. check_from()
31 4.3. does_uri_exist()
32
33 List of Examples
34
35 1.1. Set db_url parameter
36 1.2. Set uri_table parameter
37 1.3. Set username_column parameter
38 1.4. Set uri_domain_column parameter
39 1.5. Set uri_uriuser_column parameter
40 1.6. Set subscriber_table parameter
41 1.7. Set subscriber_user_column parameter
42 1.8. Set subscriber_domain_column parameter
43 1.9. check_to usage
44 1.10. check_from usage
45 1.11. does_uri_exist usage
46
47 Chapter 1. Admin Guide
48
49 Table of Contents
50
51 1. Overview
52 2. Dependencies
53 3. Parameters
54
55 3.1. db_url (string)
56 3.2. uri_table (string)
57 3.3. username_column (string)
58 3.4. uri_domain_column (string)
59 3.5. uri_uriuser_column (string)
60 3.6. subscriber_table (string)
61 3.7. subscriber_user_column (string)
62 3.8. subscriber_domain_column (string)
63
64 4. Functions
65
66 4.1. check_to()
67 4.2. check_from()
68 4.3. does_uri_exist()
69
70 1. Overview
71
72 Various checks related to SIP URI.
73
74 2. Dependencies
75
76 The following modules must be loaded before this module:
77 * A SER database module.
78
79 3. Parameters
80
81 3.1. db_url (string)
82 3.2. uri_table (string)
83 3.3. username_column (string)
84 3.4. uri_domain_column (string)
85 3.5. uri_uriuser_column (string)
86 3.6. subscriber_table (string)
87 3.7. subscriber_user_column (string)
88 3.8. subscriber_domain_column (string)
89
90 3.1. db_url (string)
91
92 URL of the database to be used.
93
94 Default value is "mysql://serro:47serro11@localhost/ser".
95
96 Example 1.1. Set db_url parameter
97 ...
98 modparam("module", "db_url", "mysql://username:password@localhost/ser")
99 ...
100
101 3.2. uri_table (string)
102
103 Table containing list of allowed URIs for each user.
104
105 Default value is "uri".
106
107 Example 1.2. Set uri_table parameter
108 ...
109 modparam("module", "uri_table", "uri")
110 ...
111
112 3.3. username_column (string)
113
114 Column holding usernames in the URI table.
115
116 Default value is "username".
117
118 Example 1.3. Set username_column parameter
119 ...
120 modparam("module", "username_column", "username")
121 ...
122
123 3.4. uri_domain_column (string)
124
125 Column holding domain in the URI table.
126
127 Default value is "domain".
128
129 Example 1.4. Set uri_domain_column parameter
130 ...
131 modparam("module", "uri_domain_column", "domain")
132 ...
133
134 3.5. uri_uriuser_column (string)
135
136 Column holding URI username in the URI table.
137
138 Default value is "uri_user".
139
140 Example 1.5. Set uri_uriuser_column parameter
141 ...
142 modparam("module", "uri_uriuser_column", "uri_user")
143 ...
144
145 3.6. subscriber_table (string)
146
147 Name of the subscriber table.
148
149 Default value is "subscriber".
150
151 Example 1.6. Set subscriber_table parameter
152 ...
153 modparam("module", "subscriber_table", "subscriber")
154 ...
155
156 3.7. subscriber_user_column (string)
157
158 Column holding username in subscriber table.
159
160 Default value is "username".
161
162 Example 1.7. Set subscriber_user_column parameter
163 ...
164 modparam("module", "subscriber_user_column", "username")
165 ...
166
167 3.8. subscriber_domain_column (string)
168
169 Column holding domains in the subscriber table.
170
171 Default value is "domain".
172
173 Example 1.8. Set subscriber_domain_column parameter
174 ...
175 modparam("module", "subscriber_domain_column", "domain")
176 ...
177
178 4. Functions
179
180 4.1. check_to()
181 4.2. check_from()
182 4.3. does_uri_exist()
183
184 4.1. check_to()
185
186 Check To username against URI table or digest credentials.
187
188 Example 1.9. check_to usage
189 ...
190 if (check_to()) {
191 ...
192 };
193 ...
194
195 4.2. check_from()
196
197 Check From username against URI table or digest credentials.
198
199 Example 1.10. check_from usage
200 ...
201 if (check_from()) {
202 ...
203 };
204 ...
205
206 4.3. does_uri_exist()
207
208 Check if username in the request URI belongs to an existing user.
209
210 Example 1.11. does_uri_exist usage
211 ...
212 if (does_uri_exist()) {
213 ...
214 };
215 ...