<p> Attention is currently required from: N A, Joshua Colp, Sarah Autumn. </p>
<p>Patch set 3:<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/+/16080">View Change</a></p><p>9 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="null">Patchset:</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/+/16080?tab=comments">Patch Set #3:</a> </p><p style="white-space: pre-wrap; word-wrap: break-word;">Some of the code in this module isn't used because you didn't implement the AMI part that was in app_senddtmf.  The extra bits needed to implement the AMI part is trivial so you should do so.<br></p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="null">File apps/app_sendmf.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/+/16080/comment/bfa603dc_010b0084">Patch Set #2, Line 232:</a> <code style="font-family:monospace,monospace">     if (peer && ast_autoservice_start(peer)) {</code></p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">To be completely frank, I don't know. I started using app_senddtmf as a base for this and modified it, so I retained the structure of that. I would imagine the rationale would be the same as with DTMF, though I don't know what that would be. Can remove if unneeded.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">There'd be a "peer" if the application was called with a channel name.  In this case, chan is the channel to play the tones on and "peer" is "this" channel...the one the app was actually called on.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="null">File apps/app_sendmf.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/+/16080/comment/b00aef8c_4fcaf9dc">Patch Set #3, Line 131:</a> <code style="font-family:monospace,monospace"> ast_</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Remove the ast_ since this isn't a public function.<br>The line should also be wrapped.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/16080/comment/f4cf5eed_3dd161f5">Patch Set #3, Line 147:</a> <code style="font-family:monospace,monospace">ast_senddigit_external_m</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Remove the ast_ since this isn't a public function.<br>The line should also be wrapped.<br>This function was copied from app_senddtmf but is unused here because you didn't implement the AMI call.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/16080/comment/db6d1f39_1c29a74f">Patch Set #3, Line 163:</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;">tatic int external_sleep(struct ast_channel *chan, int ms)<br>{<br>      usleep(ms * 1000);<br>    return 0;<br>}<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">This function was copied from app_senddtmf but is unused here because you didn't implement the AMI call.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/16080/comment/ba89977b_66411488">Patch Set #3, Line 169:</a> <code style="font-family:monospace,monospace">tatic int mf_stream(struct ast_channel *chan, const char *digits, int between, unsigned int duration, unsigned int durationkp, unsigned int durationst, int is_external)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">The line should also be wrapped.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/16080/comment/4d2865fb_0c88ae47">Patch Set #3, Line 177:</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;">if (is_external) {<br>             my_sleep = external_sleep;<br>            my_senddigit = ast_senddigit_external_mf;<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">This was copied from app_senddtmf but is unused here because you didn't implement the AMI call. is_external is always 0.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/16080/comment/3bd49517_0a46add9">Patch Set #3, Line 207:</a> <code style="font-family:monospace,monospace">DTMF</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">MF</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/16080/comment/a4075034_f440de93">Patch Set #3, Line 228:</a> <code style="font-family:monospace,monospace">static int ast_mf_stream(struct ast_channel *chan, struct ast_channel *peer, const char *digits, int between, unsigned int duration, unsigned int durationkp, unsigned int durationst)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Remove the ast_ since this isn't a public function.<br>The line should also be wrapped.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16080">change 16080</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/+/16080"/><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-Change-Id: I5d89afdbccee3f86cc702ed96d882f3d351327a4 </div>
<div style="display:none"> Gerrit-Change-Number: 16080 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.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-CC: Sarah Autumn <sarah@endlesstemple.org> </div>
<div style="display:none"> Gerrit-Attention: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Attention: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Attention: Sarah Autumn <sarah@endlesstemple.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 04 Aug 2021 13:35:20 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Comment-In-Reply-To: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Comment-In-Reply-To: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>