mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
/ fix to for compiling with both 2.4.x and 3.x vpb-drivers
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6943 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1518,7 +1518,11 @@ static void mkbrd(vpb_model_t model, int echo_cancel)
|
|||||||
vpb_echo_canc_enable();
|
vpb_echo_canc_enable();
|
||||||
ast_log(LOG_NOTICE, "Voicetronix echo cancellation ON\n");
|
ast_log(LOG_NOTICE, "Voicetronix echo cancellation ON\n");
|
||||||
if (ec_supp_threshold > -1){
|
if (ec_supp_threshold > -1){
|
||||||
|
#ifdef VPB_PRI
|
||||||
vpb_echo_canc_set_sup_thresh(0,(short *)&ec_supp_threshold);
|
vpb_echo_canc_set_sup_thresh(0,(short *)&ec_supp_threshold);
|
||||||
|
#else
|
||||||
|
vpb_echo_canc_set_sup_thresh((short *)&ec_supp_threshold);
|
||||||
|
#endif
|
||||||
ast_log(LOG_NOTICE, "Voicetronix EC Sup Thres set\n");
|
ast_log(LOG_NOTICE, "Voicetronix EC Sup Thres set\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user