diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-19 16:40:52 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-10-19 16:40:52 +0000 |
commit | 4c11437602461608f71405d14e49493187123ed9 (patch) | |
tree | 80fd3daec0a88152b8de8ac930f6bbb9faea2426 | |
parent | f2ce84820649389c7fc12166f21d0d9230a2b7fd (diff) |
Merged revisions 86502 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r86502 | file | 2007-10-19 13:38:29 -0300 (Fri, 19 Oct 2007) | 4 lines
When returning a DTMF digit from ast_control_streamfile cast it as a char so that 0 does not overlap with the success return code.
(closes issue #11023)
Reported by: cfc
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@86503 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/app.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/app.c b/main/app.c index cee7553fb..a0feb36cc 100644 --- a/main/app.c +++ b/main/app.c @@ -518,6 +518,10 @@ int ast_control_streamfile(struct ast_channel *chan, const char *file, if (offsetms) *offsetms = offset / 8; /* samples --> ms ... XXX Assumes 8 kHz */ + /* If we are returning a digit cast it as char */ + if (res > 0 || chan->stream) + res = (char)res; + ast_stopstream(chan); return res; |