<p>George Joseph <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14131">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Joshua Colp: Looks good to me, but someone else must approve
George Joseph: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">func_channel: allow reading 4 fields from dialplan<br><br>The following fields return an error when read from dialplan:<br><br>- exten<br>- context<br>- userfield<br>- channame<br><br>ASTERISK-28796 #close<br><br>Change-Id: Ieacaac629490f8710fdacc9de80ed5916c5f6ee2<br>---<br>M funcs/func_channel.c<br>1 file changed, 4 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/funcs/func_channel.c b/funcs/func_channel.c</span><br><span>index f82dad3..d143fdc 100644</span><br><span>--- a/funcs/func_channel.c</span><br><span>+++ b/funcs/func_channel.c</span><br><span>@@ -357,13 +357,13 @@</span><br><span> locked_copy_string(chan, buf, ast_channel_appl(chan), len);</span><br><span> else if (!strcasecmp(data, "appdata") && ast_channel_data(chan))</span><br><span> locked_copy_string(chan, buf, ast_channel_data(chan), len);</span><br><span style="color: hsl(0, 100%, 40%);">- else if (!strcasecmp(data, "exten") && ast_channel_data(chan))</span><br><span style="color: hsl(120, 100%, 40%);">+ else if (!strcasecmp(data, "exten"))</span><br><span> locked_copy_string(chan, buf, ast_channel_exten(chan), len);</span><br><span style="color: hsl(0, 100%, 40%);">- else if (!strcasecmp(data, "context") && ast_channel_data(chan))</span><br><span style="color: hsl(120, 100%, 40%);">+ else if (!strcasecmp(data, "context"))</span><br><span> locked_copy_string(chan, buf, ast_channel_context(chan), len);</span><br><span style="color: hsl(0, 100%, 40%);">- else if (!strcasecmp(data, "userfield") && ast_channel_data(chan))</span><br><span style="color: hsl(120, 100%, 40%);">+ else if (!strcasecmp(data, "userfield"))</span><br><span> locked_copy_string(chan, buf, ast_channel_userfield(chan), len);</span><br><span style="color: hsl(0, 100%, 40%);">- else if (!strcasecmp(data, "channame") && ast_channel_data(chan))</span><br><span style="color: hsl(120, 100%, 40%);">+ else if (!strcasecmp(data, "channame"))</span><br><span> locked_copy_string(chan, buf, ast_channel_name(chan), len);</span><br><span> else if (!strcasecmp(data, "linkedid")) {</span><br><span> ast_channel_lock(chan);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14131">change 14131</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/+/14131"/><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: Ieacaac629490f8710fdacc9de80ed5916c5f6ee2 </div>
<div style="display:none"> Gerrit-Change-Number: 14131 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Sébastien Duthil <sduthil@wazo.community> </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-MessageType: merged </div>