Multicast RTP Paging Channel. More...
#include "asterisk.h"
#include <fcntl.h>
#include <sys/signal.h>
#include "asterisk/lock.h"
#include "asterisk/channel.h"
#include "asterisk/config.h"
#include "asterisk/module.h"
#include "asterisk/pbx.h"
#include "asterisk/sched.h"
#include "asterisk/io.h"
#include "asterisk/acl.h"
#include "asterisk/callerid.h"
#include "asterisk/file.h"
#include "asterisk/cli.h"
#include "asterisk/app.h"
#include "asterisk/rtp_engine.h"
#include "asterisk/causes.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
static int | load_module (void) |
Function called when our module is loaded. More... | |
static int | multicast_rtp_call (struct ast_channel *ast, char *dest, int timeout) |
Function called when we should actually call the destination. More... | |
static int | multicast_rtp_hangup (struct ast_channel *ast) |
Function called when we should hang the channel up. More... | |
static struct ast_frame * | multicast_rtp_read (struct ast_channel *ast) |
Function called when we should read a frame from the channel. More... | |
static struct ast_channel * | multicast_rtp_request (const char *type, format_t format, const struct ast_channel *requestor, void *data, int *cause) |
Function called when we should prepare to call the destination. More... | |
static int | multicast_rtp_write (struct ast_channel *ast, struct ast_frame *f) |
Function called when we should write a frame to the channel. More... | |
static int | unload_module (void) |
Function called when our module is unloaded. More... | |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Multicast RTP Paging 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 = "ac1f6a56484a8820659555499174e588" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_CHANNEL_DRIVER, } |
static struct ast_module_info * | ast_module_info = &__mod_info |
static struct ast_channel_tech | multicast_rtp_tech |
static const char | tdesc [] = "Multicast RTP Paging Channel Driver" |
Multicast RTP Paging Channel.
Definition in file chan_multicast_rtp.c.
|
static |
Definition at line 197 of file chan_multicast_rtp.c.
|
static |
Definition at line 197 of file chan_multicast_rtp.c.
|
static |
Function called when our module is loaded.
Definition at line 175 of file chan_multicast_rtp.c.
References ast_channel_register(), ast_log(), AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, and LOG_ERROR.
|
static |
Function called when we should actually call the destination.
Definition at line 92 of file chan_multicast_rtp.c.
References AST_CONTROL_ANSWER, ast_queue_control(), ast_rtp_instance_activate(), and ast_channel::tech_pvt.
|
static |
Function called when we should hang the channel up.
Definition at line 102 of file chan_multicast_rtp.c.
References ast_rtp_instance_destroy(), and ast_channel::tech_pvt.
|
static |
Function called when we should read a frame from the channel.
Definition at line 78 of file chan_multicast_rtp.c.
References ast_null_frame.
|
static |
Function called when we should prepare to call the destination.
Definition at line 114 of file chan_multicast_rtp.c.
References ast_best_codec(), AST_CAUSE_FAILURE, ast_channel_alloc(), ast_rtp_instance_destroy(), ast_rtp_instance_new(), ast_rtp_instance_set_remote_address(), ast_sockaddr_parse(), ast_sockaddr_setnull(), AST_STATE_DOWN, ast_strdupa, ast_strlen_zero(), ast_channel::linkedid, multicast_rtp_tech, ast_channel::nativeformats, PARSE_PORT_REQUIRE, ast_channel::rawreadformat, ast_channel::rawwriteformat, ast_channel::readformat, ast_channel::tech, ast_channel::tech_pvt, and ast_channel::writeformat.
|
static |
Function called when we should write a frame to the channel.
Definition at line 84 of file chan_multicast_rtp.c.
References ast_rtp_instance_write(), and ast_channel::tech_pvt.
|
static |
Function called when our module is unloaded.
Definition at line 186 of file chan_multicast_rtp.c.
References ast_channel_unregister().
|
static |
Definition at line 197 of file chan_multicast_rtp.c.
|
static |
Definition at line 197 of file chan_multicast_rtp.c.
|
static |
Definition at line 66 of file chan_multicast_rtp.c.
Referenced by multicast_rtp_request().
|
static |
Definition at line 56 of file chan_multicast_rtp.c.