keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

OpenVox A1200P/A800P + Dahdi

15 years 6 months ago #1947 by james.zhu
hello, all of users:
we releases a1200p/a800p to support Dahdi. To install a1200p/a800p with dahdi, install some support packages as zaptel requires, then please go through these steps:
1) get dahdi-linux, dahdi-tools and asterisk
wget downloads.digium.com/pub/asterisk/releas...erisk-1.6.0.1.tar.gz
wget downloads.digium.com/pub/telephony/dahdi...i-linux-2.0.0.tar.gz
wget downloads.digium.com/pub/telephony/dahdi...i-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) cd /usr/src/dahdi/dahdi-com/dahdi-linux-2.0.0/drivers/dahdi
open Kbuild file and add the one line like this:
=====================================
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT4XXP) += wct4xxp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTC4XXP) += wctc4xxp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM24XXP) += wctdm24xxp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE12XP) += wcte12xp/
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM) += wctdm.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTDM) += opvxa1200.o
// this is for a1200/a800p
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCT1XXP) += wct1xxp.o
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_WCTE11XP) += wcte11xp.o
==========================================
after edit the file, please download the opvxa1200.c to the directory.
3) please change back to /usr/src/dahdi/dahdi-com/dahdi-linux-2.0.0
run: make, make install
4) change the directory to /usr/src/dahdi/dahdi-com/dahdi-tools-2.0.0
run: make, make install
5) change to asterisk directory, in my case is /usr/src/dahdi/asterisk-1.6
5.1) ./configure
5.2) make
5.3) make install
5.4) make samples
6) please edit the dahdi files
6.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-12
6.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-12
the chan_dahdi.conf works as zapata.conf, so do not be confused.
6.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/12) // zap has been changed to dahdi
exten => s,n,Hangup
==================
for internal:
===================
[from-internal]
exten => 1,1,Dial(dahdi/8|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,n,Hangup
======================
7) modprobe dahdi
8) modprobe opvxa1200
9) 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)
Channel 05: FXO Kewlstart (Default) (Slaves: 05)
Channel 06: FXO Kewlstart (Default) (Slaves: 06)
Channel 07: FXO Kewlstart (Default) (Slaves: 07)
Channel 08: FXO Kewlstart (Default) (Slaves: 08)
Channel 09: FXO Kewlstart (Default) (Slaves: 09)
Channel 10: FXO Kewlstart (Default) (Slaves: 10)
Channel 11: FXO Kewlstart (Default) (Slaves: 11)
Channel 12: FXO Kewlstart (Default) (Slaves: 12)

12 channels to configure.

Changing signalling on channel 1 from Unused to FXS Kewlstart
Changing signalling on channel 2 from Unused to FXS Kewlstart
Changing signalling on channel 3 from Unused to FXO Kewlstart
Changing signalling on channel 4 from Unused to FXO Kewlstart
Changing signalling on channel 5 from Unused to FXO Kewlstart
Changing signalling on channel 6 from Unused to FXO Kewlstart
Changing signalling on channel 7 from Unused to FXO Kewlstart
Changing signalling on channel 8 from Unused to FXO Kewlstart
Changing signalling on channel 9 from Unused to FXO Kewlstart
Changing signalling on channel 10 from Unused to FXO Kewlstart
Changing signalling on channel 11 from Unused to FXO Kewlstart
Changing signalling on channel 12 from Unused to FXO Kewlstart
=====================================
=============dmesg====================
dahdi: Telephony Interface Registered on major 196
dahdi: Version: 2.0.0
ACPI: PCI Interrupt 0000:02:0c.0[A] -> GSI 20 (level, low) -> IRQ 201
OpenVox A1200P version: 1.2
OpenVox A1200P passed register test
Module 0: Installed -- AUTO FXO (FCC mode)
Module 1: Installed -- AUTO FXO (FCC mode)
Module 2: Installed -- AUTO FXS/DPO
Module 3: Installed -- AUTO FXS/DPO
Module 4: Installed -- AUTO FXS/DPO
Module 5: Installed -- AUTO FXS/DPO
Module 6: Installed -- AUTO FXS/DPO
Module 7: Installed -- AUTO FXS/DPO
======== only show part of modules==========

10) 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
5 from-internal default In Service
6 from-internal default In Service
7 from-internal default In Service
8 from-internal default In Service
9 from-internal default In Service
10 from-internal default In Service
11 from-internal default In Service
12 from-internal default In Service
*CLI>
===============================
11) make a inbound call:
*CLI> -- Starting simple switch on 'DAHDI/1-1'
-- Executing [s@demo] Wait("DAHDI/1-1", "1") in new stack
-- Executing [s@demo] Answer("DAHDI/1-1", "") in new stack
[Oct 15 21:18] 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] Dial("DAHDI/1-1", "dahdi/12") in new stack
-- Called 12
-- DAHDI/12-1 is ringing
-- DAHDI/12-1 is ringing
[Oct 15 21:18] WARNING[2908]: chan_dahdi.c:1700 dahdi_enable_ec: Unable to enable echo cancellation on channel 12 (No such device) // here may be a problem
-- DAHDI/12-1 answered DAHDI/1-1
-- Native bridging DAHDI/1-1 and DAHDI/12-1
[Oct 15 21:18] WARNING[2908]: chan_dahdi.c:1700 dahdi_enable_ec: Unable to enable echo cancellation on channel 1 (No such device)
[Oct 15 21:18] WARNING[2908]: chan_dahdi.c:1700 dahdi_enable_ec: Unable to enable echo cancellation on channel 12 (No such device)
-- Hungup 'DAHDI/12-1'
== Spawn extension (demo, s, 3) exited non-zero on 'DAHDI/1-1'
-- Hungup 'DAHDI/1-1'
==========================
this is only very brief info for dahdi and a1200p, later, i will add more details for that. if you have any problem, please always refer these links:
voip-info.org
asterisk.org
openvox.com.cn
README file under dahdi-linux
regards!
James.zhu

Attachments:
15 years 6 months ago #1957 by james.zhu
hello:
i am working on the new version, the version of a1200-dahdi driver i posted in the previous thread has a bug. please wait for the new version.
regards!
James.zhu

15 years 5 months ago #1983 by nenadr

james.zhu wrote: hello:
i am working on the new version, the version of a1200-dahdi driver i posted in the previous thread has a bug. please wait for the new version.
regards!
James.zhu


James, did you ment that we shouldn't use file from previous post or from some other thread ? I mean, will the version from 1st post in this thread work with DAHDI 2.0 or I should wait for new file ?
15 years 5 months ago #1995 by james.zhu
hello:
you can try this new version. please keep in mind that, if you just want to try or play for the new system, it is ok. otherwise, please use the 1.4.21 and zatepl, or other previous zaptel because the dahdi is not a stable version at movement. anyway, if you have any problem related with a1200p/a800p, please let me know. the first thread of this topic is a very brief intro to install A1200P/A800P, you can follow that and please make sure the version of asterisk is correct.
regards!
James.zhu

Attachments:
Time to create page: 0.037 seconds
Powered by Kunena Forum