2012-03-13 21:24:13 +00:00
|
|
|
/*
|
|
|
|
* Asterisk -- An open source telephony toolkit.
|
|
|
|
*
|
|
|
|
* Copyright (C) 1999 - 2012, Digium, Inc.
|
|
|
|
*
|
|
|
|
* See http://www.asterisk.org for more information about
|
|
|
|
* the Asterisk project. Please do not directly contact
|
|
|
|
* any of the maintainers of this project for assistance;
|
|
|
|
* the project provides a web site, mailing lists and IRC
|
|
|
|
* channels for your use.
|
|
|
|
*
|
|
|
|
* This program is free software, distributed under the terms of
|
|
|
|
* the GNU General Public License Version 2. See the LICENSE file
|
|
|
|
* at the top of the source tree.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*! \file
|
|
|
|
* \brief Internal channel functions for channel.c to use
|
|
|
|
*/
|
|
|
|
|
2019-10-23 12:36:17 -05:00
|
|
|
#ifndef ASTERISK_CHANNEL_INTERNAL_H
|
|
|
|
#define ASTERISK_CHANNEL_INTERNAL_H
|
|
|
|
|
uniqueid: channel linkedid, ami, ari object creation with id's
Much needed was a way to assign id to objects on creation, and
much change was necessary to accomplish it. Channel uniqueids
and linkedids are split into separate string and creation time
components without breaking linkedid propgation. This allowed
the uniqueid to be specified by the user interface - and those
values are now carried through to channel creation, adding the
assignedids value to every function in the chain including the
channel drivers. For local channels, the second channel can be
specified or left to default to a ;2 suffix of first. In ARI,
bridge, playback, and snoop objects can also be created with a
specified uniqueid.
Along the way, the args order to allocating channels was fixed
in chan_mgcp and chan_gtalk, and linkedid is no longer lost as
masquerade occurs.
(closes issue ASTERISK-23120)
Review: https://reviewboard.asterisk.org/r/3191/
........
Merged revisions 410157 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@410158 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2014-03-07 15:47:55 +00:00
|
|
|
#define ast_channel_internal_alloc(destructor, assignedid, requestor) __ast_channel_internal_alloc(destructor, assignedid, requestor, __FILE__, __LINE__, __PRETTY_FUNCTION__)
|
|
|
|
struct ast_channel *__ast_channel_internal_alloc(void (*destructor)(void *obj), const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *file, int line, const char *function);
|
2012-03-13 21:24:13 +00:00
|
|
|
void ast_channel_internal_finalize(struct ast_channel *chan);
|
|
|
|
int ast_channel_internal_is_finalized(struct ast_channel *chan);
|
|
|
|
void ast_channel_internal_cleanup(struct ast_channel *chan);
|
2013-08-01 13:49:34 +00:00
|
|
|
int ast_channel_internal_setup_topics(struct ast_channel *chan);
|
2012-03-13 21:24:13 +00:00
|
|
|
|
2016-10-17 14:18:57 -05:00
|
|
|
void ast_channel_internal_errno_set(enum ast_channel_error error);
|
|
|
|
enum ast_channel_error ast_channel_internal_errno(void);
|
2017-02-13 10:50:47 -07:00
|
|
|
void ast_channel_internal_set_stream_topology(struct ast_channel *chan,
|
|
|
|
struct ast_stream_topology *topology);
|
2017-04-25 11:49:16 -05:00
|
|
|
void ast_channel_internal_set_stream_topology_change_source(
|
|
|
|
struct ast_channel *chan, void *change_source);
|
2017-02-13 10:50:47 -07:00
|
|
|
void ast_channel_internal_swap_stream_topology(struct ast_channel *chan1,
|
|
|
|
struct ast_channel *chan2);
|
2019-10-23 12:36:17 -05:00
|
|
|
|
|
|
|
#endif /* ASTERISK_CHANNEL_INTERNAL_H */
|