diff -x '*.o_a' -x '*.so' -x '*menuselect*' -x '*.a' --exclude '*.o' --exclude '*.svn' --exclude '*xml*' -rup asterisk-trunk-69845-untouched/include/asterisk/cli.h asterisk-trunk/include/asterisk/cli.h --- asterisk-trunk-69845-untouched/include/asterisk/cli.h 2007-06-25 10:23:08.000000000 +0100 +++ asterisk-trunk/include/asterisk/cli.h 2007-06-25 10:04:28.000000000 +0100 @@ -34,6 +34,7 @@ extern "C" { void ast_cli(int fd, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); +#define RESULT_WARNING -1 #define RESULT_SUCCESS 0 #define RESULT_SHOWUSAGE 1 #define RESULT_FAILURE 2 @@ -41,6 +42,7 @@ void ast_cli(int fd, const char *fmt, .. #define CLI_SUCCESS (char *)RESULT_SUCCESS #define CLI_SHOWUSAGE (char *)RESULT_SHOWUSAGE #define CLI_FAILURE (char *)RESULT_FAILURE +#define CLI_WARNING (char *)RESULT_WARNING #define AST_MAX_CMD_LEN 16 diff -x '*.o_a' -x '*.so' -x '*menuselect*' -x '*.a' --exclude '*.o' --exclude '*.svn' --exclude '*xml*' -rup asterisk-trunk-69845-untouched/res/res_agi.c asterisk-trunk/res/res_agi.c --- asterisk-trunk-69845-untouched/res/res_agi.c 2007-06-25 10:23:43.000000000 +0100 +++ asterisk-trunk/res/res_agi.c 2007-06-25 10:05:43.000000000 +0100 @@ -612,7 +612,7 @@ static int handle_streamfile(struct ast_ return RESULT_SUCCESS; } fdprintf(agi->fd, "200 result=%d endpos=%ld\n", res, sample_offset); - return (res >= 0) ? RESULT_SUCCESS : RESULT_FAILURE; + return (res >= 0) ? RESULT_SUCCESS : RESULT_WARNING; } /* get option - really similar to the handle_streamfile, but with a timeout */