#include <switch.h>Include dependency graph for switch_ivr_say.c:
Go to the source code of this file.
Defines | |
| #define | say_file() |
| #define | say_num(num, meth) |
Functions | |
| switch_say_gender_t | switch_ivr_get_say_gender_by_name (const char *name) |
| switch_say_method_t | switch_ivr_get_say_method_by_name (const char *name) |
| switch_say_type_t | switch_ivr_get_say_type_by_name (const char *name) |
| switch_status_t | switch_ivr_say_spell (switch_core_session_t *session, char *tosay, switch_say_args_t *say_args, switch_input_args_t *args) |
| switch_status_t | switch_ivr_say_ip (switch_core_session_t *session, char *tosay, switch_say_callback_t number_func, switch_say_args_t *say_args, switch_input_args_t *args) |
Variables | |
| static char * | SAY_METHOD_NAMES [] |
| static char * | SAY_TYPE_NAMES [] |
| static char * | SAY_GENDER_NAMES [] |
| #define say_file | ( | ) |
Value:
{ \
char tmp[80]; \
switch_status_t tstatus; \
switch_snprintf(tmp, sizeof(tmp), __VA_ARGS__); \
if ((tstatus = \
switch_ivr_play_file(session, NULL, tmp, args)) \
!= SWITCH_STATUS_SUCCESS){ \
return tstatus; \
} \
if (!switch_channel_ready(switch_core_session_get_channel(session))) { \
return SWITCH_STATUS_FALSE; \
}} \
Definition at line 119 of file switch_ivr_say.c.
Referenced by switch_ivr_say_ip(), and switch_ivr_say_spell().
| #define say_num | ( | num, | |||
| meth | ) |
Value:
{ \
char tmp[80]; \
switch_status_t tstatus; \
switch_say_method_t smeth = say_args->method; \
switch_say_type_t stype = say_args->type; \
say_args->type = SST_ITEMS; say_args->method = meth; \
switch_snprintf(tmp, sizeof(tmp), "%u", (unsigned)num); \
if ((tstatus = \
number_func(session, tmp, say_args, args)) \
!= SWITCH_STATUS_SUCCESS) { \
return tstatus; \
} \
say_args->method = smeth; say_args->type = stype; \
} \
Definition at line 153 of file switch_ivr_say.c.
Referenced by switch_ivr_say_ip().
char* SAY_GENDER_NAMES[] [static] |
Initial value:
{
"MASCULINE",
"FEMININE",
"NEUTER",
NULL
}
Definition at line 67 of file switch_ivr_say.c.
Referenced by switch_ivr_get_say_gender_by_name().
char* SAY_METHOD_NAMES[] [static] |
Initial value:
{
"N/A",
"PRONOUNCED",
"ITERATED",
"COUNTED",
"PRONOUNCED_YEAR",
NULL
}
Definition at line 35 of file switch_ivr_say.c.
Referenced by switch_ivr_get_say_method_by_name().
char* SAY_TYPE_NAMES[] [static] |
Initial value:
{
"NUMBER",
"ITEMS",
"PERSONS",
"MESSAGES",
"CURRENCY",
"TIME_MEASUREMENT",
"CURRENT_DATE",
"CURRENT_TIME",
"CURRENT_DATE_TIME",
"TELEPHONE_NUMBER",
"TELEPHONE_EXTENSION",
"URL",
"IP_ADDRESS",
"EMAIL_ADDRESS",
"POSTAL_ADDRESS",
"ACCOUNT_NUMBER",
"NAME_SPELLED",
"NAME_PHONETIC",
"SHORT_DATE_TIME",
NULL
}
Definition at line 44 of file switch_ivr_say.c.
Referenced by switch_ivr_get_say_type_by_name().
1.4.7