37 #include <dahdi/user.h>
64 static char *
app =
"Flash";
70 i = DAHDI_IOMUX_SIGEVENT;
71 if (ioctl(fd, DAHDI_IOMUX, &i) == -1)
return -1;
72 if (ioctl(fd, DAHDI_GETEVENT, &j) == -1)
return -1;
80 struct dahdi_params dahdip;
82 if (strcasecmp(chan->
tech->
type,
"DAHDI")) {
87 memset(&dahdip, 0,
sizeof(dahdip));
88 res = ioctl(chan->
fds[0], DAHDI_GET_PARAMS, &dahdip);
90 if (dahdip.sigtype & __DAHDI_SIG_FXS) {
92 res = ioctl(chan->
fds[0], DAHDI_HOOK, &x);
93 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)
const ast_string_field name
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
struct ast_channel_tech * tech
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.