Skip to content
Snippets Groups Projects
Commit 8bd5980e authored by Ivan Poddubny's avatar Ivan Poddubny
Browse files

func_channel: Delete dead CHANNEL_TRACE code

The functions behind the flag and the flag itself were removed
from Asterisk 12 as incompatible with the new architecture.

Change-Id: I058493ef7a53ee290fd225bbcbb07bf46b623ccf
parent 1a2f12e2
No related branches found
No related tags found
No related merge requests found
...@@ -205,10 +205,6 @@ ...@@ -205,10 +205,6 @@
<enum name="videonativeformat"> <enum name="videonativeformat">
<para>R/O format used natively for video</para> <para>R/O format used natively for video</para>
</enum> </enum>
<enum name="trace">
<para>R/W whether or not context tracing is enabled, only available
<emphasis>if CHANNEL_TRACE is defined</emphasis>.</para>
</enum>
<enum name="hangupsource"> <enum name="hangupsource">
<para>R/W returns the channel responsible for hangup.</para> <para>R/W returns the channel responsible for hangup.</para>
</enum> </enum>
...@@ -328,10 +324,6 @@ static int func_channel_read(struct ast_channel *chan, const char *function, ...@@ -328,10 +324,6 @@ static int func_channel_read(struct ast_channel *chan, const char *function,
locked_copy_string(chan, buf, ast_format_get_name(ast_channel_readformat(chan)), len); locked_copy_string(chan, buf, ast_format_get_name(ast_channel_readformat(chan)), len);
} else if (!strcasecmp(data, "audiowriteformat")) { } else if (!strcasecmp(data, "audiowriteformat")) {
locked_copy_string(chan, buf, ast_format_get_name(ast_channel_writeformat(chan)), len); locked_copy_string(chan, buf, ast_format_get_name(ast_channel_writeformat(chan)), len);
#ifdef CHANNEL_TRACE
} else if (!strcasecmp(data, "trace")) {
locked_copy_string(chan, buf, ast_channel_trace_is_enabled(chan) ? "1" : "0", len);
#endif
} else if (!strcasecmp(data, "tonezone") && ast_channel_zone(chan)) { } else if (!strcasecmp(data, "tonezone") && ast_channel_zone(chan)) {
locked_copy_string(chan, buf, ast_channel_zone(chan)->country, len); locked_copy_string(chan, buf, ast_channel_zone(chan)->country, len);
} else if (!strcasecmp(data, "dtmf_features")) { } else if (!strcasecmp(data, "dtmf_features")) {
...@@ -515,20 +507,6 @@ static int func_channel_write_real(struct ast_channel *chan, const char *functio ...@@ -515,20 +507,6 @@ static int func_channel_write_real(struct ast_channel *chan, const char *functio
else if (!strcasecmp(data, "hangupsource")) else if (!strcasecmp(data, "hangupsource"))
/* XXX - should we be forcing this here? */ /* XXX - should we be forcing this here? */
ast_set_hangupsource(chan, value, 0); ast_set_hangupsource(chan, value, 0);
#ifdef CHANNEL_TRACE
else if (!strcasecmp(data, "trace")) {
ast_channel_lock(chan);
if (ast_true(value))
ret = ast_channel_trace_enable(chan);
else if (ast_false(value))
ret = ast_channel_trace_disable(chan);
else {
ret = -1;
ast_log(LOG_WARNING, "Invalid value for CHANNEL(trace).\n");
}
ast_channel_unlock(chan);
}
#endif
else if (!strcasecmp(data, "tonezone")) { else if (!strcasecmp(data, "tonezone")) {
struct ast_tone_zone *new_zone; struct ast_tone_zone *new_zone;
if (!(new_zone = ast_get_indication_zone(value))) { if (!(new_zone = ast_get_indication_zone(value))) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment