<p> Attention is currently required from: N A, Henning Westerholt. </p>
<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/c/asterisk/+/18990">View Change</a></p><p>13 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="null">File configs/samples/pjsip.conf.sample:</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/asterisk/+/18990/comment/c7be6afe_03877142">Patch Set #6, Line 1287:</a> <code style="font-family:monospace,monospace">                    ; On reception of a re-INVITE without SDP Asterisk will send an SDP</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">You should indicate the default value.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="null">File doc/CHANGES-staging/res_pjsip_all_codecs_on_empty_reinvite_option.txt:</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/asterisk/+/18990/comment/73c7d198_40deaf02">Patch Set #6, Line 3:</a> <code style="font-family:monospace,monospace">A new option named "all_codecs_on_empty_reinvite" has been added to the</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">You should indicate the default value.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="null">File res/res_pjsip/config_global.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/asterisk/+/18990/comment/018a7ecc_1b92d0cd">Patch Set #6, Line 57:</a> <code style="font-family:monospace,monospace">#define DEFAULT_ALL_CODECS_ON_EMPTY_REINVITE 1</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I think the default should be 0 to preserve existing behavior.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="null">File res/res_pjsip/pjsip_config.xml:</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/asterisk/+/18990/comment/36976504_4e60a8b2">Patch Set #6, Line 2104:</a> <code style="font-family:monospace,monospace">yes</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Should be "no".</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="null">File res/res_pjsip_session.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/asterisk/+/18990/comment/ce7343b1_2f503f7f">Patch Set #6, Line 5078:</a> <code style="font-family:monospace,monospace">1</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Since the SCOPE_ENTER for this function uses level 3, this should be either -1 to use the same level, or a number >= 3.  Otherwise these trace messages will show up when "core set trace 1" is used but the corresponding SCOPE_ENTER and SCOPE_EXIT messages won't.  I usually use a level that's 1 > than the SCOPE level for ast_trace statements and if they're in a loop, 2 >.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/18990/comment/e0264207_d2fb6c1e">Patch Set #6, Line 5081:</a> <code style="font-family:monospace,monospace">1</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/18990/comment/03e45bd5_ab222ff5">Patch Set #6, Line 5085:</a> <code style="font-family:monospace,monospace">1</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/18990/comment/f7dbe064_ff647f37">Patch Set #6, Line 5087:</a> <code style="font-family:monospace,monospace">1</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/18990/comment/7f9d8c55_a6450c6c">Patch Set #6, Line 5244:</a> <code style="font-family:monospace,monospace">        ast_trace(1, "session_inv_on_create_offer\n");</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">You don't need an ast_trace here since the SCOPE_ENTER prints the same message.  You should also move the SCOPE_ENTER above the comment.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/18990/comment/655d5a6e_78276df0">Patch Set #6, Line 5246:</a> <code style="font-family:monospace,monospace">                return;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Replace this return with SCOPE_EXIT_RTN("%s: No channel\n", ast_sip_session_get_name(session));  SCOPE_ENTER always needs to be balanced with a SCOPE_EXIT.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/18990/comment/7c441ab0_9ede8f60">Patch Set #6, Line 5256:</a> <code style="font-family:monospace,monospace">1</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">See above comment about trace level.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/18990/comment/4875377f_3643e61e">Patch Set #6, Line 5259:</a> <code style="font-family:monospace,monospace">1</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/18990/comment/007b8a14_6dbb14ff">Patch Set #6, Line 5279:</a> <code style="font-family:monospace,monospace">              return;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">You can remove the return since that's what SCOPE_EXIT_RTN does.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18990">change 18990</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/+/18990"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: I69763708d5039d512f391e296ee8a4d43a1e2148 </div>
<div style="display:none"> Gerrit-Change-Number: 18990 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: Henning Westerholt <hw@gilawa.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Attention: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Attention: Henning Westerholt <hw@gilawa.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 10 Oct 2022 12:10:28 +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>