Some user reported strange issue when using OSLEC, the softwares are:
zaptel 1.4.4
asterisk 1.4.8
oslec 0.1
The issue is no sound when inbound call from fxo answered by fxs port. After trace the code, we found that disable the echotrain function on fxs port will solve it.
in zaptel-base.c:
line #4460:
case ZT_ECHOTRAIN:
get_user(j, (int *)data); /* get pre-training time from user */
if ((j < 0) || (j >= ZT_MAX_PRETRAINING))
return -EINVAL;
j <<= 3;
if (chan->ec) {
/* Start pretraining stage */
//chan->echostate = ECHO_STATE_PRETRAINING;
//chan->echotimer = j;
return -EINVAL;
// MiaoLin modify it to make the OSLEC work correctly.
} else
return -EINVAL;
break;