Clear things out for the bearer too
authorMark Spencer <markster@digium.com>
Thu, 29 Jul 2004 04:26:42 +0000 (04:26 +0000)
committerMark Spencer <markster@digium.com>
Thu, 29 Jul 2004 04:26:42 +0000 (04:26 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3533 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index e8442b6..726a290 100755 (executable)
@@ -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;