mirror of
https://github.com/asterisk/asterisk.git
synced 2026-04-29 02:03:18 +00:00
Don't hang up on a queue caller if the file we attempt to play does not exist.
This also fixes a documentation mistake in file.h that made my original attempt to correct this problem not work correctly. (closes issue #17061) Reported by: RoadKill git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@265089 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -199,7 +199,7 @@ int ast_stopstream(struct ast_channel *c);
|
||||
* \param fmt the format you wish to check (the extension)
|
||||
* \param preflang (the preferred language you wisht to find the file in)
|
||||
* See if a given file exists in a given format. If fmt is NULL, any format is accepted.
|
||||
* Returns -1 if file does not exist, non-zero positive otherwise.
|
||||
* Returns 0 if file does not exist, non-zero positive otherwise.
|
||||
*/
|
||||
int ast_fileexists(const char *filename, const char *fmt, const char *preflang);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user