Clear things out for the bearer too

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3533 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 21 years ago
parent 43866cf0d9
commit 0f93207cda

@ -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;

Loading…
Cancel
Save