fix typo in ast_say_number_full_en (bug #3101)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4516 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Russell Bryant
2004-12-21 20:42:58 +00:00
parent 2ebc21f175
commit 1298f6585d

2
say.c
View File

@@ -579,7 +579,7 @@ static int ast_say_number_full_en(struct ast_channel *chan, int num, char *ints,
}
if (!res) {
if(!ast_streamfile(chan, fn, language)) {
if (audiofd && ctrlfd)
if ((audiofd > -1) && (ctrlfd > -1))
res = ast_waitstream_full(chan, ints, audiofd, ctrlfd);
else
res = ast_waitstream(chan, ints);