dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
mattf 2005-05-16 19:15:56 +00:00
parent 957e90f828
commit 3edcd0abf7
1 changed files with 8 additions and 10 deletions

View File

@ -8285,16 +8285,14 @@ static void *pri_dchannel(void *vpri)
chanpos = -1; chanpos = -1;
} else { } else {
ast_mutex_lock(&pri->pvts[chanpos]->lock); ast_mutex_lock(&pri->pvts[chanpos]->lock);
#ifdef PRI_PROGRESS_MASK /* Now we can do call progress detection */
if (e->answer.progressmask & PRI_PROG_INBAND_AVAILABLE) {
#else /* We changed this so it turns on the DSP no matter what... progress or no progress.
if (e->answer.progress == 8) { * By this time, we need DTMF detection and other features that were previously disabled
#endif * -- Matt F */
/* Now we can do call progress detection */ if(pri->pvts[chanpos]->dsp && pri->pvts[chanpos]->dsp_features) {
if(pri->pvts[chanpos]->dsp && pri->pvts[chanpos]->dsp_features) { ast_dsp_set_features(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;
pri->pvts[chanpos]->dsp_features = 0;
}
} }
if (pri->pvts[chanpos]->realcall && (pri->pvts[chanpos]->realcall->sig == SIG_FXSKS)) { 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"); ast_log(LOG_DEBUG, "Starting up GR-303 trunk now that we got CONNECT...\n");