[Asterisk-code-review] res_geolocation: eprofile, parsing, tests and more (asterisk[development/16/geolocation])

George Joseph asteriskteam at digium.com
Thu Mar 3 12:58:34 CST 2022


Hello Friendly Automation, 

I'd like you to reexamine a change. Please visit

    https://gerrit.asterisk.org/c/asterisk/+/18127

to look at the new patch set (#2).

Change subject: res_geolocation: eprofile, parsing, tests and more
......................................................................

res_geolocation: eprofile, parsing, tests and more

There's a lot of stuff in this commit so hold on to
your knickers.

* Added ability to embed xml and xslt documents into a module.
  It's actually quite simnple and works for gcc and clang.
  See Makefile.rules, res/Makefile and geoloc_eprofile for
  more info.

* Fixed an issue with ast_variable_list_from_string where
  quotes weren't being handled correctly.  This required
  the addition of ast_strsep_strict() to utils.c

* Renamed some things...
   pidf_lo_section was renamed to just pidf_element.
   The "effective_profile" API names were shortened to
   "eprofile".

* Added a ast_xml_find_child_element() convenience macro.

* Added pidf_to_eprofile.xslt that condenses pidf-lo xml
  documents to a simpler format that's common to both GML
  and civicAddress formats.  This cut quite a bit of custom
  parsing code.

* Effective profiles can now be created directly from a pidf
  xml document or a URI.

* Created unit tests for effective profile creation.

Change-Id: I50b66bd041b2a62ab329406f20dbaeef1fa68fc1
---
M Makefile.rules
M configs/samples/geolocation.conf.sample
M include/asterisk/config.h
M include/asterisk/res_geolocation.h
M include/asterisk/strings.h
M include/asterisk/xml.h
M main/config.c
M main/utils.c
M res/Makefile
M res/res_geolocation.c
M res/res_geolocation/geoloc_channel.c
A res/res_geolocation/geoloc_common.c
M res/res_geolocation/geoloc_config.c
M res/res_geolocation/geoloc_doc.xml
A res/res_geolocation/geoloc_eprofile.c
M res/res_geolocation/geoloc_private.h
A res/res_geolocation/pidf_lo_test.xml
A res/res_geolocation/pidf_to_eprofile.xslt
M tests/test_config.c
19 files changed, 1,206 insertions(+), 132 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/27/18127/2
-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/18127
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: development/16/geolocation
Gerrit-Change-Id: I50b66bd041b2a62ab329406f20dbaeef1fa68fc1
Gerrit-Change-Number: 18127
Gerrit-PatchSet: 2
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-MessageType: newpatchset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220303/3b6b1e7e/attachment.html>


More information about the asterisk-code-review mailing list