diff options
author | Terry Wilson <twilson@digium.com> | 2012-03-01 22:09:18 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2012-03-01 22:09:18 +0000 |
commit | 0e5c761c28a4ea091d760cfabc2ed3512ee2689a (patch) | |
tree | a9d5d359a27a013ac9e3cdf4162c2f32eea90324 /funcs/func_channel.c | |
parent | e291318df2c7ed5ebbaec059d73271976c792091 (diff) |
Opaquify ast_channel typedefs, fd arrays, and softhangup flag
Review: https://reviewboard.asterisk.org/r/1784/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@357721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_channel.c')
-rw-r--r-- | funcs/func_channel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/funcs/func_channel.c b/funcs/func_channel.c index 30bf63db9..80d57ded1 100644 --- a/funcs/func_channel.c +++ b/funcs/func_channel.c @@ -394,10 +394,10 @@ static int func_channel_read(struct ast_channel *chan, const char *function, locked_copy_string(chan, buf, transfercapability_table[ast_channel_transfercapability(chan) & 0x1f], len); } else if (!strcasecmp(data, "callgroup")) { char groupbuf[256]; - locked_copy_string(chan, buf, ast_print_group(groupbuf, sizeof(groupbuf), chan->callgroup), len); + locked_copy_string(chan, buf, ast_print_group(groupbuf, sizeof(groupbuf), ast_channel_callgroup(chan)), len); } else if (!strcasecmp(data, "pickupgroup")) { char groupbuf[256]; - locked_copy_string(chan, buf, ast_print_group(groupbuf, sizeof(groupbuf), chan->pickupgroup), len); + locked_copy_string(chan, buf, ast_print_group(groupbuf, sizeof(groupbuf), ast_channel_pickupgroup(chan)), len); } else if (!strcasecmp(data, "amaflags")) { char amabuf[256]; snprintf(amabuf,sizeof(amabuf), "%d", ast_channel_amaflags(chan)); @@ -486,9 +486,9 @@ static int func_channel_write_real(struct ast_channel *chan, const char *functio new_zone = ast_tone_zone_unref(new_zone); } } else if (!strcasecmp(data, "callgroup")) { - chan->callgroup = ast_get_group(value); + ast_channel_callgroup_set(chan, ast_get_group(value)); } else if (!strcasecmp(data, "pickupgroup")) { - chan->pickupgroup = ast_get_group(value); + ast_channel_pickupgroup_set(chan, ast_get_group(value)); } else if (!strcasecmp(data, "txgain")) { sscanf(value, "%4hhd", &gainset); ast_channel_setoption(chan, AST_OPTION_TXGAIN, &gainset, sizeof(gainset), 0); |