<p>Richard Mudgett <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/9180">View Change</a></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>(4 comments)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/9180/1//COMMIT_MSG">Commit Message:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9180/1//COMMIT_MSG@9">Patch Set #1, Line 9:</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;">ASTERISK-27912: Add predial handler to app_queue<br>app_dial (ASTERISK-19548) and app_originate (ASTERISK-26587) have the<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">See https://wiki.asterisk.org/wiki/display/AST/Commit+Messages about how a commit message should look.</p><p style="white-space: pre-wrap; word-wrap: break-word;">When you reference another issue that is related you should use something other than the '-' in the issue id.  I recommend substituting '_' in place of the '-'.  The gerrit plugin is really stupid and will close ANY issue identifiers it finds in your commit message.</p></li></ul></li><li><p><a href="https://gerrit.asterisk.org/#/c/9180/1/apps/app_queue.c">File apps/app_queue.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9180/1/apps/app_queue.c@4592">Patch Set #1, Line 4592:</a> <code style="font-family:monospace,monospace">                ast_replace_subargument_delimiter(opt_args[OPT_ARG_PREDIAL_CALLEE]);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Calling this only needs to be done once on starting the application.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9180/1/apps/app_queue.c@4653">Patch Set #1, Line 4653:</a> <code style="font-family:monospace,monospace">  while (ret == 0) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Look at app_followme for how callee pre-dial things were done there.  You need to put the caller and any already called members into autoservice if you have a pre-dial routine configured for the callees.  You DO NOT know how long the pre-dial routine will take to execute.</p><p style="white-space: pre-wrap; word-wrap: break-word;">When you initiate a new call to a member you need to put that channel into autoservice when ring_entry() returns.</p><p style="white-space: pre-wrap; word-wrap: break-word;">When this routine returns you need to take all channels that you have placed into autoservice out of autoservice.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9180/1/apps/app_queue.c@8324">Patch Set #1, Line 8324:</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;">   /* PREDIAL: Run gosub on the caller's channel */<br>  if (ast_test_flag(&opts, OPT_PREDIAL_CALLER)<br>              && !ast_strlen_zero(opt_args[OPT_ARG_PREDIAL_CALLER])) {<br>              ast_replace_subargument_delimiter(opt_args[OPT_ARG_PREDIAL_CALLER]);<br>          ast_app_exec_sub(NULL, chan, opt_args[OPT_ARG_PREDIAL_CALLER], 0);<br>    }<br><br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">This code can get executed several times which means that the pre-dial routine on the caller's channel can get executed several times.  This code should be moved to before the check_turns label and best right after the ast_queue_log() call there.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/9180">change 9180</a>. To unsubscribe, 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/9180"/><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: I5acf5c32587ee008658d12e8a8049eb8fa4d0f24 </div>
<div style="display:none"> Gerrit-Change-Number: 9180 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Kristian Høgh <kfh@uni-tel.dk> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 19 Jun 2018 18:17:37 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>