diff options
author | bkramer <bkramer@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-02 01:43:03 +0000 |
---|---|---|
committer | bkramer <bkramer@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-11-02 01:43:03 +0000 |
commit | dee595bc534fc20b92d568470fab6c158e34240c (patch) | |
tree | ba38fd9092c0404925f0bbaa4c32c930c13c3500 /channels | |
parent | 6c613681b85ac04d70b310786a6b3f3575973dde (diff) |
/ fix to for compiling with both 2.4.x and 3.x vpb-drivers
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6943 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-x | channels/chan_vpb.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_vpb.c b/channels/chan_vpb.c index 76c53af9e..802d15a8d 100755 --- a/channels/chan_vpb.c +++ b/channels/chan_vpb.c @@ -1518,7 +1518,11 @@ static void mkbrd(vpb_model_t model, int echo_cancel) vpb_echo_canc_enable(); ast_log(LOG_NOTICE, "Voicetronix echo cancellation ON\n"); if (ec_supp_threshold > -1){ + #ifdef VPB_PRI 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"); } } |