Fix for when libpri is not installed
authorMark Spencer <markster@digium.com>
Fri, 8 Aug 2003 04:20:54 +0000 (04:20 +0000)
committerMark Spencer <markster@digium.com>
Fri, 8 Aug 2003 04:20:54 +0000 (04:20 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1277 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 617d583..7a9ba57 100755 (executable)
@@ -3555,7 +3555,6 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int
                tmp->pvt->rawwriteformat = deflaw;
                tmp->writeformat = deflaw;
                i->subs[index].linear = 0;
-               i->alreadyhungup = 0;
                zt_setlinear(i->subs[index].zfd, i->subs[index].linear);
                features = 0;
                if (i->busydetect && CANBUSYDETECT(i)) {
@@ -3636,6 +3635,7 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int
 #ifdef ZAPATA_PRI
                /* Assume calls are not idle calls unless we're told differently */
                i->isidlecall = 0;
+               i->alreadyhungup = 0;
 #endif
                /* Assure there is no confmute on this channel */
                zt_confmute(i, 0);