[Asterisk-cvs] asterisk/channels chan_zap.c,1.196,1.197

markster at lists.digium.com markster at lists.digium.com
Sat Mar 27 21:55:22 CST 2004


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

Modified Files:
	chan_zap.c 
Log Message:
Add support for Costa Rica to DSP


Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.196
retrieving revision 1.197
diff -u -d -r1.196 -r1.197
--- chan_zap.c	24 Mar 2004 08:36:36 -0000	1.196
+++ chan_zap.c	28 Mar 2004 02:53:04 -0000	1.197
@@ -137,6 +137,7 @@
 
 static char language[MAX_LANGUAGE] = "";
 static char musicclass[MAX_LANGUAGE] = "";
+static char progzone[10]= "";
 
 static int usedistinctiveringdetection = 0;
 
@@ -3998,6 +3999,8 @@
 				if (i->dsp) {
 					ast_dsp_set_features(i->dsp, features);
 					ast_dsp_digitmode(i->dsp, DSP_DIGITMODE_DTMF | i->dtmfrelax);
+					if (strlen(progzone))
+						ast_dsp_set_call_progress_zone(i->dsp, progzone);
 					if (i->busydetect && CANBUSYDETECT(i)) {
 						ast_dsp_set_busy_count(i->dsp, i->busycount);
 						}
@@ -8092,6 +8095,8 @@
 			strncpy(context, v->value, sizeof(context)-1);
 		} else if (!strcasecmp(v->name, "language")) {
 			strncpy(language, v->value, sizeof(language)-1);
+		} else if (!strcasecmp(v->name, "progzone")) {
+			strncpy(progzone, v->value, sizeov(progzone) - 1);
 		} else if (!strcasecmp(v->name, "musiconhold")) {
 			strncpy(musicclass, v->value, sizeof(musicclass)-1);
 		} else if (!strcasecmp(v->name, "stripmsd")) {




More information about the svn-commits mailing list