<p>Patch set 6:<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/10601">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/10601/6/res/res_pjsip_t38.c">File res/res_pjsip_t38.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/10601/6/res/res_pjsip_t38.c@89">Patch Set #6, Line 89:</a> <code style="font-family:monospace,monospace">      .type = "session_media",</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This is really specific to t38, so it should be named such just in case for the future.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10601/6/res/res_pjsip_t38.c@137">Patch Set #6, Line 137:</a> <code style="font-family:monospace,monospace">     RAII_VAR(struct ast_datastore *, datastore, ast_sip_session_get_datastore(session, "session_media"), ao2_cleanup);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">There's no need to use a RAII_VAR here - you can ao2_ref inside the if for datastore</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10601/6/res/res_pjsip_t38.c@157">Patch Set #6, Line 157:</a> <code style="font-family:monospace,monospace">  datastore->data = session_media;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">You can use ao2_bump here, it also makes it clear that the ref is for the datastore</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10601/6/res/res_pjsip_t38.c@490">Patch Set #6, Line 490:</a> <code style="font-family:monospace,monospace">                RAII_VAR(struct ast_sip_session_media *, session_media,</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">There's no need to use a RAII_VAR here, an ao2_cleanup afterwards is fine.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10601/6/res/res_pjsip_t38.c@506">Patch Set #6, Line 506:</a> <code style="font-family:monospace,monospace">         RAII_VAR(struct ast_sip_session_media *, session_media,</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">There's no need to use a RAII_VAR here, an ao2_cleanup afterwards is fine.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/10601">change 10601</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/10601"/><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-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ia92e2389b8d804bf205473e92ec06217e87ce237 </div>
<div style="display:none"> Gerrit-Change-Number: 10601 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: Paulo Vicentini <paulo.vicentini@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Joshua C. Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Matthew Fredrickson <creslin@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Paulo Vicentini <paulo.vicentini@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Torrey Searle <tsearle@gmail.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 22 Jan 2019 16:50:05 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>