[Asterisk-cvs] asterisk/channels chan_zap.c,1.446,1.447

mattf at lists.digium.com mattf at lists.digium.com
Mon May 16 15:10:39 CDT 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv25860/channels

Modified Files:
	chan_zap.c 
Log Message:
Turn on the DSP for the channel after an ANSWER so that we get DTMF detected
properly


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.446
retrieving revision 1.447
diff -u -d -r1.446 -r1.447
--- chan_zap.c	16 May 2005 18:48:09 -0000	1.446
+++ chan_zap.c	16 May 2005 19:15:56 -0000	1.447
@@ -8285,16 +8285,14 @@
 						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");




More information about the svn-commits mailing list