mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-21 20:56:39 +00:00
Refactor operations to access the stasis cache instead of objects directly when retrieving information.
(closes issue ASTERISK-21883) Review: https://reviewboard.asterisk.org/r/2645/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393831 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -868,6 +868,7 @@ const struct ast_channel_tech *ast_channel_tech(const struct ast_channel *chan)
|
||||
void ast_channel_tech_set(struct ast_channel *chan, const struct ast_channel_tech *value)
|
||||
{
|
||||
chan->tech = value;
|
||||
ast_channel_publish_snapshot(chan);
|
||||
}
|
||||
enum ast_channel_adsicpe ast_channel_adsicpe(const struct ast_channel *chan)
|
||||
{
|
||||
@@ -913,6 +914,7 @@ void ast_channel_callid_set(struct ast_channel *chan, struct ast_callid *callid)
|
||||
call_identifier_to,
|
||||
call_identifier_from);
|
||||
|
||||
ast_channel_publish_snapshot(chan);
|
||||
}
|
||||
void ast_channel_state_set(struct ast_channel *chan, enum ast_channel_state value)
|
||||
{
|
||||
@@ -1037,6 +1039,7 @@ void ast_channel_dtmf_tv_set(struct ast_channel *chan, struct timeval *value)
|
||||
void ast_channel_whentohangup_set(struct ast_channel *chan, struct timeval *value)
|
||||
{
|
||||
chan->whentohangup = *value;
|
||||
ast_channel_publish_snapshot(chan);
|
||||
}
|
||||
void ast_channel_varshead_set(struct ast_channel *chan, struct varshead *value)
|
||||
{
|
||||
@@ -1094,6 +1097,7 @@ ast_group_t ast_channel_callgroup(const struct ast_channel *chan)
|
||||
void ast_channel_callgroup_set(struct ast_channel *chan, ast_group_t value)
|
||||
{
|
||||
chan->callgroup = value;
|
||||
ast_channel_publish_snapshot(chan);
|
||||
}
|
||||
ast_group_t ast_channel_pickupgroup(const struct ast_channel *chan)
|
||||
{
|
||||
@@ -1102,6 +1106,7 @@ ast_group_t ast_channel_pickupgroup(const struct ast_channel *chan)
|
||||
void ast_channel_pickupgroup_set(struct ast_channel *chan, ast_group_t value)
|
||||
{
|
||||
chan->pickupgroup = value;
|
||||
ast_channel_publish_snapshot(chan);
|
||||
}
|
||||
struct ast_namedgroups *ast_channel_named_callgroups(const struct ast_channel *chan)
|
||||
{
|
||||
@@ -1277,6 +1282,7 @@ struct ast_bridge *ast_channel_internal_bridge(const struct ast_channel *chan)
|
||||
void ast_channel_internal_bridge_set(struct ast_channel *chan, struct ast_bridge *value)
|
||||
{
|
||||
chan->bridge = value;
|
||||
ast_channel_publish_snapshot(chan);
|
||||
}
|
||||
|
||||
struct ast_bridge_channel *ast_channel_internal_bridge_channel(const struct ast_channel *chan)
|
||||
|
Reference in New Issue
Block a user