diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-11-04 14:05:12 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-11-04 14:05:12 +0000 |
commit | d8e0c584372c51b585a52efbe2375861bc09bdcf (patch) | |
tree | dd3bc244b8a45aacb932109dc8c12d1f21769d55 /apps/app_dictate.c | |
parent | 6a50e7a031f4d424aa8bd3293aa48501f7b96652 (diff) |
Expand codec bitfield from 32 bits to 64 bits.
Reviewboard: https://reviewboard.asterisk.org/r/416/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_dictate.c')
-rw-r--r-- | apps/app_dictate.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_dictate.c b/apps/app_dictate.c index 816f15a14..e9e5f0d53 100644 --- a/apps/app_dictate.c +++ b/apps/app_dictate.c @@ -165,7 +165,7 @@ static int dictate_exec(struct ast_channel *chan, const char *data) samples = 0; while (!done && ((res = ast_waitfor(chan, -1)) > -1) && fs && (f = ast_read(chan))) { if (digit) { - struct ast_frame fr = {AST_FRAME_DTMF, digit}; + struct ast_frame fr = {AST_FRAME_DTMF, { .integer = digit } }; ast_queue_frame(chan, &fr); digit = 0; } @@ -173,7 +173,7 @@ static int dictate_exec(struct ast_channel *chan, const char *data) int got = 1; switch(mode) { case DMODE_PLAY: - switch(f->subclass) { + switch (f->subclass.integer) { case '1': ast_set_flag(&flags, DFLAG_PAUSE); mode = DMODE_RECORD; @@ -202,7 +202,7 @@ static int dictate_exec(struct ast_channel *chan, const char *data) } break; case DMODE_RECORD: - switch(f->subclass) { + switch (f->subclass.integer) { case '1': ast_set_flag(&flags, DFLAG_PAUSE); mode = DMODE_PLAY; @@ -219,7 +219,7 @@ static int dictate_exec(struct ast_channel *chan, const char *data) got = 0; } if (!got) { - switch(f->subclass) { + switch (f->subclass.integer) { case '#': done = 1; continue; |