[Asterisk-code-review] res/res_stasis: Fixed wrong StasisEnd timestamp (...asterisk[16])

Kevin Harwell asteriskteam at digium.com
Fri Mar 15 12:54:45 CDT 2019


Kevin Harwell has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/11134 )

Change subject: res/res_stasis: Fixed wrong StasisEnd timestamp
......................................................................


Patch Set 4: Code-Review-1

(2 comments)

https://gerrit.asterisk.org/#/c/11134/4/res/res_stasis.c 
File res/res_stasis.c:

https://gerrit.asterisk.org/#/c/11134/4/res/res_stasis.c@126 
PS4, Line 126: 	msg = ast_json_pack("{s: s, s: o, s: o}",
             : 		"type", "StasisEnd",
             : 		"timestamp", ast_json_copy(ast_json_object_get(payload->blob, "timestamp")),
Here this can use the other method like you had before of bumping the ref. This behavior changed between 13 and 16 it seems (looks like it is now threadsafe). See commit 7b0dbda9 (16 branch) for more information/details if you like.


https://gerrit.asterisk.org/#/c/11134/4/res/res_stasis.c@158 
PS4, Line 158: 	msg = ast_json_pack("{s: s, s: o, s: o, s: o}",
             : 		"type", "StasisStart",
             : 		"timestamp", ast_json_copy(ast_json_object_get(payload->blob, "timestamp")),
             : 		"args", ast_json_deep_copy(ast_json_object_get(payload->blob, "args")),
Similar to above. This can be undone and as it should use the ref bump method.



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/11134
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I5eb8380fc472f1100535a6bc4983c64767026116
Gerrit-Change-Number: 11134
Gerrit-PatchSet: 4
Gerrit-Owner: sungtae kim <pchero21 at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua C. Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Comment-Date: Fri, 15 Mar 2019 17:54:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190315/4a3210c8/attachment.html>


More information about the asterisk-code-review mailing list