Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
Internal channel functions for channel.c to use. More...
Go to the source code of this file.
Macros | |
#define | ast_channel_internal_alloc(destructor, assignedid, requestor) __ast_channel_internal_alloc(destructor, assignedid, requestor, __FILE__, __LINE__, __PRETTY_FUNCTION__) |
Internal channel functions for channel.c to use.
Definition in file channel_internal.h.
#define ast_channel_internal_alloc | ( | destructor, | |
assignedid, | |||
requestor | |||
) | __ast_channel_internal_alloc(destructor, assignedid, requestor, __FILE__, __LINE__, __PRETTY_FUNCTION__) |
Definition at line 24 of file channel_internal.h.
struct ast_channel * __ast_channel_internal_alloc | ( | void(*)(void *obj) | destructor, |
const struct ast_assigned_ids * | assignedids, | ||
const struct ast_channel * | requestor, | ||
const char * | file, | ||
int | line, | ||
const char * | function | ||
) |
Definition at line 1410 of file channel_internal_api.c.
References __ast_channel_internal_alloc_with_initializers(), make_ari_stubs::file, and NULL.
Referenced by __ast_dummy_channel_alloc().
struct ast_channel * __ast_channel_internal_alloc_with_initializers | ( | void(*)(void *obj) | destructor, |
const struct ast_assigned_ids * | assignedids, | ||
const struct ast_channel * | requestor, | ||
const struct ast_channel_initializers * | initializers, | ||
const char * | file, | ||
int | line, | ||
const char * | function | ||
) |
Definition at line 1333 of file channel_internal_api.c.
References __ao2_alloc(), AO2_ALLOC_OPT_LOCK_MUTEX, ao2_container_alloc_hash, ast_atomic_fetchadd_int(), AST_CHANNEL_INITIALIZERS_VERSION, ast_channel_unref, ast_config_AST_SYSTEM_NAME, ast_copy_string(), AST_FLAGS_ALL, ast_log, AST_MAX_FDS, ast_set_flag, ast_string_field_init, ast_strlen_zero(), AST_VECTOR_INIT, DIALED_CAUSES_BUCKETS, make_ari_stubs::file, ast_channel::linkedid, LOG_ERROR, NULL, pvt_cause_cmp_fn(), pvt_cause_hash_fn(), ast_channel_initializers::tenantid, tmp(), ast_assigned_ids::uniqueid, uniqueint, and ast_channel_initializers::version.
Referenced by __ast_channel_alloc_ap(), and __ast_channel_internal_alloc().
void ast_channel_internal_cleanup | ( | struct ast_channel * | chan | ) |
Definition at line 1500 of file channel_internal_api.c.
References ao2_cleanup, ao2_t_ref, ast_channel_internal_set_stream_topology(), ast_string_field_free_memory, AST_VECTOR_FREE, ast_channel::channel_forward, ast_channel::dialed_causes, ast_channel::endpoint_forward, ast_channel::fds, NULL, stasis_forward_cancel(), and ast_channel::topic.
Referenced by ast_channel_destructor(), and ast_dummy_channel_destructor().
enum ast_channel_error ast_channel_internal_errno | ( | void | ) |
Definition at line 1602 of file channel_internal_api.c.
References AST_CHANNEL_ERROR_UNKNOWN, ast_threadstorage_get(), and channel_errno.
Referenced by ast_channel_errno().
void ast_channel_internal_errno_set | ( | enum ast_channel_error | error | ) |
Definition at line 1592 of file channel_internal_api.c.
References ast_threadstorage_get(), channel_errno, and error().
Referenced by __ast_channel_alloc_ap().
void ast_channel_internal_finalize | ( | struct ast_channel * | chan | ) |
Definition at line 1521 of file channel_internal_api.c.
References ast_channel::finalized.
Referenced by __ast_channel_alloc_ap().
int ast_channel_internal_is_finalized | ( | struct ast_channel * | chan | ) |
Definition at line 1526 of file channel_internal_api.c.
References ast_channel::finalized.
Referenced by ast_channel_destructor().
void ast_channel_internal_set_stream_topology | ( | struct ast_channel * | chan, |
struct ast_stream_topology * | topology | ||
) |
Definition at line 659 of file channel_internal_api.c.
References ast_stream_topology_free(), channel_set_default_streams(), and ast_channel::stream_topology.
Referenced by __ast_channel_alloc_ap(), ast_channel_internal_cleanup(), ast_channel_nativeformats_set(), and ast_channel_set_stream_topology().
void ast_channel_internal_set_stream_topology_change_source | ( | struct ast_channel * | chan, |
void * | change_source | ||
) |
Definition at line 667 of file channel_internal_api.c.
References ast_channel::stream_topology_change_source.
Referenced by ast_channel_request_stream_topology_change(), and ast_channel_stream_topology_changed_externally().
int ast_channel_internal_setup_topics | ( | struct ast_channel * | chan | ) |
Definition at line 1556 of file channel_internal_api.c.
References ao2_ref, ast_asprintf, ast_assert, ast_atomic_fetchadd_int(), ast_channel_topic(), ast_channel_topic_all(), ast_free, ast_strlen_zero(), ast_channel::channel_forward, NULL, stasis_forward_all(), stasis_topic_create(), ast_channel::topic, ast_channel_id::unique_id, and ast_channel::uniqueid.
Referenced by __ast_channel_alloc_ap(), and __ast_dummy_channel_alloc().
void ast_channel_internal_swap_stream_topology | ( | struct ast_channel * | chan1, |
struct ast_channel * | chan2 | ||
) |
Definition at line 1657 of file channel_internal_api.c.
References ast_assert, channel_set_default_streams(), NULL, and ast_channel::stream_topology.
Referenced by channel_do_masquerade().