Release, ourselves
authorMark Spencer <markster@digium.com>
Mon, 12 May 2003 17:00:08 +0000 (17:00 +0000)
committerMark Spencer <markster@digium.com>
Mon, 12 May 2003 17:00:08 +0000 (17:00 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1004 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 53ac338..3f7b42a 100755 (executable)
@@ -1602,6 +1602,7 @@ static int zt_hangup(struct ast_channel *ast)
                                if (!pri_grab(p, p->pri)) {
                                        res = pri_disconnect(p->pri->pri, p->call, PRI_CAUSE_NORMAL_CLEARING);
                                        if (p->alreadyhungup) {
+                                               pri_release(p->pri->pri, p->call, -1);
                                                p->call = NULL;
                                                p->alreadyhungup = 0;
                                        }