[asterisk-commits] twilson: branch 1.6.2 r284897 - in /branches/1.6.2: ./ apps/app_chanspy.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 3 11:20:49 CDT 2010


Author: twilson
Date: Fri Sep  3 11:20:45 2010
New Revision: 284897

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=284897
Log:
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.
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/apps/app_chanspy.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
--- branch-1.4-merged (original)
+++ branch-1.4-merged Fri Sep  3 11:20:45 2010
@@ -1,1 +1,1 @@
-/branches/1.4:1-279056,279206,279945,280088,280341,280448,280811,280982,281390,281566,281762,281819,281911,282129,282430,282729,282893,283048,283123,283380,283690,283880,283960,284316,284393,284478,284703,284777
+/branches/1.4:1-279056,279206,279945,280088,280341,280448,280811,280982,281390,281566,281762,281819,281911,282129,282430,282729,282893,283048,283123,283380,283690,283880,283960,284316,284393,284478,284703,284777,284881

Modified: branches/1.6.2/apps/app_chanspy.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/apps/app_chanspy.c?view=diff&rev=284897&r1=284896&r2=284897
==============================================================================
--- branches/1.6.2/apps/app_chanspy.c (original)
+++ branches/1.6.2/apps/app_chanspy.c Fri Sep  3 11:20:45 2010
@@ -962,7 +962,7 @@
 				}
 				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, "");




More information about the asterisk-commits mailing list