<p>Ivan Poddubny has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/8608">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">func_channel: Delete dead CHANNEL_TRACE code<br><br>The functions behind the flag and the flag itself were removed<br>from Asterisk 12 as incompatible with the new architecture.<br><br>Change-Id: I058493ef7a53ee290fd225bbcbb07bf46b623ccf<br>---<br>M funcs/func_channel.c<br>1 file changed, 0 insertions(+), 22 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/08/8608/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/funcs/func_channel.c b/funcs/func_channel.c<br>index e290fa0..f82dad3 100644<br>--- a/funcs/func_channel.c<br>+++ b/funcs/func_channel.c<br>@@ -205,10 +205,6 @@<br> <enum name="videonativeformat"><br> <para>R/O format used natively for video</para><br> </enum><br>- <enum name="trace"><br>- <para>R/W whether or not context tracing is enabled, only available<br>- <emphasis>if CHANNEL_TRACE is defined</emphasis>.</para><br>- </enum><br> <enum name="hangupsource"><br> <para>R/W returns the channel responsible for hangup.</para><br> </enum><br>@@ -328,10 +324,6 @@<br> locked_copy_string(chan, buf, ast_format_get_name(ast_channel_readformat(chan)), len);<br> } else if (!strcasecmp(data, "audiowriteformat")) {<br> locked_copy_string(chan, buf, ast_format_get_name(ast_channel_writeformat(chan)), len);<br>-#ifdef CHANNEL_TRACE<br>- } else if (!strcasecmp(data, "trace")) {<br>- locked_copy_string(chan, buf, ast_channel_trace_is_enabled(chan) ? "1" : "0", len);<br>-#endif<br> } else if (!strcasecmp(data, "tonezone") && ast_channel_zone(chan)) {<br> locked_copy_string(chan, buf, ast_channel_zone(chan)->country, len);<br> } else if (!strcasecmp(data, "dtmf_features")) {<br>@@ -515,20 +507,6 @@<br> else if (!strcasecmp(data, "hangupsource"))<br> /* XXX - should we be forcing this here? */<br> ast_set_hangupsource(chan, value, 0);<br>-#ifdef CHANNEL_TRACE<br>- else if (!strcasecmp(data, "trace")) {<br>- ast_channel_lock(chan);<br>- if (ast_true(value))<br>- ret = ast_channel_trace_enable(chan);<br>- else if (ast_false(value))<br>- ret = ast_channel_trace_disable(chan);<br>- else {<br>- ret = -1;<br>- ast_log(LOG_WARNING, "Invalid value for CHANNEL(trace).\n");<br>- }<br>- ast_channel_unlock(chan);<br>- }<br>-#endif<br> else if (!strcasecmp(data, "tonezone")) {<br> struct ast_tone_zone *new_zone;<br> if (!(new_zone = ast_get_indication_zone(value))) {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/8608">change 8608</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/8608"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I058493ef7a53ee290fd225bbcbb07bf46b623ccf </div>
<div style="display:none"> Gerrit-Change-Number: 8608 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Ivan Poddubny <ivan.poddubny@gmail.com> </div>