diff options
author | Terry Wilson <twilson@digium.com> | 2012-02-29 16:52:47 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2012-02-29 16:52:47 +0000 |
commit | a9d607a35764d93790172cab1f630e14fb8e043c (patch) | |
tree | dadea55813cfc525898844c51eec824d468455cb /main/dial.c | |
parent | 0b988da21c1ec856b7b8bad2434bf93498d17cfd (diff) |
Opaquify ast_channel structs and lists
Review: https://reviewboard.asterisk.org/r/1773/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@357542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/dial.c')
-rw-r--r-- | main/dial.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/dial.c b/main/dial.c index fe8a74faf..24dbf2841 100644 --- a/main/dial.c +++ b/main/dial.c @@ -272,7 +272,7 @@ static int begin_dial_channel(struct ast_dial_channel *channel, struct ast_chann ast_channel_appl_set(channel->owner, "AppDial2"); ast_channel_data_set(channel->owner, "(Outgoing Line)"); - memset(&channel->owner->whentohangup, 0, sizeof(channel->owner->whentohangup)); + memset(ast_channel_whentohangup(channel->owner), 0, sizeof(*ast_channel_whentohangup(channel->owner))); /* Inherit everything from he who spawned this dial */ if (chan) { @@ -280,11 +280,11 @@ static int begin_dial_channel(struct ast_dial_channel *channel, struct ast_chann ast_channel_datastore_inherit(chan, channel->owner); /* Copy over callerid information */ - ast_party_redirecting_copy(&channel->owner->redirecting, &chan->redirecting); + ast_party_redirecting_copy(ast_channel_redirecting(channel->owner), ast_channel_redirecting(chan)); - channel->owner->dialed.transit_network_select = chan->dialed.transit_network_select; + ast_channel_dialed(channel->owner)->transit_network_select = ast_channel_dialed(chan)->transit_network_select; - ast_connected_line_copy_from_caller(&channel->owner->connected, &chan->caller); + ast_connected_line_copy_from_caller(ast_channel_connected(channel->owner), ast_channel_caller(chan)); ast_channel_language_set(channel->owner, ast_channel_language(chan)); ast_channel_accountcode_set(channel->owner, ast_channel_accountcode(chan)); |