Aculab Prosody and trixbox *having trouble compiling the Aculab Channel driver*

tobi--
Posts: 5
Member Since:
2008-11-07

All,

I am having trouble to compile the channel drivers from Aculab.
The cards driver is working fine and I am able to download the firmware to the card.

has anyone a little experience with aculab cards?

I can provide some install/user guides from aculab.
many thanks in advance!



tobi--
Posts: 5
Member Since:
2008-11-07
As I said I am stuck on

As I said I am stuck on compiling the channel driver for asterisk.

Attached you'll find the install.txt from aculab.

The Aculab developer assume that you have downloaded Asterisk direct from the Digium website.
However I am using trixbox. When it comes to "Requirements" I believe this has been allready done.
Is that right?
-----------------------------------------------------------------------------------------------------------------
Installation instructions:
Asterisk configuration:
If Asterisk is already installed it is not necessary to repeat the installation.

Requirements
Run make install on zaptel, libpri and asterisk in the /usr/src directory in that order.

Samples
Make the Asterisk samples
make samples

Setup the library path LD_LIBARY_PATH by running in the aculab/v6 directory
source setV6.sh
ulimit -n 4096
This environment must be set correctly for the process running Asterisk

If you are building Asterisk 1.2, comment out the line CFLAGS+=-DASTERISK_14 in the Makefile

To build the Linux 6.3 Aculab channel driver (chan_aculab.c and Aculab Makefile in same directory):
make
This generates chan_aculab.o

To install the Linux 6.3 channel driver (chan_aculab.o):
make install
This copies chan_aculab.so to the default Asterisk modules directory /usr/lib/asterisk/modules

To build the Linux 6.4 Aculab channel driver (chan_aculab.c and Aculab Makefile in same directory):
make 64
This generates chan_aculab.o

To install the Linux 6.4 channel driver (chan_aculab.o):
make install64
This copies chan_aculab.so to the default Asterisk modules directory /usr/lib/asterisk/modules

For fax support add "fax3" to the make target name, i.e.
make fax3
make installfax3
make 64fax3
make install64fax3

The fax files are app_aculab_fax.o and app_aculab_fax.so

Aculab configuration file
Copy the aculab.conf file into the /etc/asterisk directory.
Modify the aculab.conf to suit your hardware and requirements

Assumptions:
Aculab drivers are installed in /usr/local/aculab
Asterisk is installed in /usr/src/asterisk

To install as a service / daemon:
(Assuming a RedHat derivative at runlevel 5, please alter these instructions as appropriate for non RH based systems)
Copy the file cfg/aculab.init.sh to /etc/init.d
Copy the file cfg/setV6.sh to /etc/profile.d
Create symbolic links in /etc/rc5.d:
ln -s ../init.d/aculab.init.sh S92aculab
ln -s ../init.d/asterisk S93asterisk
Create similar K scripts to ensure system is stopped during shutdown in reverse order in the relevant rc?.d dirs
Edit the aculab.conf file with appropriate values (see userguide.txt)
You may need to edit the /etc/profile.d/setV6.sh to ensure directory names are correct for your system
----------------------------------------------------------------------------------------------------------------------



SkykingOH
Posts: 9541
Member Since:
2007-12-17
The source code and make

The source code and make utilities are not installed as part of trixbox. Asterisk is already compiled for you.

You need to install the kernel development packages, Asterisk DEV, Zaptel Source, GCC and the make utility. There may be other dependencies.

If you are not familiar with building from source in Linux you may wish to get some help. You are using a very expensive and high end processing engine.

--

Scott

aka "Skyking"



tobi--
Posts: 5
Member Since:
2008-11-07
Scott, thanks for your quick

Scott,
thanks for your quick reply. I know Aculab cards are quite expensive, but it felt in my hands, so to speak.
I do not have an internet connection to the box but I hope I will next week.
Can I download the additional software through the package management of CentOS?

I would be glad to have someone I can point my questions to.

have a nice weekend!
Toby



SkykingOH
Posts: 9541
Member Since:
2007-12-17
It's going to be very

It's going to be very difficult without an Internet connection.

All the packages are in the repo, http://yum.trixbox.org/centos/5/devel/RPMS/

Figuring out the dependencies without an Internet connection will be tough.

--

Scott

aka "Skyking"



tobi--
Posts: 5
Member Since:
2008-11-07
missing dependencies

Hi Scott,

I've got an internet connection now.
downloading the development packages for the zaptel stuff was no problem but the dev package for the libpri complains about the following:
Missing Dependency: libpri.so.1.0 is needed by package libpri-devel
Missing Dependency: libpri = 1.4.3-25.488 is needed by package libpri-devel

I'll try to find the right rpms.
Ta!
Toby



tobi--
Posts: 5
Member Since:
2008-11-07
can't find it

the devel package is version : trixbox repository:

RPM Group : Development/Libraries
Source : libpri-1.4.3-25.488.src.rpm
Build Time : Thu May 1 17:39:27 2008

but the installed libpri package from the CentOS repository is version 1.4.7

what shall I do?
Any ideas?



ezzadin
Posts: 4
Member Since:
2010-01-12
Hi All, I managed to install

Hi All,

I managed to install the Aculab drivers. Asterisk also sees the driver and the board:

PBX2:/etc/asterisk# dahdi_hardware
driver should be 'tor2' but is actually 'dacpswcl'
pci:0000:01:0e.0 tor2+ 10b5:9030 PLX 9030

I'm guessing that this is correct... dacpswcl is actually the default driver name for aculab.
and when I do this:

PBX2:/etc/asterisk# dahdi_genconf
I get:
Empty configuration -- no spans
Empty configuration -- no spans

which makes me believe that I'm missing aculab.conf .. how can I get this file? is the configuration parameters same as zapata?

Thanks



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.