Asterisk - The Open Source Telephony Project GIT-master-f36a736
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 108 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 114 of file func_periodic_hook.c.

Referenced by hook_callback().

◆ context

char* context

Dialplan context for the hook

Definition at line 120 of file func_periodic_hook.c.

◆ disabled

unsigned char disabled

Non-zero if the hook is currently disabled

Definition at line 126 of file func_periodic_hook.c.

◆ exten

char* exten

Dialplan extension for the hook

Definition at line 122 of file func_periodic_hook.c.

Referenced by hook_state_alloc().

◆ hook_id

unsigned int hook_id

Hook ID

Definition at line 124 of file func_periodic_hook.c.

Referenced by hook_off(), hook_read(), and hook_state_alloc().

◆ interval

unsigned int interval

Seconds between each hook run

Definition at line 116 of file func_periodic_hook.c.

Referenced by hook_state_alloc().

◆ last_hook

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: