fxotune fxstest

本文详细介绍了如何使用fxotune命令优化FXO线路,通过调整hybrid平衡来显著降低回声水平,从而提高语音质量。同时,文章还提供了在不同场景下使用fxotune和fxstest进行测试的方法,帮助用户实现更好的语音通信体验。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

fxotune

 

fxotune命令必须在运行dahdi并且没有运行asterisk的时候执行。

 

板卡的1 2口是fxo口,执行命令fxotune -i -n 4 -b 1 -e 2 -p -vvv,会把best echo coefficients 写到文件.etc/fxotune.conf中,重启机器使之生效。

 

fxotune -i 4 可以检测那个口是fxo,并且把配置写到文件.etc/fxotune.conf中,重启机器使之生效。

 

You will need to have your system runfxotune with the -s flag (`fxotune-s`) to set the module with the previously discovered values fromfxotune.conf for it to take affect, so essentially if each time you reboot themachine you need to run `fxotune -s`. Youmight consider putting it in your startup scripts some time after the moduleloads and before asterisk runs. 每次重启机器,在dahdi起来后,asterisk起来前,都要运行fxotune –s。

 

fxotune optimizes the line characteristics of aTDM device to minimize the *source* of echo. This is generally referred to as'balancing the hybrid' and is quite important in echo cancellation. Once thehybrid is properly balanced, software echo cancellers will work very nicely. Toprovide some hard numbers, the echo on lines at one site was about 15% with thedefault settings on the TDM. The software echo canceller actually did a fairlygood job with this - but when we got the hybrid balanced properly, echo on theline dropped to 3%, and then the software echo canceller did a *fantastic* job.At another site, the echoon the line was 60% - this was well beyond what the software echo cancellercould handle (it did work, but there was quite a bit of residual echo, etc...).Once we tuned the hybrid, echo dropped to 4%, and the echo canceller was ableto work properly.

 

Note that fxotune does not do anything with theecho canceler algorithms themselves - instead, it optimizes the signal beforeit gets to the echo canceler, making it easier for the echo canceler to do it'swork.

 

To get the echo level of line 1 using the patched fxotune,stop asterisk, then run: fxotune -d -b 1,结果越接近0越好。

Fxo 1连接了电话线到交换机,fxo 2没有连电话线,结果是

root@ubuntu:~# fxotune -d -b 1

Dumping module

echo ratio = 0.0216 (98.5 / 4557.0)

Done!

root@ubuntu:~# fxotune -d -b 2

Dumping module

echo ratio = 0.6592 (3004.0 / 4557.0)

Done!

 

所以测试的时候最好连接电话线。

 

 

fxstest

 

先到dahdi-linux-complete-2.7.0+2.7.0/tools目录下执行make fxstest,然后把当前目录下产生的fxstest文件拷贝到/usr/sbin/。

 

测试时,FXS口需要接上电话机,不能启动asterisk。

 

查看电压伏特数

# fxstest 1stats 

 

播放一串音调。

# fxstest 1 tones

这时拿起电话,可以听到一串音调。按CTRL+C中止。

 

传送dtmfcid。

#fxstest 1 dtmfcid

电话振铃时,可以看到来电显示传送的cid:5551212

 

测试极性反转。(此项测试必须要在传送dtmfcid之后,才能正常显示反转信息)

# fxstest 1polarity

 

发送一串dtmf信号(“-”表示没有发送信号)。

# fxstest 1 dtmf"12324" 70

这时可以在电话来电显示上看到发送的字符串“12324”,注意:时间要在70ms或以上才能显示完整的字符串。

 

触发语音信箱等待指示灯、HV、NEON。(A800P不支持此项测试)

# fxstest 1 vmwi

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值