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 /channels/chan_sip.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 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index b3bb4eb55..961c7f4de 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5845,7 +5845,7 @@ void __sip_destroy(struct sip_pvt *p, int lockowner, int lockdialoglist) ast_debug(1, "Detaching from %s\n", ast_channel_name(p->owner)); ast_channel_tech_pvt_set(p->owner, NULL); /* Make sure that the channel knows its backend is going away */ - p->owner->_softhangup |= AST_SOFTHANGUP_DEV; + ast_channel_softhangup_internal_flag_add(p->owner, AST_SOFTHANGUP_DEV); if (lockowner) ast_channel_unlock(p->owner); /* Give the channel a chance to react before deallocation */ @@ -7240,8 +7240,8 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit ast_channel_tech_pvt_set(tmp, dialog_ref(i, "sip_new: set chan->tech_pvt to i")); - tmp->callgroup = i->callgroup; - tmp->pickupgroup = i->pickupgroup; + ast_channel_callgroup_set(tmp, i->callgroup); + ast_channel_pickupgroup_set(tmp, i->pickupgroup); ast_channel_caller(tmp)->id.name.presentation = i->callingpres; ast_channel_caller(tmp)->id.number.presentation = i->callingpres; if (!ast_strlen_zero(i->parkinglot)) { |