<p>Patch set 4:<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/+/12813">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/12813/4/include/asterisk/rtp_engine.h">File include/asterisk/rtp_engine.h:</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/12813/4/include/asterisk/rtp_engine.h@593">Patch Set #4, Line 593:</a> <code style="font-family:monospace,monospace">/*! \brief Structure that represents the test functionality for RTP/RTCP unit tests */</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">To be pedantic - this is actually in regards to res_rtp_asterisk functionality.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/12813/4/include/asterisk/rtp_engine.h@595">Patch Set #4, Line 595:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">/*! Set the number of RTP packets to drop */<br>     int packets_to_drop;<br>  /*! Sends a RTCP SR/RR report the next time RTP is sent instead of the RTP packet and sets this back to 0 */<br>  int send_report;<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Any reason these weren't callbacks into the RTP engine, that could then act on them however it wished?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/12813/4/include/asterisk/rtp_engine.h@601">Patch Set #4, Line 601:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">/*! Used to compare integer values */<br>  int int_value;<br>        /*! Compare function for int_value; sets condition_met to 1 */<br>        void (*check_int_value)(int value);<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">What does this actually... mean and why didn't check_int_value just return an int stating that the condition was met if the function is synchronous? As well since int_value is public, you could just check that and not have a callback</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/12813/4/res/res_rtp_asterisk.c">File res/res_rtp_asterisk.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/12813/4/res/res_rtp_asterisk.c@2408">Patch Set #4, Line 2408:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">static void set_rtp_rtcp_schedid(struct ast_rtp_instance *instance, int id)<br>{<br>   struct ast_rtp *rtp = ast_rtp_instance_get_data(instance);<br><br>  if (rtp && rtp->rtcp) {<br>            rtp->rtcp->schedid = id;<br>        }<br>}<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Why this instead of just passing in a valid scheduler context on instance creation?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/12813/4/res/res_rtp_asterisk.c@6242">Patch Set #4, Line 6242:</a> <code style="font-family:monospace,monospace">                              test_engine->condition_met = 1;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Is this used anywhere else? I think it'd be better named as sdes_received or something.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/12813">change 12813</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/+/12813"/><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: I56107c7411003a247589bbb6086d25c54719901b </div>
<div style="display:none"> Gerrit-Change-Number: 12813 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Benjamin Keith Ford <bford@digium.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@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 03 Sep 2019 14:35: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>