summaryrefslogtreecommitdiff
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-07-29 04:26:42 +0000
committerMark Spencer <markster@digium.com>2004-07-29 04:26:42 +0000
commit0f93207cda5671664516565a419a642064b22342 (patch)
tree693451848f44dba7a0383bf29dd6f870b881acb0 /channels/chan_zap.c
parent43866cf0d90091e4281bcac59352bb9516abe2d0 (diff)
Clear things out for the bearer too
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-xchannels/chan_zap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index e8442b621..726a2905a 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -2187,6 +2187,7 @@ static int zt_hangup(struct ast_channel *ast)
ast_log(LOG_DEBUG, "Freeing up bearer channel %d\n", p->bearer->channel);
/* Free up the bearer channel as well, and
don't use its file descriptor anymore */
+ update_conf(p->bearer);
p->bearer->owner = NULL;
p->bearer = NULL;
p->subs[SUB_REAL].zfd = -1;