35#include <dahdi/user.h>
62static 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)) {
static int dahdi_wait_event(int fd)
static int flash_exec(struct ast_channel *chan, const char *data)
static int load_module(void)
static int unload_module(void)
Asterisk main include file. File version handling, generic pbx functions.
General Asterisk PBX channel definitions.
const char * ast_channel_name(const struct ast_channel *chan)
int ast_channel_fd(const struct ast_channel *chan, int which)
const struct ast_channel_tech * ast_channel_tech(const struct ast_channel *chan)
int ast_safe_sleep(struct ast_channel *chan, int ms)
Wait for a specified amount of time, looking for hangups.
Generic File Format Support. Should be included by clients of the file handling routines....
General Asterisk channel definitions for image handling.
#define ast_verb(level,...)
Asterisk locking-related definitions:
Asterisk module definitions.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
#define ASTERISK_GPL_KEY
The text the key() function should return.
int ast_unregister_application(const char *app)
Unregister an application.
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
Core PBX routines and definitions.
Main Channel structure associated with a channel.
Support for translation of data formats. translate.c.