--- channels/chan_zap.c 2005-11-05 19:53:08.000000000 -0700 +++ channels/chan_zap.c.new 2005-11-05 19:47:34.000000000 -0700 @@ -2937,10 +2937,12 @@ val = 0; ioctl(p->subs[SUB_REAL].zfd, ZT_TONEDETECT, &val); #endif +#ifdef ZAPATA_PRI if (!p->hardwaredtmf && p->dsp) { p->dsp_features &= ~DSP_FEATURE_DTMF_DETECT; ast_dsp_set_features(p->dsp, p->dsp_features); } +#endif } static void enable_dtmf_detect(struct zt_pvt *p) @@ -2955,10 +2957,12 @@ val = ZT_TONEDETECT_ON | ZT_TONEDETECT_MUTE; ioctl(p->subs[SUB_REAL].zfd, ZT_TONEDETECT, &val); #endif +#ifdef ZAPATA_PRI if (!p->hardwaredtmf && p->dsp) { p->dsp_features |= DSP_FEATURE_DTMF_DETECT; ast_dsp_set_features(p->dsp, p->dsp_features); } +#endif } static enum ast_bridge_result zt_bridge(struct ast_channel *c0, struct ast_channel *c1, int flags, struct ast_frame **fo, struct ast_channel **rc, int timeoutms)