<p>Sean Bright has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15576">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_dial.c: Only send DTMF on first progress event.<br><br>ASTERISK-29329 #close<br><br>Change-Id: Ic58e7a17f1ff3f785a5b21dced88682581149601<br>---<br>M apps/app_dial.c<br>1 file changed, 8 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/76/15576/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/apps/app_dial.c b/apps/app_dial.c</span><br><span>index e384b6d..d611083 100644</span><br><span>--- a/apps/app_dial.c</span><br><span>+++ b/apps/app_dial.c</span><br><span>@@ -1559,12 +1559,14 @@</span><br><span> ast_channel_stage_snapshot_done(in);</span><br><span> ast_channel_unlock(in);</span><br><span> sent_progress = 1;</span><br><span style="color: hsl(0, 100%, 40%);">- }</span><br><span style="color: hsl(0, 100%, 40%);">- if (!ast_strlen_zero(dtmf_progress)) {</span><br><span style="color: hsl(0, 100%, 40%);">- ast_verb(3,</span><br><span style="color: hsl(0, 100%, 40%);">- "Sending DTMF '%s' to the called party as result of receiving a PROGRESS message.\n",</span><br><span style="color: hsl(0, 100%, 40%);">- dtmf_progress);</span><br><span style="color: hsl(0, 100%, 40%);">- ast_dtmf_stream(c, in, dtmf_progress, 250, 0);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+ if (!ast_strlen_zero(dtmf_progress)) {</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_verb(3,</span><br><span style="color: hsl(120, 100%, 40%);">+ "Sending DTMF '%s' to the called party as result of "</span><br><span style="color: hsl(120, 100%, 40%);">+ "receiving a PROGRESS message.\n",</span><br><span style="color: hsl(120, 100%, 40%);">+ dtmf_progress);</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_dtmf_stream(c, in, dtmf_progress, 250, 0);</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span> }</span><br><span> ast_channel_publish_dial(in, c, NULL, "PROGRESS");</span><br><span> break;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15576">change 15576</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/+/15576"/><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: Ic58e7a17f1ff3f785a5b21dced88682581149601 </div>
<div style="display:none"> Gerrit-Change-Number: 15576 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>