<p>Benjamin Keith Ford has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16696">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pbx.c: Don't remove dashes from hints on reload.<br><br>When reloading dialplan, hints created dynamically would lose any dash<br>characters. Now we ignore those dashes if we are dealing with a hint<br>during a reload.<br><br>ASTERISK-28040 #close<br><br>Change-Id: I95e48f5a268efa3c6840ab69798525d3dce91636<br>---<br>M main/pbx.c<br>1 file changed, 8 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/96/16696/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/pbx.c b/main/pbx.c</span><br><span>index d0ee127..0cae9b8 100644</span><br><span>--- a/main/pbx.c</span><br><span>+++ b/main/pbx.c</span><br><span>@@ -7380,7 +7380,14 @@</span><br><span> }</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">- exten_fluff = ext_fluff_count(extension);</span><br><span style="color: hsl(120, 100%, 40%);">+ if (priority == PRIORITY_HINT) {</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Fluff in a hint is fine. This prevents the removal of dashes from dynamically</span><br><span style="color: hsl(120, 100%, 40%);">+ * created hints during a reload. */</span><br><span style="color: hsl(120, 100%, 40%);">+ exten_fluff = 0;</span><br><span style="color: hsl(120, 100%, 40%);">+ } else {</span><br><span style="color: hsl(120, 100%, 40%);">+ exten_fluff = ext_fluff_count(extension);</span><br><span style="color: hsl(120, 100%, 40%);">+ }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> callerid_fluff = callerid ? ext_fluff_count(callerid) : 0;</span><br><span> </span><br><span> length = sizeof(struct ast_exten);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16696">change 16696</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/+/16696"/><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: I95e48f5a268efa3c6840ab69798525d3dce91636 </div>
<div style="display:none"> Gerrit-Change-Number: 16696 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-CC: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>