summaryrefslogtreecommitdiff
path: root/main/file.c
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2008-08-10 19:35:50 +0000
committerSean Bright <sean@malleable.com>2008-08-10 19:35:50 +0000
commitb69c8e6ab5b5d20a964d67e93cda8dc07da61fa4 (patch)
treeb4d1b3f66cf87177cb1c8a8ee596b6a9458f8f6c /main/file.c
parent3ffb39833b25a02108214d7584733bc6b9c334df (diff)
Another big chunk of changes from the RSW branch. Bunch of stuff from main/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@137082 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/file.c')
-rw-r--r--main/file.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/file.c b/main/file.c
index 8e27c58a0..1bef768ba 100644
--- a/main/file.c
+++ b/main/file.c
@@ -1072,7 +1072,7 @@ struct ast_filestream *ast_writefile(const char *filename, const char *type, con
* \brief the core of all waitstream() functions
*/
static int waitstream_core(struct ast_channel *c, const char *breakon,
- const char *forward, const char *rewind, int skip_ms,
+ const char *forward, const char *reverse, int skip_ms,
int audiofd, int cmdfd, const char *context)
{
const char *orig_chan_name = NULL;
@@ -1082,8 +1082,8 @@ static int waitstream_core(struct ast_channel *c, const char *breakon,
breakon = "";
if (!forward)
forward = "";
- if (!rewind)
- rewind = "";
+ if (!reverse)
+ reverse = "";
/* Switch the channel to end DTMF frame only. waitstream_core doesn't care about the start of DTMF. */
ast_set_flag(c, AST_FLAG_END_DTMF_ONLY);
@@ -1154,7 +1154,7 @@ static int waitstream_core(struct ast_channel *c, const char *breakon,
res = fr->subclass;
if (strchr(forward, res)) {
ast_stream_fastforward(c->stream, skip_ms);
- } else if (strchr(rewind, res)) {
+ } else if (strchr(reverse, res)) {
ast_stream_rewind(c->stream, skip_ms);
} else if (strchr(breakon, res)) {
ast_frfree(fr);
@@ -1201,9 +1201,9 @@ static int waitstream_core(struct ast_channel *c, const char *breakon,
return (err || c->_softhangup) ? -1 : 0;
}
-int ast_waitstream_fr(struct ast_channel *c, const char *breakon, const char *forward, const char *rewind, int ms)
+int ast_waitstream_fr(struct ast_channel *c, const char *breakon, const char *forward, const char *reverse, int ms)
{
- return waitstream_core(c, breakon, forward, rewind, ms,
+ return waitstream_core(c, breakon, forward, reverse, ms,
-1 /* no audiofd */, -1 /* no cmdfd */, NULL /* no context */);
}