From 0cf416f926f032e6065553ae605849aad7d3fb24 Mon Sep 17 00:00:00 2001 From: file Date: Fri, 19 Oct 2007 16:38:29 +0000 Subject: 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/branches/1.4@86502 f38db490-d61c-443f-a65b-d21fe96a405b --- main/app.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main/app.c') diff --git a/main/app.c b/main/app.c index c84bd0f54..9136175ca 100644 --- a/main/app.c +++ b/main/app.c @@ -449,6 +449,10 @@ int ast_control_streamfile(struct ast_channel *chan, const char *file, break; } + /* If we are returning a digit cast it as char */ + if (res > 0 || chan->stream) + res = (char)res; + ast_stopstream(chan); return res; -- cgit v1.2.3