Asterisk - The Open Source Telephony Project  21.4.1
Data Fields
hook_state Struct Reference

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 108 of file func_periodic_hook.c.

Field Documentation

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 114 of file func_periodic_hook.c.

char* context

Dialplan context for the hook

Definition at line 120 of file func_periodic_hook.c.

unsigned char disabled

Non-zero if the hook is currently disabled

Definition at line 126 of file func_periodic_hook.c.

char* exten

Dialplan extension for the hook

Definition at line 122 of file func_periodic_hook.c.

unsigned int hook_id

Hook ID

Definition at line 124 of file func_periodic_hook.c.

unsigned int interval

Seconds between each hook run

Definition at line 116 of file func_periodic_hook.c.

struct timeval last_hook

The last time the hook ran

Definition at line 118 of file func_periodic_hook.c.


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