aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-06 04:38:39 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-06 04:38:39 +0000
commitd8b060b54f7a6968a07e4342ca649c6923472e78 (patch)
tree62d67eb1d5ef315f4f2e6a49b22a975182574ea0 /channels/chan_zap.c
parent6fb0460c956bb7b2842b72c7b21b7886392c3b4f (diff)
Fix chan_zap build on non-PRI (bug #5620)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6965 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-xchannels/chan_zap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index dd0dcb64a..f44ebac29 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -666,13 +666,13 @@ static struct zt_pvt {
q931_call *call;
int prioffset;
int logicalspan;
- int dsp_features;
#endif
#ifdef ZAPATA_R2
int r2prot;
mfcr2_t *r2;
#endif
int polarity;
+ int dsp_features;
} *iflist = NULL, *ifend = NULL;
@@ -5023,12 +5023,12 @@ static struct ast_channel *zt_new(struct zt_pvt *i, int state, int startpbx, int
} else {
i->dsp = ast_dsp_new();
if (i->dsp) {
+ i->dsp_features = features & ~DSP_PROGRESS_TALK;
#ifdef ZAPATA_PRI
/* We cannot do progress detection until receives PROGRESS message */
if (i->outgoing && (i->sig == SIG_PRI)) {
/* Remember requested DSP features, don't treat
talking as ANSWER */
- i->dsp_features = features & ~DSP_PROGRESS_TALK;
features = 0;
}
#endif