Skip to end of metadata
Go to start of metadata

Core Geolocation Support

This configuration documentation is for functionality provided by res_geolocation.

geolocation.conf

location

Location

Configuration Option Reference

Option Name

Type

Default Value

Regular Expression

Description

type

None

 

false

Must be of type 'location'.

format

Custom

none

false

Location specification type

location_info

Custom

none

false

Location information

location_source

String

 

false

Fully qualified host name

method

String

 

false

Location determination method

confidence

Custom

none

false

Level of confidence

Configuration Option Descriptions

format
  • civicAddress - The location_info parameter must contain a comma separated list of IANA codes or synonyms describing the civicAddress of this location. The IANA codes and synonyms can be obtained by executing the CLI command geoloc show civicAddr_mapping.
  • GML - The location_info parameter must contain a comma separated list valid GML elements describing this location.
  • URI - The location_info parameter must contain a single URI parameter which contains an external URI describing this location.

location_info

The contents of this parameter are specific to the location format.

  • civicAddress - location_info = country=US,A1="New York",city_district=Manhattan, A3="New York", house_number=1633, street=46th, street_suffix = Street, postal_code=10222,floor=20,room=20A2
  • GML - location_info = Shape=Sphere, pos3d="39.12345 -105.98766 1920", radius=200
  • URI - location_info = URI=https:/something.com?exten=${EXTEN}

location_source

This parameter isn't required but if provided, RFC8787 says it MUST be a fully qualified host name. IP addresses are specifically NOT allowed. The value will be placed in a loc-src parameter appended to the URI in the {{ Geolocation}} header.

method

This is a rarely used field in the specification that would indicate the method used to determine the location. Its usage and values should be pre-negotiated with any recipients.

  • GPS
  • A-GPS
  • Manual
  • DHCP
  • Triangulation
  • Cell
  • 802.11

confidence

This is a rarely used field in the specification that would indicate the confidence in the location specified. See RFC7459 for exact details.

Sub-parameters:

  • pdf - One of:
    • unknown
    • normal
    • rectangular
  • value - A percentage indicating the confidence.

profile

Profile

Configuration Option Reference

Option Name

Type

Default Value

Regular Expression

Description

type

None

 

false

Must be of type 'profile'.

pidf_element

Custom

device

false

PIDF-LO element to place this profile in

location_reference

String

 

false

Reference to a location object

location_info_refinement

Custom

none

false

Reference to a location object

location_variables

Custom

none

false

Reference to a location object

usage_rules

Custom

empty <usage_rules> element

false

location specification type

notes

String

 

false

Notes to be added to the outgoing PIDF-LO document

allow_routing_use

Boolean

no

false

Sets the value of the Geolocation-Routing header.

suppress_empty_ca_elements

Boolean

no

false

Sets if empty Civic Address elements should be suppressed from the PIDF-LO document.

profile_precedence

Custom

discard_incoming

false

Determine which profile on a channel should be used

format

Custom

none

false

Location specification type

location_info

Custom

none

false

Location information

confidence

Custom

none

false

Level of confidence

location_source

String

 

false

Fully qualified host name

method

String

 

false

Location determination method

Configuration Option Descriptions

pidf_element
  • tuple
  • device
  • person
    Based on RFC5491 (see below) the recommended and default element is device.

usage_rules

xxxx

notes

The specification of this parameter will cause a <note-well> element to be added to the outgoing PIDF-LO document. Its usage should be pre-negotiated with any recipients.

profile_precedence
  • prefer_incoming - Use the incoming profile if it exists and has location information, otherwise use the configured profile if it exists and has location information. If neither profile has location information, nothing is sent.
  • prefer_config - Use the configured profile if it exists and has location information, otherwise use the incoming profile if it exists and has location information. If neither profile has location information, nothing is sent.
  • discard_incoming - Discard any incoming profile and use the configured profile if it exists and it has location information. If the configured profile doesn't exist or has no location information, nothing is sent.
  • discard_config - Discard any configured profile and use the incoming profile if it exists and it has location information. If the incoming profile doesn't exist or has no location information, nothing is sent.

format
  • civicAddress - The location_info parameter must contain a comma separated list of IANA codes or synonyms describing the civicAddress of this location. The IANA codes and synonyms can be obtained by executing the CLI command geoloc show civicAddr_mapping.
  • GML - The location_info parameter must contain a comma separated list valid GML elements describing this location.
  • URI - The location_info parameter must contain a single URI parameter which contains an external URI describing this location.

location_info

The contents of this parameter are specific to the location format.

  • civicAddress - location_info = country=US,A1="New York",city_district=Manhattan, A3="New York", house_number=1633, street=46th, street_suffix = Street, postal_code=10222,floor=20,room=20A2
  • GML - location_info = Shape=Sphere, pos3d="39.12345 -105.98766 1920", radius=200
  • URI - location_info = URI=https:/something.com?exten=${EXTEN}

confidence

This is a rarely used field in the specification that would indicate the confidence in the location specified. See RFC7459 for exact details.

Sub-parameters:

  • pdf - One of:
    • unknown
    • normal
    • rectangular
  • value - A percentage indicating the confidence.

location_source

This parameter isn't required but if provided, RFC8787 says it MUST be a fully qualified host name. IP addresses are specifically NOT allowed. The value will be placed in a loc-src parameter appended to the URI in the {{ Geolocation}} header.

method

This is a rarely used field in the specification that would indicate the method used to determine the location. Its usage and values should be pre-negotiated with any recipients.

  • GPS
  • A-GPS
  • Manual
  • DHCP
  • Triangulation
  • Cell
  • 802.11

Import Version

This documentation was imported from Asterisk Version GIT-18-91a12a5

  • No labels