diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-08-17 17:52:14 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-08-17 17:52:14 +0000 |
commit | 8a2b540f0a4f8a87278b1f439b84894cd8cc6d90 (patch) | |
tree | 2b5098fcee4a830eefb2cfc68b770ef62af0ec4a /channels | |
parent | 71fcf66d1e63ebb53197fb1bb96b8b598fcedafc (diff) |
protect PRI-specific code with ifdefs
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6341 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_zap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index cb3fbde12..35208f67a 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -3351,13 +3351,17 @@ static struct ast_frame *zt_handle_event(struct ast_channel *ast) else p->pulsedial = 0; ast_log(LOG_DEBUG, "Detected %sdigit '%c'\n", p->pulsedial ? "pulse ": "", res & 0xff); +#ifdef ZAPATA_PRI if ((p->proceeding < 2) && p->sig == SIG_PRI && p->pri && p->pri->overlapdial) { p->subs[index].f.frametype = AST_FRAME_NULL; p->subs[index].f.subclass = 0; } else { +#endif p->subs[index].f.frametype = AST_FRAME_DTMF; p->subs[index].f.subclass = res & 0xff; +#ifdef ZAPATA_PRI } +#endif /* Unmute conference, return the captured digit */ zt_confmute(p, 0); return &p->subs[index].f; |