Mon Oct 8 12:39:32 2012

Asterisk developer's documentation


mohclass Struct Reference


Data Fields

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

Detailed Description

Definition at line 181 of file res_musiconhold.c.


Field Documentation

int allowed_files

The current size of the filearray

Definition at line 190 of file res_musiconhold.c.

Referenced by moh_add_file().

char args[256]

Definition at line 184 of file res_musiconhold.c.

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

unsigned int delete

Definition at line 206 of file res_musiconhold.c.

char digit

Definition at line 186 of file res_musiconhold.c.

Referenced by local_ast_moh_start().

char dir[256]

Definition at line 183 of file res_musiconhold.c.

Referenced by init_files_class(), local_ast_moh_start(), moh_diff(), moh_scan_files(), and spawn_mp3().

char** filearray

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

Definition at line 188 of file res_musiconhold.c.

Referenced by moh_add_file(), and moh_scan_files().

struct mohdata* first

Definition at line 207 of file res_musiconhold.c.

unsigned int flags

Definition at line 193 of file res_musiconhold.c.

Referenced by _get_mohbyname(), and moh_diff().

format_t format

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

Definition at line 195 of file res_musiconhold.c.

Referenced by _moh_class_malloc(), local_ast_moh_start(), moh_alloc(), and mohalloc().

struct mohdata* last

Definition at line 207 of file res_musiconhold.c.

struct { ... } list

struct { ... } members

Referenced by mohalloc().

char mode[80]

Definition at line 185 of file res_musiconhold.c.

Referenced by init_app_class(), local_ast_moh_start(), moh_diff(), and moh_rescan_files().

char name[MAX_MUSICCLASS]

Definition at line 182 of file res_musiconhold.c.

Referenced by _get_mohbyname(), init_files_class(), local_ast_moh_start(), moh_alloc(), and moh_scan_files().

struct mohclass* next

Definition at line 208 of file res_musiconhold.c.

int pid

The pid of the external application delivering MOH

Definition at line 197 of file res_musiconhold.c.

Referenced by spawn_mp3().

unsigned int realtime

Created on the fly, from RT engine

Definition at line 205 of file res_musiconhold.c.

Referenced by local_ast_moh_start().

int srcfd

Source of audio

Definition at line 201 of file res_musiconhold.c.

Referenced by local_ast_moh_start().

time_t start

Definition at line 198 of file res_musiconhold.c.

Referenced by local_ast_moh_start(), and spawn_mp3().

pthread_t thread

Definition at line 199 of file res_musiconhold.c.

Referenced by init_app_class(), and local_ast_moh_start().

struct ast_timer* timer

Generic timer

Definition at line 203 of file res_musiconhold.c.

Referenced by init_app_class(), and local_ast_moh_start().

int total_files

The current number of files loaded into the filearray

Definition at line 192 of file res_musiconhold.c.

Referenced by moh_add_file(), and moh_scan_files().


The documentation for this struct was generated from the following file:
Generated on Mon Oct 8 12:39:32 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7