Debian Codegraph @

res/res_geolocation/geoloc_doc.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE docs SYSTEM "appdocsxml.dtd">
3 <docs xmlns:xi="http://www.w3.org/2001/XInclude">
4 <configInfo name="res_geolocation" language="en_US">
5 <synopsis>Core Geolocation Support</synopsis>
6 <configFile name="geolocation.conf">
7 <configObject name="location">
8 <since>
9 <version>16.29.0</version>
10 <version>18.15.0</version>
11 <version>19.7.0</version>
12 </since>
13 <synopsis>Location</synopsis>
14 <description>
15 <para>Parameters for defining a Location object</para>
16 </description>
17
18 <configOption name="type">
19 <since>
20 <version>16.28.0</version>
21 <version>18.14.0</version>
22 <version>19.6.0</version>
23 </since>
24 <synopsis>Must be of type 'location'.</synopsis>
25 </configOption>
26
27 <configOption name="format" default="none">
28 <since>
29 <version>16.28.0</version>
30 <version>18.14.0</version>
31 <version>19.6.0</version>
32 </since>
33 <synopsis>Location specification type</synopsis>
34 <description>
35 <enumlist>
36 <enum name="civicAddress">
37 <para>
38 The <literal>location_info</literal>
39 parameter must contain a comma separated list of IANA codes
40 or synonyms describing the civicAddress of this location.
41 The IANA codes and synonyms can be obtained by executing
42 the CLI command <literal>geoloc show civicAddr_mapping</literal>.
43 </para>
44 </enum>
45 <enum name="GML">
46 <para>
47 The
48 <literal>location_info</literal> parameter must contain a comma
49 separated list valid GML elements describing this location.
50 </para>
51 </enum>
52 <enum name="URI">
53 <para>
54 The
55 <literal>location_info</literal> parameter must contain a single
56 URI parameter which contains an external URI describing this location.
57 </para>
58 </enum>
59 </enumlist>
60 </description>
61 </configOption>
62
63 <configOption name="location_info" default="none">
64 <since>
65 <version>16.28.0</version>
66 <version>18.14.0</version>
67 <version>19.6.0</version>
68 </since>
69 <synopsis>Location information</synopsis>
70 <description>
71 <para>The contents of this parameter are specific to the
72 location <literal>format</literal>.</para>
73 <enumlist>
74 <enum name="civicAddress">
75 <para>
76 location_info = country=US,A1="New York",city_district=Manhattan,
77 A3="New York", house_number=1633, street=46th, street_suffix = Street,
78 postal_code=10222,floor=20,room=20A2
79 </para>
80 </enum>
81 <enum name="GML">
82 <para>
83 location_info = Shape=Sphere, pos3d="39.12345 -105.98766 1920", radius=200
84 </para>
85 </enum>
86 <enum name="URI">
87 <para>
88 location_info = URI=https:/something.com?exten=${EXTEN}
89 </para>
90 </enum>
91 </enumlist>
92 </description>
93 </configOption>
94
95 <configOption name="location_source" default="none">
96 <since>
97 <version>16.28.0</version>
98 <version>18.14.0</version>
99 <version>19.6.0</version>
100 </since>
101 <synopsis>Fully qualified host name</synopsis>
102 <description>
103 <para>This parameter isn't required but if provided, RFC8787 says it MUST be a fully
104 qualified host name. IP addresses are specifically NOT allowed. The value will be placed
105 in a <literal>loc-src</literal> parameter appended to the URI in the <literal>
106 Geolocation</literal> header.</para>
107 </description>
108 </configOption>
109
110 <configOption name="method" default="none">
111 <since>
112 <version>16.28.0</version>
113 <version>18.14.0</version>
114 <version>19.6.0</version>
115 </since>
116 <synopsis>Location determination method</synopsis>
117 <description>
118 <para>This is a rarely used field in the specification that would
119 indicate the method used to determine the location. Its usage and values should be
120 pre-negotiated with any recipients.</para>
121 <enumlist>
122 <enum name="GPS"/>
123 <enum name="A-GPS"/>
124 <enum name="Manual"/>
125 <enum name="DHCP"/>
126 <enum name="Triangulation"/>
127 <enum name="Cell"/>
128 <enum name="802.11"/>
129 </enumlist>
130 </description>
131 </configOption>
132
133 <configOption name="confidence" default="none">
134 <since>
135 <version>16.28.0</version>
136 <version>18.14.0</version>
137 <version>19.6.0</version>
138 </since>
139 <synopsis>Level of confidence</synopsis>
140 <description>
141 <para>This is a rarely used field in the specification that would
142 indicate the confidence in the location specified. See RFC7459
143 for exact details.
144 </para>
145 <para>
146 Sub-parameters:
147 </para>
148 <enumlist>
149 <enum name="pdf">
150 <para>One of:</para>
151 <enumlist>
152 <enum name="unknown"/>
153 <enum name="normal"/>
154 <enum name="rectangular"/>
155 </enumlist>
156 </enum>
157 <enum name="value">
158 <para>A percentage indicating the confidence.</para>
159 </enum>
160 </enumlist>
161 </description>
162 <see-also>
163 <ref type="link">https://www.rfc-editor.org/rfc/rfc7459</ref>
164 </see-also>
165 </configOption>
166 </configObject>
167
168 <configObject name="profile">
169 <since>
170 <version>16.29.0</version>
171 <version>18.15.0</version>
172 <version>19.7.0</version>
173 </since>
174 <synopsis>Profile</synopsis>
175 <description>
176 <para>Parameters for defining a Profile object</para>
177 </description>
178 <configOption name="type">
179 <since>
180 <version>16.28.0</version>
181 <version>18.14.0</version>
182 <version>19.6.0</version>
183 </since>
184 <synopsis>Must be of type 'profile'.</synopsis>
185 </configOption>
186
187 <configOption name="pidf_element" default="device">
188 <since>
189 <version>16.28.0</version>
190 <version>18.14.0</version>
191 <version>19.6.0</version>
192 </since>
193 <synopsis>PIDF-LO element to place this profile in</synopsis>
194 <description>
195 <enumlist>
196 <enum name="tuple" />
197 <enum name="device" />
198 <enum name="person" />
199 </enumlist>
200 <para>
201 Based on RFC5491 (see below) the recommended and default element
202 is <literal>device</literal>.
203 </para>
204 </description>
205 <see-also>
206 <ref type="link">https://www.rfc-editor.org/rfc/rfc5491.html#section-3.4</ref>
207 </see-also>
208 </configOption>
209
210 <configOption name="pidf_element_id" default="">
211 <since>
212 <version>20.18.0</version>
213 <version>22.8.0</version>
214 <version>23.2.0</version>
215 </since>
216 <synopsis>The id attribute value for the PIDF-LO element</synopsis>
217 </configOption>
218
219 <configOption name="device_id" default="">
220 <since>
221 <version>20.18.0</version>
222 <version>22.8.0</version>
223 <version>23.2.0</version>
224 </since>
225 <synopsis>The content of the deviceID element</synopsis>
226 </configOption>
227
228 <configOption name="location_reference" default="none">
229 <since>
230 <version>16.28.0</version>
231 <version>18.14.0</version>
232 <version>19.6.0</version>
233 </since>
234 <synopsis>Reference to a location object</synopsis>
235 </configOption>
236
237 <configOption name="location_info_refinement" default="none">
238 <since>
239 <version>16.28.0</version>
240 <version>18.14.0</version>
241 <version>19.6.0</version>
242 </since>
243 <synopsis>Reference to a location object</synopsis>
244 </configOption>
245 <configOption name="location_variables" default="none">
246 <since>
247 <version>16.28.0</version>
248 <version>18.14.0</version>
249 <version>19.6.0</version>
250 </since>
251 <synopsis>Reference to a location object</synopsis>
252 </configOption>
253
254 <configOption name="usage_rules" default="empty &lt;usage_rules&gt; element">
255 <since>
256 <version>16.28.0</version>
257 <version>18.14.0</version>
258 <version>19.6.0</version>
259 </since>
260 <synopsis>location specification type</synopsis>
261 <description>
262 <para>xxxx</para>
263 </description>
264 </configOption>
265
266 <configOption name="notes" default="">
267 <since>
268 <version>16.28.0</version>
269 <version>18.14.0</version>
270 <version>19.6.0</version>
271 </since>
272 <synopsis>Notes to be added to the outgoing PIDF-LO document</synopsis>
273 <description>
274 <para>The specification of this parameter will cause a
275 <literal>&lt;note-well&gt;</literal> element to be added to the
276 outgoing PIDF-LO document. Its usage should be pre-negotiated with
277 any recipients.</para>
278 </description>
279
280 </configOption>
281 <configOption name="allow_routing_use" default="no">
282 <since>
283 <version>16.28.0</version>
284 <version>18.14.0</version>
285 <version>19.6.0</version>
286 </since>
287 <synopsis>Sets the value of the Geolocation-Routing header.</synopsis>
288 </configOption>
289
290 <configOption name="suppress_empty_ca_elements" default="no">
291 <since>
292 <version>16.29.0</version>
293 <version>18.15.0</version>
294 <version>19.7.0</version>
295 </since>
296 <synopsis>Sets if empty Civic Address elements should be suppressed
297 from the PIDF-LO document.</synopsis>
298 </configOption>
299
300 <configOption name="profile_precedence" default="discard_incoming">
301 <since>
302 <version>16.28.0</version>
303 <version>18.14.0</version>
304 <version>19.6.0</version>
305 </since>
306 <synopsis>Determine which profile on a channel should be used</synopsis>
307 <description>
308 <enumlist>
309 <enum name="prefer_incoming">
310 <para>Use the incoming profile if it exists and has location information, otherwise use the
311 configured profile if it exists and has location information. If neither profile has location
312 information, nothing is sent.
313 </para></enum>
314 <enum name="prefer_config">
315 <para>Use the configured profile if it exists and has location information, otherwise use the
316 incoming profile if it exists and has location information. If neither profile has location
317 information, nothing is sent.
318 </para></enum>
319 <enum name="discard_incoming"
320 ><para>Discard any incoming profile and use the configured profile if it exists and
321 it has location information. If the configured profile doesn't exist or has no
322 location information, nothing is sent.
323 </para></enum>
324 <enum name="discard_config">
325 <para>Discard any configured profile and use the incoming profile if it exists and
326 it has location information. If the incoming profile doesn't exist or has no
327 location information, nothing is sent.
328 </para></enum>
329 </enumlist>
330 </description>
331 </configOption>
332
333 <xi:include xpointer="xpointer(/docs/configInfo[@name='res_geolocation']/configFile[@name='geolocation.conf']/configObject[@name='location']/configOption[@name='format'])"/>
334 <xi:include xpointer="xpointer(/docs/configInfo[@name='res_geolocation']/configFile[@name='geolocation.conf']/configObject[@name='location']/configOption[@name='location_info'])"/>
335 <xi:include xpointer="xpointer(/docs/configInfo[@name='res_geolocation']/configFile[@name='geolocation.conf']/configObject[@name='location']/configOption[@name='confidence'])"/>
336 <xi:include xpointer="xpointer(/docs/configInfo[@name='res_geolocation']/configFile[@name='geolocation.conf']/configObject[@name='location']/configOption[@name='location_source'])"/>
337 <xi:include xpointer="xpointer(/docs/configInfo[@name='res_geolocation']/configFile[@name='geolocation.conf']/configObject[@name='location']/configOption[@name='method'])"/>
338 </configObject>
339 </configFile>
340 </configInfo>
341 <function name="GEOLOC_PROFILE" language="en_US">
342 <since>
343 <version>16.28.0</version>
344 <version>18.14.0</version>
345 <version>19.6.0</version>
346 </since>
347 <synopsis>
348 Get or Set a field in a geolocation profile
349 </synopsis>
350 <syntax>
351 <parameter name="parameter" required="true">
352 <para>The profile parameter to operate on. The following fields from the
353 Location and Profile objects are supported.</para>
354 <enumlist>
355 <enum name="id"/>
356 <enum name="location_reference"/>
357 <enum name="method"/>
358 <enum name="allow_routing_use"/>
359 <enum name="profile_precedence"/>
360 <enum name="format"/>
361 <enum name="pidf_element"/>
362 <enum name="pidf_element_id"/>
363 <enum name="location_source"/>
364 <enum name="notes"/>
365 <enum name="location_info"/>
366 <enum name="location_info_refinement"/>
367 <enum name="location_variables"/>
368 <enum name="effective_location"/>
369 <enum name="usage_rules"/>
370 <enum name="confidence"/>
371 <enum name="device_id"/>
372 </enumlist>
373 <para>Additionally, the <literal>inheritable</literal> field may be
374 set to <literal>true</literal> or <literal>false</literal> to control
375 whether the profile will be passed to the outgoing channel.
376 </para>
377 <para>
378 </para>
379 </parameter>
380
381 <parameter name="options" required="false">
382 <optionlist>
383 <option name="a">
384 <para>Append provided value to the specified parameter
385 instead of replacing the existing value. This only applies
386 to variable list parameters like
387 <literal>location_info_refinement</literal>.
388 </para>
389 </option>
390 <option name="r">
391 <para>Before reading or after writing the specified parameter,
392 re-resolve the <literal>effective_location</literal> and
393 <literal>usage_rules</literal> parameters using the
394 <literal>location_variables</literal> parameter and the variables
395 set on the channel in effect at the time this function is called.
396 </para>
397 <note><para>On a read operation, this does not alter the actual profile
398 in any way. On a write operation however, the
399 <literal>effective_location</literal> and/or <literal>usage_rules</literal>
400 parameters may indeed change and those changes will be passed on
401 to any outgoing channel.
402 </para></note>
403 </option>
404 </optionlist>
405 </parameter>
406 </syntax>
407 <description><para>
408 When used to set a parameter on a profile, if the profile doesn't already exist, a new
409 one will be created automatically.
410 </para>
411 <para>
412 The <literal>${GEOLOCPROFILESTATUS}</literal> channel variable will be set with
413 a return code indicating the result of the operation. Possible values are:
414 </para>
415 <enumlist>
416 <enum name="0"><para>Success</para></enum>
417 <enum name="-1"><para>No or not enough parameters were supplied</para></enum>
418 <enum name="-2"><para>There was an internal error finding or creating a profile</para></enum>
419 <enum name="-3"><para>There was an issue specific to the parameter specified
420 (value not valid or parameter name not found, etc.)</para></enum>
421 </enumlist>
422 </description>
423 </function>
424 </docs>
425