[asterisk-commits] file: trunk r86503 - in /trunk: ./ main/app.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Oct 19 11:40:53 CDT 2007
Author: file
Date: Fri Oct 19 11:40:52 2007
New Revision: 86503
URL: http://svn.digium.com/view/asterisk?view=rev&rev=86503
Log:
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
........
Modified:
trunk/ (props changed)
trunk/main/app.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/main/app.c
URL: http://svn.digium.com/view/asterisk/trunk/main/app.c?view=diff&rev=86503&r1=86502&r2=86503
==============================================================================
--- trunk/main/app.c (original)
+++ trunk/main/app.c Fri Oct 19 11:40:52 2007
@@ -517,6 +517,10 @@
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);
More information about the asterisk-commits
mailing list