<p>Patch set 2:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4; color: #000000;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11133">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/11133/2/res/res_stasis.c">File res/res_stasis.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/11133/2/res/res_stasis.c@128">Patch Set #2, Line 128:</a> <code style="font-family:monospace,monospace">        msg = ast_json_pack("{s: s, s: o, s: o}",</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I believe this is now correct combined with the "ast_json_copy" of the object. However, this should change in the 16 and master branch to use the ref bumping method. See more details on the 16 review.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/11133/2/res/res_stasis.c@130">Patch Set #2, Line 130:</a> <code style="font-family:monospace,monospace">            "timestamp", ast_json_copy(ast_json_object_get(payload->blob, "timestamp")),</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I still don't think this is getting any kind of timestamp (but could be misreading the code). As I understand it this is attempting to get the timestamp from the "blob". Reading the code the "blob" referenced here is created in "app_send_end_msg":</p><p style="white-space: pre-wrap; word-wrap: break-word;">blob = ast_json_pack("{s: s}", "app", stasis_app_name(app));</p><p style="white-space: pre-wrap; word-wrap: break-word;">"timestamp" is not added at creation, nor appended later from what I can see. The timestamp created in "stasis_message_create_full":</p><p style="white-space: pre-wrap; word-wrap: break-word;">message->timestamp = ast_tvnow();</p><p style="white-space: pre-wrap; word-wrap: break-word;">Is set on the "stasis_message" object itself, and not the "blob" which is being used here. So I believe attempting to get the timestamp from this blob here will always result in NULL.</p><p style="white-space: pre-wrap; word-wrap: break-word;">But I'm assuming you are seeing a timestamp in your testing? So maybe I am misreading the code?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11133">change 11133</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/11133"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: I5eb8380fc472f1100535a6bc4983c64767026116 </div>
<div style="display:none"> Gerrit-Change-Number: 11133 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: sungtae kim <pchero21@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Joshua C. Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: sungtae kim <pchero21@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 15 Mar 2019 17:54:37 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>