diff options
author | bkramer <bkramer@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-01-31 04:51:41 +0000 |
---|---|---|
committer | bkramer <bkramer@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-01-31 04:51:41 +0000 |
commit | 7f69061c41d45400b7bba7ccf441392f35a7a06b (patch) | |
tree | 6e0d067d4985deb96387925c9f98718186f98e89 /channels/chan_vpb.c | |
parent | bb66637fef93cba9a6f26820cda3fc0deda0c0cd (diff) |
/ added parameter to change ec suppresion threshhold from config
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4935 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_vpb.c')
-rwxr-xr-x | channels/chan_vpb.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/channels/chan_vpb.c b/channels/chan_vpb.c index 0617b1960..55f7acfbd 100755 --- a/channels/chan_vpb.c +++ b/channels/chan_vpb.c @@ -144,6 +144,9 @@ static int UseNativeBridge=1; /* 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 @@ static void mkbrd(vpb_model_t model, int echo_cancel) 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 @@ int load_module() 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; } |