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

Data Fields

struct ast_audiohook audiohook
 audiohook used as a callback into this module More...
 
char * context
 
unsigned char disabled
 
char * exten
 
unsigned int hook_id
 
unsigned int interval
 
struct timeval last_hook
 

Detailed Description

State put in a datastore to track the state of the hook

Definition at line 107 of file func_periodic_hook.c.

Field Documentation

◆ audiohook

struct ast_audiohook audiohook

audiohook used as a callback into this module

Note
The code assumes this is the first element in the struct

Definition at line 113 of file func_periodic_hook.c.

Referenced by hook_datastore_destroy_callback(), hook_state_alloc(), and init_hook().

◆ context

char* context

Dialplan context for the hook

Definition at line 119 of file func_periodic_hook.c.

Referenced by hook_datastore_destroy_callback(), hook_on(), hook_state_alloc(), and hook_thread_arg_alloc().

◆ disabled

unsigned char disabled

Non-zero if the hook is currently disabled

Definition at line 125 of file func_periodic_hook.c.

Referenced by hook_callback(), hook_off(), and hook_re_enable().

◆ exten

char* exten

Dialplan extension for the hook

Definition at line 121 of file func_periodic_hook.c.

Referenced by hook_datastore_destroy_callback(), hook_on(), hook_state_alloc(), and hook_thread_arg_alloc().

◆ hook_id

unsigned int hook_id

Hook ID

Definition at line 123 of file func_periodic_hook.c.

Referenced by hook_launch_thread(), hook_read(), hook_state_alloc(), and hook_thread_arg_alloc().

◆ interval

unsigned int interval

Seconds between each hook run

Definition at line 115 of file func_periodic_hook.c.

Referenced by ast_beep_start(), hook_callback(), hook_on(), and hook_state_alloc().

◆ last_hook

struct timeval last_hook

The last time the hook ran

Definition at line 117 of file func_periodic_hook.c.

Referenced by hook_callback().


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