[Asterisk-code-review] res_geolocation: eprofile, parsing, tests and more (asterisk[development/16/geolocation])
George Joseph
asteriskteam at digium.com
Wed Mar 9 11:01:25 CST 2022
Attention is currently required from: Joshua Colp.
George Joseph has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/18127 )
Change subject: res_geolocation: eprofile, parsing, tests and more
......................................................................
Patch Set 3:
(4 comments)
File include/asterisk/res_geolocation.h:
https://gerrit.asterisk.org/c/asterisk/+/18127/comment/6764c67c_a2a09f55
PS3, Line 50: AST_STRING_FIELD(method);
> > Are you expecting lots of additional fields here?
>
> No but "method" isn't really defined in the spec so I don't know how long it will be. That's why I made it a string field. Well, that and I couldn't remember if sorcery would take care of allocating and freeing a simple char *.
It doesn't so I'd have to add handlers. I'll leave it a string field.
File res/res_geolocation/geoloc_eprofile.c:
https://gerrit.asterisk.org/c/asterisk/+/18127/comment/07c49a89_2350cae8
PS3, Line 50:
> > Add a comment that this is safe because stringfields handles NULL […]
Done
https://gerrit.asterisk.org/c/asterisk/+/18127/comment/8846b0d7_a183ef8f
PS3, Line 101: eprofile->location_refinement = profile->location_refinement ? ast_variables_dup(profile->location_refinement) : NULL;
> > If any of this duplication fails, won't the effective profile be left in a bit of an undefined/not […]
Done
https://gerrit.asterisk.org/c/asterisk/+/18127/comment/6836e879_a12e198c
PS3, Line 122: if (ast_strlen_zero(uri)) {
> > Are we confident in this simple URI handling here? […]
Done
--
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: 3
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Attention: Joshua Colp <jcolp at sangoma.com>
Gerrit-Comment-Date: Wed, 09 Mar 2022 17:01:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Joshua Colp <jcolp at sangoma.com>
Comment-In-Reply-To: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220309/56f15938/attachment.html>
More information about the asterisk-code-review
mailing list