diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-04 14:05:12 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-04 14:05:12 +0000 |
commit | 3bacd4082e2d3a2dd5b8b13635df956aa4f415cd (patch) | |
tree | dd3bc244b8a45aacb932109dc8c12d1f21769d55 /apps/app_dictate.c | |
parent | 1d3ce2ae5f81e30ec0704efe840bc2c9a24c7e8a (diff) |
Expand codec bitfield from 32 bits to 64 bits.
Reviewboard: https://reviewboard.asterisk.org/r/416/
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@227580 f38db490-d61c-443f-a65b-d21fe96a405b
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; |