[asterisk-commits] file: branch 1.4 r86502 - /branches/1.4/main/app.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Oct 19 11:38:30 CDT 2007


Author: file
Date: Fri Oct 19 11:38:29 2007
New Revision: 86502

URL: http://svn.digium.com/view/asterisk?view=rev&rev=86502
Log:
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:
    branches/1.4/main/app.c

Modified: branches/1.4/main/app.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/app.c?view=diff&rev=86502&r1=86501&r2=86502
==============================================================================
--- branches/1.4/main/app.c (original)
+++ branches/1.4/main/app.c Fri Oct 19 11:38:29 2007
@@ -448,6 +448,10 @@
 		if (stop && strchr(stop, res))
 			break;
 	}
+
+	/* 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