mohclass Struct Reference

Collaboration diagram for mohclass:

Collaboration graph
[legend]

Data Fields

int allowed_files
char announcement [256]
char args [256]
unsigned int delete:1
char digit
char dir [256]
char ** filearray
unsigned int flags
struct ast_formatformat
struct {
   struct mohclass *   next
list
struct {
   struct mohdata *   first
   struct mohdata *   last
members
char mode [80]
char name [MAX_MUSICCLASS]
int pid
unsigned int realtime:1
int srcfd
time_t start
pthread_t thread
struct ast_timertimer
int total_files

Detailed Description

Definition at line 163 of file res_musiconhold.c.


Field Documentation

The current size of the filearray

Definition at line 173 of file res_musiconhold.c.

char announcement[256]

Definition at line 167 of file res_musiconhold.c.

Referenced by ast_moh_files_next().

char args[256]

unsigned int delete

Definition at line 189 of file res_musiconhold.c.

char digit

Definition at line 169 of file res_musiconhold.c.

Referenced by moh_digit_match(), and moh_parse_options().

char dir[256]

Definition at line 165 of file res_musiconhold.c.

Referenced by local_ast_moh_start(), moh_diff(), moh_parse_options(), and spawn_mp3().

char** filearray

A dynamically sized array to hold the list of filenames in "files" mode

Definition at line 171 of file res_musiconhold.c.

Referenced by ast_moh_files_next().

struct mohdata* first [read]

Definition at line 190 of file res_musiconhold.c.

unsigned int flags

Definition at line 176 of file res_musiconhold.c.

Referenced by _get_mohbyname(), moh_diff(), and mohalloc().

struct ast_format* format [read]

The format from the MOH source, not applicable to "files" mode

Definition at line 178 of file res_musiconhold.c.

Referenced by _moh_class_malloc(), moh_alloc(), moh_generate(), moh_parse_options(), and mohalloc().

struct mohdata* last [read]

Definition at line 190 of file res_musiconhold.c.

struct { ... } list

struct { ... } members

Referenced by moh_release(), and mohalloc().

char mode[80]

char name[MAX_MUSICCLASS]

struct mohclass* next [read]

Definition at line 191 of file res_musiconhold.c.

int pid

The pid of the external application delivering MOH

Definition at line 180 of file res_musiconhold.c.

Referenced by moh_class_destructor().

unsigned int realtime

Created on the fly, from RT engine

Definition at line 188 of file res_musiconhold.c.

Referenced by local_ast_moh_start().

int srcfd

Source of audio

Definition at line 184 of file res_musiconhold.c.

Referenced by local_ast_moh_start().

time_t start

Definition at line 181 of file res_musiconhold.c.

Referenced by _moh_register(), and local_ast_moh_start().

pthread_t thread

Definition at line 182 of file res_musiconhold.c.

Referenced by local_ast_moh_start().

struct ast_timer* timer [read]

Generic timer

Definition at line 186 of file res_musiconhold.c.

Referenced by local_ast_moh_start().

The current number of files loaded into the filearray

Definition at line 175 of file res_musiconhold.c.

Referenced by ast_moh_files_next(), local_ast_moh_start(), and moh_files_alloc().


The documentation for this struct was generated from the following file:

Generated on Thu Apr 16 06:36:54 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6