[Asterisk-cvs] asterisk/channels chan_vpb.c,1.65,1.66
bkramer at lists.digium.com
bkramer at lists.digium.com
Sun Jan 30 22:50:13 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv14004/channels
Modified Files:
chan_vpb.c
Log Message:
/ added parameter to change ec suppresion threshhold from config
Index: chan_vpb.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_vpb.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- chan_vpb.c 27 Jan 2005 04:31:38 -0000 1.65
+++ chan_vpb.c 31 Jan 2005 04:51:41 -0000 1.66
@@ -144,6 +144,9 @@
/* Use Asterisk Indication or VPB */
static int use_ast_ind=0;
+/* Set EC suppression threshold */
+static int ec_supp_threshold=-1;
+
#define TIMER_PERIOD_RINGBACK 2000
#define TIMER_PERIOD_BUSY 700
#define TIMER_PERIOD_RING 4000
@@ -1286,6 +1289,10 @@
if (model==vpb_model_v4pci) {
vpb_echo_canc_enable();
ast_log(LOG_NOTICE, "Voicetronix echo cancellation ON\n");
+ if (ec_supp_threshold > -1){
+ vpb_echo_canc_set_sup_thresh((short *)&ec_supp_threshold);
+ ast_log(LOG_NOTICE, "Voicetronix EC Sup Thres set\n");
+ }
}
else {
/* need to it port by port for OpenSwitch*/
@@ -2445,6 +2452,9 @@
use_ast_ind = 1;
ast_log(LOG_NOTICE,"VPB driver using Asterisk Indication functions!\n");
}
+ else if (strcasecmp(v->name, "ecsuppthres") ==0) {
+ ec_supp_threshold = atoi(v->value);
+ }
v = v->next;
}
More information about the svn-commits
mailing list