Asterisk - The Open Source Telephony Project  21.4.1
Data Structures | Macros | Enumerations | Functions | Variables
chan_audiosocket.c File Reference

AudioSocket Channel. More...

#include "asterisk.h"
#include <uuid/uuid.h>
#include "asterisk/channel.h"
#include "asterisk/module.h"
#include "asterisk/res_audiosocket.h"
#include "asterisk/pbx.h"
#include "asterisk/acl.h"
#include "asterisk/app.h"
#include "asterisk/causes.h"
#include "asterisk/format_cache.h"

Go to the source code of this file.

Data Structures

struct  audiosocket_instance
 

Macros

#define FD_OUTPUT   1 /* A fd of -1 means an error, 0 is stdin */
 

Enumerations

enum  { OPT_AUDIOSOCKET_CODEC = (1 << 0) }
 
enum  { OPT_ARG_AUDIOSOCKET_CODEC = (1 << 0), OPT_ARG_ARRAY_SIZE }
 

Functions

static void __reg_module (void)
 
static void __unreg_module (void)
 
struct ast_moduleAST_MODULE_SELF_SYM (void)
 
static int audiosocket_call (struct ast_channel *ast, const char *dest, int timeout)
 Function called when we should actually call the destination.
 
static int audiosocket_hangup (struct ast_channel *ast)
 Function called when we should hang the channel up.
 
static struct ast_frameaudiosocket_read (struct ast_channel *ast)
 Function called when we should read a frame from the channel.
 
static struct ast_channelaudiosocket_request (const char *type, struct ast_format_cap *cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *data, int *cause)
 Function called when we should prepare to call the unicast destination.
 
static int audiosocket_write (struct ast_channel *ast, struct ast_frame *f)
 Function called when we should write a frame to the channel.
 
static int load_module (void)
 Function called when our module is loaded.
 
static int unload_module (void)
 Function called when our module is unloaded.
 

Variables

static struct ast_module_info __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "AudioSocket Channel" , .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 = "da6642af068ee5e6490c5b1d2cc1d238" , .support_level = AST_MODULE_SUPPORT_EXTENDED, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_CHANNEL_DRIVER, .requires = "res_audiosocket", }
 
static const struct ast_module_infoast_module_info = &__mod_info
 
static struct ast_channel_tech audiosocket_channel_tech
 
struct audiosocket_instance audiosocket_instance
 
static const struct ast_app_option audiosocket_options [128] = { [ 'c' ] = { .flag = OPT_AUDIOSOCKET_CODEC , .arg_index = OPT_ARG_AUDIOSOCKET_CODEC + 1 }, }
 

Detailed Description

AudioSocket Channel.

Author
Seán C McCord scm@c.nosp@m.ycor.nosp@m.esys..nosp@m.com

Definition in file chan_audiosocket.c.