VMCOUNT dialplan function.  
More...
Go to the source code of this file.
◆ __reg_module()
  
  | 
        
          | static void __reg_module | ( | void |  | ) |  |  | static | 
 
 
◆ __unreg_module()
  
  | 
        
          | static void __unreg_module | ( | void |  | ) |  |  | static | 
 
 
◆ acf_vmcount_exec()
  
  | 
        
          | static int acf_vmcount_exec | ( | struct ast_channel * | chan, |  
          |  |  | const char * | cmd, |  
          |  |  | char * | argsstr, |  
          |  |  | char * | buf, |  
          |  |  | size_t | len |  
          |  | ) |  |  |  | static | 
 
Definition at line 75 of file func_vmcount.c.
   76{
   82    );
   83 
   85 
   87        return -1;
   88 
   90 
   92        return -1;
   93    }
   94 
   96        args.folder = 
"INBOX";
 
   97    }
   98 
  102            continue;
  103        }
  106    }
  108 
  109    return 0;
  110}
char * strsep(char **str, const char *delims)
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
#define AST_APP_ARG(name)
Define an application argument.
int ast_app_messagecount(const char *mailbox_id, const char *folder)
Get the number of messages in a given mailbox folder.
#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.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
References args, AST_APP_ARG, ast_app_messagecount(), AST_DECLARE_APP_ARGS, AST_STANDARD_APP_ARGS, ast_strlen_zero(), buf, c, len(), NULL, strsep(), and total.
 
 
◆ AST_MODULE_SELF_SYM()
◆ load_module()
  
  | 
        
          | static int load_module | ( | void |  | ) |  |  | static | 
 
 
◆ unload_module()
  
  | 
        
          | static int unload_module | ( | void |  | ) |  |  | static | 
 
 
◆ __mod_info
◆ acf_vmcount
Initial value:= {
    .name = "VMCOUNT",
    .read_max = 12,
}
static int acf_vmcount_exec(struct ast_channel *chan, const char *cmd, char *argsstr, char *buf, size_t len)
Definition at line 112 of file func_vmcount.c.
  112                                                {
  113    .name = "VMCOUNT",
  115    .read_max = 12,
  116};
Referenced by load_module(), and unload_module().
 
 
◆ ast_module_info