mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
committed by
Friendly Automation
parent
08907bf6d8
commit
81ede203b6
@@ -90,7 +90,7 @@ static int _stem ## _handler(const struct aco_option *opt, struct ast_variable *
|
||||
while ((item = ast_strsep(&item_string, ',', AST_STRSEP_ALL))) { \
|
||||
item_name = ast_strsep(&item, '=', AST_STRSEP_ALL); \
|
||||
item_value = ast_strsep(&item, '=', AST_STRSEP_ALL); \
|
||||
new_var = ast_variable_new(item_name, item_value, ""); \
|
||||
new_var = ast_variable_new(item_name, S_OR(item_value, ""), ""); \
|
||||
if (!new_var) { \
|
||||
rc = -1; \
|
||||
break; \
|
||||
|
Reference in New Issue
Block a user