From f1c9aafaf37be55a354c041bb12d06a1f288307d Mon Sep 17 00:00:00 2001 From: markster Date: Sun, 9 Jan 2000 19:58:18 +0000 Subject: Version 0.1.3 from FTP git-svn-id: http://svn.digium.com/svn/asterisk/trunk@201 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/file.h | 6 +++--- include/asterisk/options.h | 1 + include/asterisk/say.h | 6 +++--- include/asterisk/vmodem.h | 1 + 4 files changed, 8 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/asterisk/file.h b/include/asterisk/file.h index fe0678f67..25e38e29f 100755 --- a/include/asterisk/file.h +++ b/include/asterisk/file.h @@ -43,14 +43,14 @@ int ast_format_register(char *name, char *exts, int format, int ast_format_unregister(char *name); -/* Start streaming a file */ -int ast_streamfile(struct ast_channel *c, char *filename); +/* Start streaming a file, in the preferred language if possible */ +int ast_streamfile(struct ast_channel *c, char *filename, char *preflang); /* Stop playback of a stream */ int ast_stopstream(struct ast_channel *c); /* See if a given file exists in a given format. If fmt is NULL, any format is accepted.*/ -int ast_fileexists(char *filename, char *fmt); +int ast_fileexists(char *filename, char *fmt, char *preflang); /* Rename a given file in a given format, or if fmt is NULL, then do so for all */ int ast_filerename(char *oldname, char *newname, char *fmt); diff --git a/include/asterisk/options.h b/include/asterisk/options.h index bc7cdbf16..9cd0b5ef9 100755 --- a/include/asterisk/options.h +++ b/include/asterisk/options.h @@ -24,6 +24,7 @@ extern int option_nofork; extern int option_quiet; extern int option_console; extern int fully_booted; +extern char defaultlanguage[]; #define VERBOSE_PREFIX_1 " " #define VERBOSE_PREFIX_2 " == " diff --git a/include/asterisk/say.h b/include/asterisk/say.h index 2d78d2c7d..cc54a060a 100755 --- a/include/asterisk/say.h +++ b/include/asterisk/say.h @@ -21,9 +21,9 @@ extern "C" { #endif -int ast_say_number(struct ast_channel *chan, int num); -int ast_say_digits(struct ast_channel *chan, int num); -int ast_say_digit_str(struct ast_channel *chan, char *num); +int ast_say_number(struct ast_channel *chan, int num, char *lang); +int ast_say_digits(struct ast_channel *chan, int num, char *lang); +int ast_say_digit_str(struct ast_channel *chan, char *num, char *lang); #if defined(__cplusplus) || defined(c_plusplus) } diff --git a/include/asterisk/vmodem.h b/include/asterisk/vmodem.h index a45fbdf71..920bd417d 100755 --- a/include/asterisk/vmodem.h +++ b/include/asterisk/vmodem.h @@ -79,6 +79,7 @@ struct ast_modem_pvt { char context[AST_MAX_EXTENSION]; char cid[AST_MAX_EXTENSION]; /* Caller ID if available */ char initstr[AST_MAX_INIT_STR]; /* Modem initialization String */ + char language[MAX_LANGUAGE]; /* default language */ char response[256]; /* Static response buffer */ struct ast_modem_driver *mc; /* Modem Capability */ struct ast_modem_pvt *next; /* Next channel in list */ -- cgit v1.2.3