原文发表于:http://bbs.voip88.com/thread-15156-1-1.html
今天下午,刚刚装完笔记如下
cd /usr/src/
wget http://downloads.openvox.cn/pub/ ... .2.0.2+2.2.0.tar.gz
wget http://downloads.openvox.cn/pub/ ... -032-1.07.01.tar.gz
tar -zxvf opvx-dahdi-fw-oct6114-032-1.07.01.tar.gz
cp dahdi-fw-oct6114-032.bin /lib/firmware/
mkdir /usr/lib/hotplug/firmware/
mv dahdi-fw-oct6114-032.bin /usr/lib/hotplug/firmware/
tar xvf openvox_dahdi-linux-complete-2.2.0.2+2.2.0.tar.gz
cd dahdi-linux-complete-2.2.0.2+2.2.0/
make
make install
make config
然后
asterisk -r
stop now
service dahdi stop
modprobe dahdi
modprobe opvxa24xx opermode=CHINA
dahdi_genconf
vi /etc/dahdi/system.conf
如下
loadzone = cn
defaultzone = cn
vi /etc/asterisk/indications.conf:
如下
country=cn
然后
dahdi_cfg -vvvvv
asterisk -r
dahdi show channels
显示如下,表示正常
bangian*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret
pseudo default default
1 from-pstn cn default
2 from-pstn cn default
3 from-pstn cn default
4 from-pstn cn default
5 from-pstn cn default
6 from-pstn cn default
7 from-pstn cn default
8 from-pstn cn default
9 from-pstn cn default
10 from-pstn cn default
11 from-pstn cn default
12 from-pstn cn default
13 from-pstn cn default
14 from-pstn cn default
15 from-pstn cn default
16 from-pstn cn default
17 from-pstn cn default
18 from-pstn cn default
19 from-pstn cn default
20 from-pstn cn default
21 from-pstn cn default
22 from-pstn cn default
23 from-pstn cn default
24 from-pstn cn default
然后打个电话,查看一下通道的情况,比如当前使用的是1通道
bangian*CLI> dahdi show channel 1
Channel: 1I>
File Descriptor: 12
Span: 1
Extension:
Dialing: no
Context: from-pstn
Caller ID:
Calling TON: 0
Caller ID name:
Destroy: 0
InAlarm: 0
Signalling Type: FXS Kewlstart
Radio: 0
Owner: DAHDI/1-1
Real: DAHDI/1-1
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: yes
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
Echo Cancellation: 128 taps unless TDM bridged, currently ON
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook
红色的表示回声消除模块已经启动
嘿嘿
然后,
vi /etc/modprobe.conf
增加如下内容
options opvxa24xx opermode=CHINA
大功告成 A2410P_AE2410P_Elastix1.6_User_Manual_Chinese.pdf (887.54 KB, 下载次数: 0)
voip88 张拓
2010-11-19