<p style="white-space: pre-wrap; word-wrap: break-word;">The -1 is for my pbx_realtime.c comments only. Feel free to take action or not for my other comments.</p><p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/10622">View Change</a></p><p>5 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/10622/1/main/channel_internal_api.c">File main/channel_internal_api.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/10622/1/main/channel_internal_api.c@233">Patch Set #1, Line 233:</a> <code style="font-family:monospace,monospace">#define DEFINE_STRINGFIELD_SETTERS_FOR(field, publish, assert_on_null) \</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">All callers now use publish = 0, assert_on_null = 0. I could see assert_on_null possibly being useful for future setters but publish without invalidate seems useless.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/10622/1/main/stasis_channels.c">File main/stasis_channels.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/10622/1/main/stasis_channels.c@461">Patch Set #1, Line 461:</a> <code style="font-family:monospace,monospace"> snapshot = ao2_alloc_options(sizeof(*snapshot), channel_snapshot_dtor,</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Could we have a situation where we could just bump/return the old snapshot? That is no segments invalidated, no ari/manager vars, state/amaflags/flags/softhangup_flags unchanged?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10622/1/main/stasis_channels.c@556">Patch Set #1, Line 556:</a> <code style="font-family:monospace,monospace"> /* These have to be recreated as they may have changed, unfortunately */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Seems like these functions immediately return NULL if no vars are configured? Should we add a comment to the sample manager.conf and ari.conf stating that the associated options can be costly?</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/10622/1/pbx/pbx_realtime.c">File pbx/pbx_realtime.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/10622/1/pbx/pbx_realtime.c@351">Patch Set #1, Line 351:</a> <code style="font-family:monospace,monospace"> /* pbx_exec sets application name and data, but we don't want to log</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Creating/publishing the snapshot from here makes no sense to me. From what I can tell pbx_exec will still publish a snapshot with updated app/data.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10622/1/pbx/pbx_realtime.c@354">Patch Set #1, Line 354:</a> <code style="font-family:monospace,monospace"> ast_string_field_set(snapshot->dialplan, appl, app);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This violates existing snapshot->dialplan immutability unless AST_CHANNEL_SNAPSHOT_INVALIDATE_DIALPLAN was set during the call to ast_channel_snapshot_create.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/10622">change 10622</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/10622"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I5d7ef3df963a88ac47bc187d73c5225c315f8423 </div>
<div style="display:none"> Gerrit-Change-Number: 10622 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 13 Nov 2018 12:38:42 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>