145    if (
args.argc != 2) {
 
  150    if (sscanf(
args.number, 
"%d", &
number) != 1) {
 
  151        ast_log(
LOG_WARNING, 
"First argument must be a number between 0 and 2,147,483,647.\n");
 
 
  169        ast_log(
LOG_WARNING, 
"SayCountedAdj requires two or three arguments (<number>,<adjective>[,<gender>])\n");
 
  181    if (sscanf(
args.number, 
"%d", &
number) != 1) {
 
  182        ast_log(
LOG_WARNING, 
"First argument must be a number between 0 and 2,147,483,647.\n");
 
  187        if (strchr(
"cCfFmMnN", 
args.gender[0])) {
 
  188            ast_log(
LOG_WARNING, 
"SayCountedAdj gender option must be one of 'f', 'm', 'c', or 'n'.\n");
 
 
static int saycountednoun_exec(struct ast_channel *chan, const char *data)
static int saycountedadj_exec(struct ast_channel *chan, const char *data)
static int load_module(void)
static int unload_module(void)
Asterisk main include file. File version handling, generic pbx functions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
Application convenience functions, designed to give consistent look and feel to Asterisk apps.
#define AST_APP_ARG(name)
Define an application argument.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
Support for logging to various files, console and syslog Configuration in file logger....
Asterisk module definitions.
#define ASTERISK_GPL_KEY
The text the key() function should return.
int ast_unregister_application(const char *app)
Unregister an application.
#define AST_MODULE_INFO_STANDARD_EXTENDED(keystr, desc)
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
Say numbers and dates (maybe words one day too)
int ast_say_counted_noun(struct ast_channel *chan, int num, const char *noun)
int ast_say_counted_adjective(struct ast_channel *chan, int num, const char *adjective, const char *gender)
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Main Channel structure associated with a channel.