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_dictate.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_dictate.c')
-rw-r--r-- | apps/app_dictate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_dictate.c b/apps/app_dictate.c index b50fbb044..6b2001774 100644 --- a/apps/app_dictate.c +++ b/apps/app_dictate.c @@ -79,7 +79,7 @@ typedef enum { static int play_and_wait(struct ast_channel *chan, char *file, char *digits) { int res = -1; - if (!ast_streamfile(chan, file, chan->language)) { + if (!ast_streamfile(chan, file, ast_channel_language(chan))) { res = ast_waitstream(chan, digits); } return res; @@ -188,7 +188,7 @@ static int dictate_exec(struct ast_channel *chan, const char *data) if (speed > 4) { speed = 1; } - res = ast_say_number(chan, speed, AST_DIGIT_ANY, chan->language, NULL); + res = ast_say_number(chan, speed, AST_DIGIT_ANY, ast_channel_language(chan), NULL); break; case '7': samples -= ffactor; @@ -275,7 +275,7 @@ static int dictate_exec(struct ast_channel *chan, const char *data) if (lastop != DFLAG_PLAY) { lastop = DFLAG_PLAY; ast_closestream(fs); - if (!(fs = ast_openstream(chan, path, chan->language))) + if (!(fs = ast_openstream(chan, path, ast_channel_language(chan)))) break; ast_seekstream(fs, samples, SEEK_SET); chan->stream = NULL; |