OpenVox A400P + Dahdi
hello, all of users:
To install a400p with dahdi, install some support packages as zaptel requires, then please go through these steps:
1) get dahdi-linux, dahdi-tools and asterisk
wget http://downloads.digium.com/pub/ ... risk-1.6.0.1.tar.gz
wget http://downloads.digium.com/pub/ ... -linux-2.0.0.tar.gz
wget http://downloads.digium.com/pub/ ... -tools-2.0.0.tar.gz
please unzip and cpoy those files to /usr/src/dahdi/dahdi-com(please note that this my dir, you can set to /usr/src)
2) please change back to /usr/src/dahdi/dahdi-com/dahdi-linux-2.0.0
run: make, make install
3) change the directory to /usr/src/dahdi/dahdi-com/dahdi-tools-2.0.0
run: make, make install
4) change to asterisk directory, in my case is /usr/src/dahdi/asterisk-1.6
4.1) ./configure
4.2) make
4.3) make install
4.4) make samples
5) please edit the dahdi files
5.1) edit the system.conf under /etc/dahdi, some files are there:
[root@new-host-8 asterisk-1.6]# cd /etc/dahdi/
[root@new-host-8 dahdi]# ls
init.conf modules system.conf
please keep in mind that the system.conf works as zaptel.conf in zaptel
the part of system.conf will be like this:
# And change channel 2 to use the kb1 echo canceller.
#echocanceller=kb1,2
#
fxsks=1
fxsks=2
fxoks=3-4
5.2) edit the chan.dahdi.conf in /etc/asterisk
the part of chan_dahdi.conf should be like this:
;stripmsd=1
;callerid=asreceived
group=0
signalling=fxs_ks
context=demo
channel => 1
channel => 2
signalling=fxo_ks
context=from-internal
channel => 3-4
the chan_dahdi.conf works as zapata.conf, so do not be confused.
5.3) edit extensions.conf
for incoming line: // for example only
================
[demo]
;
; We start with what to do when a call first comes in.
;
exten => s,1,Wait(1) ; Wait a second, just for fun
exten => s,n,Answer ; Answer the line
exten => s,n,Dial(dahdi/3) // zap has been changed to dahdi
exten => s,n,Hangup
==================
for internal:
===================
[from-internal]
exten => 1,1,Dial(dahdi/4|60|m(default)) // zap has been changed to daidi
exten => 1,2,hangup
exten => 2,1,Dial(dahdi/3|60|m(default)) // zap has been changed to dahdi
exten => 2,2,Hangup
======================
6) modprobe dahdi
7) modprobe wctdm
Cool dahdi_cfg -vvvvvvv // note: ztcfg changes dahdi_cfg. more commands are under /usr/sbin
============result of dahdi_cfg=========
[root@new-host-8 ~]# dahdi_cfg -vvvvvvvv
DAHDI Tools Version - 2.0.0
DAHDI Version: 2.0.0
Echo Canceller(s):
Configuration
======================
Channel map:
Channel 01: FXS Kewlstart (Default) (Slaves: 01)
Channel 02: FXS Kewlstart (Default) (Slaves: 02)
Channel 03: FXO Kewlstart (Default) (Slaves: 03)
Channel 04: FXO Kewlstart (Default) (Slaves: 04)
4 channels to configure.
9) start asterisk by asterisk -vvvvvvvvgc
under asterisk console, run: dahdi show channels
===================================
*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo from-internal default In Service
1 demo default In Service
2 demo default In Service
3 from-internal default In Service
4 from-internal default In Service
10) make a inbound call:
*CLI> -- Starting simple switch on 'DAHDI/1-1'
-- Executing [s@demo:1] Wait("DAHDI/1-1", "1") in new stack
-- Executing [s@demo:2] Answer("DAHDI/1-1", "") in new stack
[Oct 15 21:18:01] WARNING[2908]: chan_dahdi.c:1700 dahdi_enable_ec: Unable to enable echo cancellation on channel 1 (No such device) // here may has problem
-- Executing [s@demo:3] Dial("DAHDI/1-1", "dahdi/3") in new stack
-- Called 3
-- DAHDI/3-1 is ringing
-- DAHDI/3-1 is ringing
==========================
this is only very brief info for dahdi, later, i will add more details for that. if you have any problem, please report to Openvox.
===================
References:
voip-info.org
asterisk.org
openvox.com.cn
README file under dahdi-linux
===================
Test Environments:
Centos-5.0
Dahdi-linux-2.0
Asterisk-1.6
OpenVox A400P
====================
regards!
James.zhu
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论