diff options
author | Terry Wilson <twilson@digium.com> | 2012-01-24 20:12:09 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2012-01-24 20:12:09 +0000 |
commit | 99cae5b7508f30a308afbbacf92ad306a30f68df (patch) | |
tree | bdca00ce837e60a5f9a16fed06d02f6e77235035 /apps/app_talkdetect.c | |
parent | 2144ba5df2813609024964c4c2d9060b30d5cd43 (diff) |
Opaquify channel stringfields
Continue channel opaque-ification by wrapping all of the stringfields.
Eventually, we will restrict what can actually set these variables, but
the purpose for now is to hide the implementation and keep people from
adding code that directly accesses the channel structure. Semantic
changes will follow afterward.
Review: https://reviewboard.asterisk.org/r/1661/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@352348 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_talkdetect.c')
-rw-r--r-- | apps/app_talkdetect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_talkdetect.c b/apps/app_talkdetect.c index a177227be..5259d6f8f 100644 --- a/apps/app_talkdetect.c +++ b/apps/app_talkdetect.c @@ -144,7 +144,7 @@ static int background_detect_exec(struct ast_channel *chan, const char *data) break; } ast_stopstream(chan); - if (ast_streamfile(chan, tmp, chan->language)) { + if (ast_streamfile(chan, tmp, ast_channel_language(chan))) { ast_log(LOG_WARNING, "ast_streamfile failed on %s for %s\n", ast_channel_name(chan), (char *)data); break; } |