Asterisk - The Open Source Telephony Project
18.5.0
|
Execute an ISDN RAS. More...
#include "asterisk.h"
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <signal.h>
#include <fcntl.h>
#include <dahdi/user.h>
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/app.h"
Go to the source code of this file.
Macros | |
#define | PPP_EXEC "/usr/sbin/pppd" |
#define | PPP_MAX_ARGS 32 |
Functions | |
AST_MODULE_INFO_STANDARD_DEPRECATED (ASTERISK_GPL_KEY, "DAHDI ISDN Remote Access Server") | |
static int | dahdiras_exec (struct ast_channel *chan, const char *data) |
static int | load_module (void) |
static void | run_ras (struct ast_channel *chan, char *args) |
static pid_t | spawn_ras (struct ast_channel *chan, char *args) |
static int | unload_module (void) |
Variables | |
static const char | app [] = "DAHDIRAS" |
Execute an ISDN RAS.
Definition in file app_dahdiras.c.
#define PPP_EXEC "/usr/sbin/pppd" |
Definition at line 73 of file app_dahdiras.c.
Referenced by spawn_ras().
#define PPP_MAX_ARGS 32 |
Definition at line 72 of file app_dahdiras.c.
Referenced by spawn_ras().
AST_MODULE_INFO_STANDARD_DEPRECATED | ( | ASTERISK_GPL_KEY | , |
"DAHDI ISDN Remote Access Server" | |||
) |
Referenced by load_module().
|
static |
Definition at line 186 of file app_dahdiras.c.
References args, ast_answer(), ast_channel_fd(), ast_channel_name(), ast_channel_tech(), ast_log, AST_STATE_UP, ast_strdupa, ast_verb, LOG_WARNING, run_ras(), and type.
Referenced by load_module().
|
static |
Definition at line 226 of file app_dahdiras.c.
References app, AST_MODULE_INFO_STANDARD_DEPRECATED(), AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_register_application_xml, ASTERISK_GPL_KEY, and dahdiras_exec().
|
static |
Definition at line 128 of file app_dahdiras.c.
References ast_channel_fd(), ast_channel_name(), ast_check_hangup(), ast_debug, ast_log, ast_safe_fork_cleanup(), ast_verb, errno, LOG_WARNING, spawn_ras(), status, WEXITSTATUS, and WIFEXITED.
Referenced by dahdiras_exec().
|
static |
Definition at line 75 of file app_dahdiras.c.
References args, ast_channel_fd(), ast_close_fds_above_n(), ast_opt_high_priority, ast_safe_fork(), ast_set_priority(), c, NULL, PPP_EXEC, PPP_MAX_ARGS, and strsep().
Referenced by run_ras().
|
static |
Definition at line 221 of file app_dahdiras.c.
References app, and ast_unregister_application().
|
static |
Definition at line 70 of file app_dahdiras.c.
Referenced by load_module(), and unload_module().