Don't check PRI settings unless there is PRI
authorMark Spencer <markster@digium.com>
Sat, 10 Apr 2004 03:46:59 +0000 (03:46 +0000)
committerMark Spencer <markster@digium.com>
Sat, 10 Apr 2004 03:46:59 +0000 (03:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2672 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 818a072..5eccced 100755 (executable)
@@ -3673,11 +3673,13 @@ struct ast_frame  *zt_read(struct ast_channel *ast)
                                        f = NULL;
                                }
                        } else if (f->frametype == AST_FRAME_DTMF) {
+#ifdef ZAPATA_PRI
                                if (!p->proceeding && p->sig==SIG_PRI && p->pri && p->pri->overlapdial) {
                                        /* Don't accept in-band DTMF when in overlap dial mode */
                                        f->frametype = AST_FRAME_NULL;
                                        f->subclass = 0;
                                }
+#endif                         
                                /* DSP clears us of being pulse */
                                p->pulsedial = 0;
                        }