Asterisk - The Open Source Telephony Project
18.5.0
|
Silly application to play an NBScat file – uses nbscat8k. More...
#include "asterisk.h"
#include <fcntl.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <signal.h>
#include "asterisk/lock.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include "asterisk/frame.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/translate.h"
#include "asterisk/app.h"
#include "asterisk/format_cache.h"
Go to the source code of this file.
Macros | |
#define | AF_LOCAL AF_UNIX |
#define | LOCAL_NBSCAT "/usr/local/bin/nbscat8k" |
#define | NBSCAT "/usr/bin/nbscat8k" |
Functions | |
AST_MODULE_INFO_STANDARD_DEPRECATED (ASTERISK_GPL_KEY, "Silly NBS Stream Application") | |
static int | load_module (void) |
static int | NBScat_exec (struct ast_channel *chan, const char *data) |
static int | NBScatplay (int fd) |
static int | timed_read (int fd, void *data, int datalen) |
static int | unload_module (void) |
Variables | |
static char * | app = "NBScat" |
Silly application to play an NBScat file – uses nbscat8k.
Definition in file app_nbscat.c.
#define AF_LOCAL AF_UNIX |
Definition at line 66 of file app_nbscat.c.
Referenced by NBScat_exec().
#define LOCAL_NBSCAT "/usr/local/bin/nbscat8k" |
Definition at line 62 of file app_nbscat.c.
Referenced by NBScatplay().
#define NBSCAT "/usr/bin/nbscat8k" |
Definition at line 63 of file app_nbscat.c.
Referenced by NBScatplay().
AST_MODULE_INFO_STANDARD_DEPRECATED | ( | ASTERISK_GPL_KEY | , |
"Silly NBS Stream Application" | |||
) |
Referenced by load_module().
|
static |
Definition at line 218 of file app_nbscat.c.
References app, AST_MODULE_INFO_STANDARD_DEPRECATED(), ast_register_application_xml, ASTERISK_GPL_KEY, and NBScat_exec().
|
static |
Definition at line 111 of file app_nbscat.c.
References AF_LOCAL, ao2_bump, ao2_cleanup, ast_channel_writeformat(), ast_debug, ast_format_slin, AST_FRAME_DTMF, AST_FRAME_VOICE, ast_frfree, AST_FRIENDLY_OFFSET, ast_log, ast_read(), ast_samp2tv(), ast_set_write_format(), ast_stopstream(), ast_tvadd(), ast_tvdiff_ms(), ast_tvnow(), ast_waitfor(), ast_write(), ast_frame::frametype, LOG_WARNING, NBScatplay(), ast_frame::offset, and timed_read().
Referenced by load_module().
|
static |
Definition at line 71 of file app_nbscat.c.
References ast_close_fds_above_n(), ast_log, ast_opt_high_priority, ast_safe_fork(), ast_set_priority(), LOCAL_NBSCAT, LOG_WARNING, NBSCAT, and NULL.
Referenced by NBScat_exec().
|
static |
Definition at line 96 of file app_nbscat.c.
References ast_log, ast_poll, and LOG_NOTICE.
Referenced by NBScat_exec().
|
static |
Definition at line 213 of file app_nbscat.c.
References app, and ast_unregister_application().
|
static |
Definition at line 69 of file app_nbscat.c.
Referenced by load_module(), and unload_module().