Asterisk - The Open Source Telephony Project
18.5.0
|
Stream to an icecast server via ICES (see contrib/asterisk-ices.xml) More...
#include "asterisk.h"
#include <signal.h>
#include <fcntl.h>
#include <sys/time.h>
#include "asterisk/paths.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 | path_BIN "/usr/bin/" |
#define | path_LOCAL "/usr/local/bin/" |
Functions | |
AST_MODULE_INFO_STANDARD_DEPRECATED (ASTERISK_GPL_KEY, "Encode and Stream via icecast and ices") | |
static int | ices_exec (struct ast_channel *chan, const char *data) |
static int | icesencode (char *filename, int fd) |
static int | load_module (void) |
static int | unload_module (void) |
Variables | |
static char * | app = "ICES" |
Stream to an icecast server via ICES (see contrib/asterisk-ices.xml)
ICES - http://www.icecast.org/ices.php
Definition in file app_ices.c.
#define path_BIN "/usr/bin/" |
Definition at line 70 of file app_ices.c.
Referenced by icesencode().
#define path_LOCAL "/usr/local/bin/" |
Definition at line 71 of file app_ices.c.
Referenced by icesencode().
AST_MODULE_INFO_STANDARD_DEPRECATED | ( | ASTERISK_GPL_KEY | , |
"Encode and Stream via icecast and ices" | |||
) |
Referenced by load_module().
|
static |
Definition at line 110 of file app_ices.c.
References ao2_bump, ao2_cleanup, ast_answer(), ast_channel_readformat(), ast_config_AST_CONFIG_DIR, ast_copy_string(), ast_debug, ast_fd_set_flags, ast_format_slin, AST_FRAME_VOICE, ast_frfree, ast_log, ast_read(), ast_set_read_format(), AST_STATE_UP, ast_stopstream(), ast_strlen_zero, ast_waitfor(), c, ast_frame::data, ast_frame::datalen, errno, ast_frame::frametype, icesencode(), LOG_WARNING, and ast_frame::ptr.
Referenced by load_module().
|
static |
Definition at line 75 of file app_ices.c.
References ast_close_fds_above_n(), ast_debug, ast_log, ast_opt_high_priority, ast_safe_fork(), ast_set_priority(), LOG_WARNING, path_BIN, path_LOCAL, and SENTINEL.
Referenced by ices_exec().
|
static |
Definition at line 209 of file app_ices.c.
References app, AST_MODULE_INFO_STANDARD_DEPRECATED(), ast_register_application_xml, ASTERISK_GPL_KEY, and ices_exec().
|
static |
Definition at line 204 of file app_ices.c.
References app, and ast_unregister_application().
|
static |
Definition at line 73 of file app_ices.c.
Referenced by load_module(), and unload_module().