Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
mohclass Struct Reference
Collaboration diagram for mohclass:
Collaboration graph
[legend]

Data Fields

char announcement [256]
 
char args [256]
 
unsigned int delete:1
 
char digit
 
char dir [256]
 
struct ast_vector_string * files
 
unsigned int flags
 
struct ast_formatformat
 
size_t kill_delay
 
enum kill_methods kill_method
 
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
 

Detailed Description

Definition at line 167 of file res_musiconhold.c.

Field Documentation

◆ announcement

char announcement[256]

◆ args

char args[256]

◆ delete

unsigned int delete

Definition at line 193 of file res_musiconhold.c.

Referenced by moh_class_cmp(), moh_class_mark(), and moh_classes_delete_marked().

◆ digit

char digit

Definition at line 173 of file res_musiconhold.c.

Referenced by moh_digit_match(), and moh_parse_options().

◆ dir

char dir[256]

◆ files

struct ast_vector_string* files

◆ first

struct mohdata* first

Definition at line 194 of file res_musiconhold.c.

◆ flags

unsigned int flags

Definition at line 176 of file res_musiconhold.c.

Referenced by _get_mohbyname(), and moh_diff().

◆ format

struct ast_format* format

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

Definition at line 178 of file res_musiconhold.c.

Referenced by handle_cli_moh_show_classes(), moh_alloc(), moh_class_destructor(), moh_generate(), moh_parse_options(), mohalloc(), and monmp3thread().

◆ kill_delay

size_t kill_delay

Millisecond delay between kill attempts

Definition at line 184 of file res_musiconhold.c.

Referenced by handle_cli_moh_show_classes(), moh_class_destructor(), moh_parse_options(), and monmp3thread().

◆ kill_method

enum kill_methods kill_method

◆ last

struct mohdata* last

Definition at line 194 of file res_musiconhold.c.

◆ list

struct { ... } list

◆ members

struct { ... } members

◆ mode

char mode[80]

◆ name

char name[MAX_MUSICCLASS]

◆ next

struct mohclass* next

Definition at line 195 of file res_musiconhold.c.

◆ pid

int pid

The pid of the external application delivering MOH

Definition at line 180 of file res_musiconhold.c.

Referenced by moh_class_destructor(), monmp3thread(), and spawn_mp3().

◆ realtime

unsigned int realtime

Created on the fly, from RT engine

Definition at line 192 of file res_musiconhold.c.

Referenced by complete_mohclass_realtime(), handle_cli_moh_unregister_class(), local_ast_moh_start(), and moh_class_mark().

◆ srcfd

int srcfd

Source of audio

Definition at line 188 of file res_musiconhold.c.

Referenced by local_ast_moh_start(), moh_class_destructor(), and monmp3thread().

◆ start

time_t start

Definition at line 181 of file res_musiconhold.c.

Referenced by _moh_register(), local_ast_moh_start(), and spawn_mp3().

◆ thread

pthread_t thread

Definition at line 182 of file res_musiconhold.c.

Referenced by init_app_class(), local_ast_moh_start(), and moh_class_destructor().

◆ timer

struct ast_timer* timer

Generic timer

Definition at line 190 of file res_musiconhold.c.

Referenced by init_app_class(), local_ast_moh_start(), moh_class_destructor(), and monmp3thread().


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