keywords: ip pbx voip gateway gsm gateway

×

Notice

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

A1200P on Ubuntu 9.10

14 years 3 months ago #4540 by ybz
I think I have solved this issue...

Here is what I did and it is working!

After installing the basic dependencies, I did:
sudo apt-get install build-essential module-assistant
sudo module-assistant -t update
sudo module-assistant -t prepare
sudo apt-get install gawk  # see bug comment below
sudo apt-get install dahdi dahdi-dkms dahdi-linux
At this point we need to tweak the dahdi-dkms and this is how it is done:

1. You need to add some lines to the dkms.conf file
sudo vi /usr/src/dahdi-2.2.0.2/dkms.conf
In this file add at the end the following (note the numbering. Make sure it is consecutive to the previous lines:
BUILT_MODULE_NAME[32]="opvxa1200"
BUILT_MODULE_LOCATION[32]="drivers/dahdi/"
DEST_MODULE_LOCATION[32]="/kernel/drivers/telephony/dahdi"
2. Fix the Kbuild file as in the regular instructions:
sudo vi /usr/src/dahdi-2.2.0.2/drivers/dahdi/Kbuild
Add the following line with opvxa1200.o after the wctdm.o
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
obj-$(DAHDI_BUILD_ALL)$(CONFIG_DAHDI_VOICEBUS)          += voicebus/
3. Now we go to do some dkms manipulations... Note the syntax that dkms needs: the module name is dahdi and the version is 2.2.0.2. In case you have other version, make sure to adjust the syntax of the following commands accordingly.
sudo dkms remove -m dahdi -v 2.2.0.2 --all
sudo dkms add -m dahdi -v 2.2.0.2
sudo dkms build -m dahdi -v 2.2.0.2
sudo dkms install -m dahdi -v 2.2.0.2
4. Install asterisk from debian packages:
sudo apt-get install asterisk asterisk-config asterisk-doc asterisk-mp3 asterisk-mysql asterisk-sounds-main asterisk-sounds-extra
At this point Reboot (I know it may be possible to restart specific services, but the experience with this package made me do reboots instead of restarts of services).

5. After reboot, check that the opvxa1200 module is loaded:
$ lsmod | grep opvxa1200
opvxa1200              41644  2 
dahdi                 197768  8 dahdi_echocan_mg2,dahdi_transcode,dahdi_dummy,opvxa1200
6. Now, another tricky part is the following:
Run dahdi_genconf and follow the instructions of section 4 (Detecting and loading modules for opvxa1200) in this link http://wiki.openvox.cn/index.php ... tallation_and_Setup

After making sure the files are ok - REBOOT again.

7. Only after the reboot, the dahdi_cfg –vvvv command will provide the right results.

And you are done.

i] Last edited by ybz at 2010-1-14 21:36 [/i
14 years 3 months ago #4541 by Denins.Den
Well done, thanks!
Time to create page: 0.039 seconds
Powered by Kunena Forum