]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_geolocation: Add built-in profiles
authorGeorge Joseph <gjoseph@digium.com>
Tue, 16 Aug 2022 12:25:10 +0000 (06:25 -0600)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Sat, 10 Sep 2022 16:04:38 +0000 (11:04 -0500)
commita8997a689650dec640fc351ad7338bf19ce820cc
tree88224c4fc7ca487869617d4c873ddc2d2c7409d7
parent273dd16c3c251675604b26d8f899f4116e8d2fc5
res_geolocation:  Add built-in profiles

The trigger to perform outgoing geolocation processing is the
presence of a geoloc_outgoing_call_profile on an endpoint. This
is intentional so as to not leak location information to
destinations that shouldn't receive it.   In a totally dynamic
configuration scenario however, there may not be any profiles
defined in geolocation.conf.  This makes it impossible to do
outgoing processing without defining a "dummy" profile in the
config file.

This commit adds 4 built-in profiles:
  "<prefer_config>"
  "<discard_config>"
  "<prefer_incoming>"
  "<discard_incoming>"
The profiles are empty except for having their precedence
set and can be set on an endpoint to allow processing without
entries in geolocation.conf.  "<discard_config>" is actually the
best one to use in this situation.

ASTERISK-30182

Change-Id: I1819ccfa404ce59802a3a07ad1cabed60fb9480a
configs/samples/geolocation.conf.sample
doc/CHANGES-staging/res_geolocation.txt [new file with mode: 0644]
res/res_geolocation/geoloc_config.c