res_geolocation: Add profile parameter suppress_empty_ca_elements

Added profile parameter "suppress_empty_ca_elements" that
will cause Civic Address elements that are empty to be
suppressed from the outgoing PIDF-LO document.

Fixed a possible SEGV if a sub-parameter value didn't have a
value.

ASTERISK-30177

Change-Id: I924ccc5aa2f45110a3155b22e53dfaf3ef2092dd
This commit is contained in:
George Joseph
2022-08-17 07:15:00 -06:00
committed by Friendly Automation
parent 2d5a6498dd
commit 4ffc5561c4
9 changed files with 73 additions and 32 deletions

View File

@@ -82,6 +82,7 @@ struct ast_geoloc_profile {
struct ast_variable *location_refinement;
struct ast_variable *location_variables;
struct ast_variable *usage_rules;
int suppress_empty_ca_elements;
};
struct ast_geoloc_eprofile {
@@ -102,6 +103,7 @@ struct ast_geoloc_eprofile {
struct ast_variable *effective_location;
struct ast_variable *usage_rules;
struct ast_variable *confidence;
int suppress_empty_ca_elements;
};
/*!