diff options
author | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-16 19:15:56 +0000 |
---|---|---|
committer | mattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-05-16 19:15:56 +0000 |
commit | 3edcd0abf7d294c31e13451c023de8b8b0320510 (patch) | |
tree | 427329ed641c078df96c11979b65a3893a4c91a3 | |
parent | 957e90f828c220e2f46bd617582ba7f6ef183819 (diff) |
Turn on the DSP for the channel after an ANSWER so that we get DTMF detected
properly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5705 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | channels/chan_zap.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index f144b9def..496c9f069 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -8285,16 +8285,14 @@ static void *pri_dchannel(void *vpri) chanpos = -1; } else { ast_mutex_lock(&pri->pvts[chanpos]->lock); -#ifdef PRI_PROGRESS_MASK - if (e->answer.progressmask & PRI_PROG_INBAND_AVAILABLE) { -#else - if (e->answer.progress == 8) { -#endif - /* Now we can do call progress detection */ - if(pri->pvts[chanpos]->dsp && pri->pvts[chanpos]->dsp_features) { - ast_dsp_set_features(pri->pvts[chanpos]->dsp, pri->pvts[chanpos]->dsp_features); - pri->pvts[chanpos]->dsp_features = 0; - } + /* Now we can do call progress detection */ + + /* We changed this so it turns on the DSP no matter what... progress or no progress. + * By this time, we need DTMF detection and other features that were previously disabled + * -- Matt F */ + if(pri->pvts[chanpos]->dsp && pri->pvts[chanpos]->dsp_features) { + ast_dsp_set_features(pri->pvts[chanpos]->dsp, pri->pvts[chanpos]->dsp_features); + pri->pvts[chanpos]->dsp_features = 0; } if (pri->pvts[chanpos]->realcall && (pri->pvts[chanpos]->realcall->sig == SIG_FXSKS)) { ast_log(LOG_DEBUG, "Starting up GR-303 trunk now that we got CONNECT...\n"); |