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"
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 | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
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 struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Silly NBS Stream Application" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "ac1f6a56484a8820659555499174e588" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, } |
static char * | app = "NBScat" |
static struct ast_module_info * | ast_module_info = &__mod_info |
Silly application to play an NBScat file – uses nbscat8k.
Definition in file app_nbscat.c.
#define AF_LOCAL AF_UNIX |
Definition at line 67 of file app_nbscat.c.
Referenced by NBScat_exec().
#define LOCAL_NBSCAT "/usr/local/bin/nbscat8k" |
Definition at line 63 of file app_nbscat.c.
Referenced by NBScatplay().
#define NBSCAT "/usr/bin/nbscat8k" |
Definition at line 64 of file app_nbscat.c.
Referenced by NBScatplay().
|
static |
Definition at line 220 of file app_nbscat.c.
|
static |
Definition at line 220 of file app_nbscat.c.
|
static |
Definition at line 215 of file app_nbscat.c.
References ast_register_application_xml, and NBScat_exec().
|
static |
Definition at line 112 of file app_nbscat.c.
References AF_LOCAL, ast_debug, AST_FORMAT_SLINEAR, 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(), f, ast_frame::frametype, LOG_WARNING, NBScatplay(), ast_frame::offset, timed_read(), and ast_channel::writeformat.
Referenced by load_module().
|
static |
Definition at line 72 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, and NBSCAT.
Referenced by NBScat_exec().
|
static |
Definition at line 97 of file app_nbscat.c.
References ast_log(), ast_poll, and LOG_NOTICE.
Referenced by NBScat_exec().
|
static |
Definition at line 210 of file app_nbscat.c.
References ast_unregister_application().
|
static |
Definition at line 220 of file app_nbscat.c.
|
static |
Definition at line 70 of file app_nbscat.c.
|
static |
Definition at line 220 of file app_nbscat.c.