diff options
author | Kinsey Moore <kmoore@digium.com> | 2013-08-22 22:33:48 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2013-08-22 22:33:48 +0000 |
commit | 7b032c1adb10d79f8610e88d2baf5cacf3ba9f58 (patch) | |
tree | 7c10a365fa41daaf9ad9bb1535d6ebad188cb406 /include/asterisk/say.h | |
parent | aefebebd37add82bbea2d3423a5fc5f28feb2c60 (diff) |
Add SayAlphaCase and similar functionality for AGI
This adds a new dialplan application, SayAlphaCase, that performs much
the same function as SayAlpha except that it takes additional options
which allow the user to specify whether the case of each letter should
be announced for uppercase, lowercase, or all letters. Similar
functionality has been added to the SAY ALPHA AGI command via an
optional parameter.
Original Patch by: Kevin Scott Adams
Reported by: Kevin Scott Adams
Review: https://reviewboard.asterisk.org/r/2725/
(closes issue ASTERISK-20782)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397493 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/say.h')
-rw-r--r-- | include/asterisk/say.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/asterisk/say.h b/include/asterisk/say.h index fac606aa8..93c525dd2 100644 --- a/include/asterisk/say.h +++ b/include/asterisk/say.h @@ -148,13 +148,23 @@ SAY_EXTERN int (* ast_say_digit_str_full)(struct ast_channel *chan, const char * */ SAY_EXTERN int (* ast_say_full)(struct ast_channel *chan, const char *num, const char *ints, const char *lang, const char *options, int audiofd, int ctrlfd) SAY_INIT(ast_say_full); +/*! + * \brief Controls how ast_say_character_str denotes the case of characters in a string + */ +enum ast_say_case_sensitivity { + AST_SAY_CASE_NONE, /*!< Do not distinguish case on any letters */ + AST_SAY_CASE_LOWER, /*!< Denote case only on lower case letters, upper case is assumed otherwise */ + AST_SAY_CASE_UPPER, /*!< Denote case only on upper case letters, lower case is assumed otherwise */ + AST_SAY_CASE_ALL, /*!< Denote case on all letters, upper and lower */ +}; + /*! \brief * function to pronounce character and phonetic strings */ int ast_say_character_str(struct ast_channel *chan, const char *num, - const char *ints, const char *lang); + const char *ints, const char *lang, enum ast_say_case_sensitivity sensitivity); -SAY_EXTERN int (* ast_say_character_str_full)(struct ast_channel *chan, const char *num, const char *ints, const char *lang, int audiofd, int ctrlfd) SAY_INIT(ast_say_character_str_full); +SAY_EXTERN int (* ast_say_character_str_full)(struct ast_channel *chan, const char *num, const char *ints, const char *lang, enum ast_say_case_sensitivity sensitivity, int audiofd, int ctrlfd) SAY_INIT(ast_say_character_str_full); int ast_say_phonetic_str(struct ast_channel *chan, const char *num, const char *ints, const char *lang); |