35 #include <dahdi/user.h> 62 static char *
app =
"Flash";
68 i = DAHDI_IOMUX_SIGEVENT;
69 if (ioctl(fd, DAHDI_IOMUX, &i) == -1)
return -1;
70 if (ioctl(fd, DAHDI_GETEVENT, &j) == -1)
return -1;
78 struct dahdi_params dahdip;
85 memset(&dahdip, 0,
sizeof(dahdip));
88 if (dahdip.sigtype & __DAHDI_SIG_FXS) {
91 if (!res || (
errno == EINPROGRESS)) {
int ast_safe_sleep(struct ast_channel *chan, int ms)
Wait for a specified amount of time, looking for hangups.
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
Asterisk locking-related definitions:
Asterisk main include file. File version handling, generic pbx functions.
Support for translation of data formats. translate.c.
static int flash_exec(struct ast_channel *chan, const char *data)
Generic File Format Support. Should be included by clients of the file handling routines. File service providers should instead include mod_format.h.
int ast_unregister_application(const char *app)
Unregister an application.
#define ast_verb(level,...)
General Asterisk channel definitions for image handling.
static int load_module(void)
General Asterisk PBX channel definitions.
static int unload_module(void)
Core PBX routines and definitions.
static int dahdi_wait_event(int fd)
int ast_channel_fd(const struct ast_channel *chan, int which)
const char * ast_channel_name(const struct ast_channel *chan)
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
const struct ast_channel_tech * ast_channel_tech(const struct ast_channel *chan)
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.