diff options
author | Terry Wilson <twilson@digium.com> | 2010-09-03 16:42:53 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2010-09-03 16:42:53 +0000 |
commit | 01aef13e0c62a39d69f1d839b13184db2f3af23f (patch) | |
tree | 09374c008f1f3781354f38f5c881e17a00985e4d /apps | |
parent | 063d1b72cb58086571b51a7312543e8be9436bb1 (diff) |
Merged revisions 284921 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
................
r284921 | twilson | 2010-09-03 11:28:18 -0500 (Fri, 03 Sep 2010) | 19 lines
Merged revisions 284897 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2
................
r284897 | twilson | 2010-09-03 11:20:45 -0500 (Fri, 03 Sep 2010) | 12 lines
Merged revisions 284881 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r284881 | twilson | 2010-09-03 11:10:23 -0500 (Fri, 03 Sep 2010) | 5 lines
Properly detect when a sound file doesn't exist
ast_fileexists returns -1 for error and 0 for a non-existant file. The existing
code treated missing files as though they existed.
........
................
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@284922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_chanspy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_chanspy.c b/apps/app_chanspy.c index 96748e667..f1b509c63 100644 --- a/apps/app_chanspy.c +++ b/apps/app_chanspy.c @@ -927,7 +927,7 @@ static int common_exec(struct ast_channel *chan, struct ast_flags *flags, } if (!ast_test_flag(flags, OPTION_NAME) || res < 0) { if (!ast_test_flag(flags, OPTION_NOTECH)) { - if (ast_fileexists(peer_name, NULL, NULL) != -1) { + if (ast_fileexists(peer_name, NULL, NULL) > 0) { res = ast_streamfile(chan, peer_name, chan->language); if (!res) { res = ast_waitstream(chan, ""); |