Asterisk Linux Mandrake
Asterisk on Mandrake Linux
General
...Since Mandrake 10.1, asterisk is available in contrib, with the zaptel tools available in the zaptel-utils package. The zaptel drivers are available in contrib (as a dkms package dkms-zaptel) since Mandriva 2005. Installing an asterisk system on Mandriva 2005 can be done with 'urpmi asterisk zaptel-utils dkms-zaptel' if you have a contrib medium available, which should install all the necessary packages (including kernel-source-2.6 and dkms to be able to build the drivers via dkms). Note that if you prefer not installing compilers etc. on your asterisk system that you can use 'dkms mkrpm -m zaptel -k `uname -r` -v `rpm -q --qf "%{VERSION}\n" dkms-zaptel`' on another system to build binary driver RPMS, where `uname -r` is actually the result on your asterisk server.
Mandrake 9.1
> make: bison: Command not found
> make: *** ast_expr.c Error 127
IIRC Mandrake 9.1 does not have Bison it has Bison++ or something, I had
the same problems and took a real Bison rpm from an earlier release.
Mandrake 10.1
Several problems depending on install type
> make: bison: Command not found
> make: *** ast_expr.c Error 127
> make: *** ast_expr.c Error 127
Solution: Bison is missing (get bison-1.875-4mdk.i586.rpm)
>bison ast_expr.y --name-prefix=ast_yy -o ast_expr.c
>make: *** ast_expr.c Broken pipe
>make: *** ast_expr.c Broken pipe
Solution: M4 missing (get m4-1.4.1-1mdk.i586.rpm)
>/usr/bin/ld: cannot find -lssl
>collect2: ld returned 1 exit status
>collect2: ld returned 1 exit status
Solution: openssl-devel is missing (get libopenssl0.9.7-devel-0.9.7d-1mdk.i586.rpm)
In file included from chan_phone.c:35:
/usr/include/linux/ixjuser.h:353: error: syntax error before '*' token
chan_phone.c: In function `phone_read':
chan_phone.c:405: warning: assignment discards qualifiers from pointer target type
make1: *** chan_phone.o Error 1
/usr/include/linux/ixjuser.h:353: error: syntax error before '*' token
chan_phone.c: In function `phone_read':
chan_phone.c:405: warning: assignment discards qualifiers from pointer target type
make1: *** chan_phone.o Error 1
Solution: edit /usr/include/linux/ixjuser.h file. Change the following line (353):
IXJ_CADENCE_ELEMENT __user *ce; <-------line 353
You must add a , (comma):
IXJ_CADENCE_ELEMENT __user, *ce;
NOTE — The above is also a problem on CentOS kernel 2.6.9-42.0.3... the same fix allows you to compile asterisk on that kernel. — mxyoung 3-3-2007
UDEV setup.
The README.udev in the current CVS states the file to edit is
/etc/udev/rules.d/50-udev.rules
But for Mandrake 10.1 it is in the same directory but the file name is 01-devfs.rules
Mandrake 10.2beta3
In file rhconfig.h, at line 43 there is a typo.
The "&& &&" should be "&&" instead. Romove one set of '&&'.
Mandrake 10.2RC2 and 10.2 LE2005
The version of * included in contrib for these two is still 1.0.7
The version is cooker's contrib is 1.0.8
Don't let the rpm version confuse you: asterisk-1.1-0.20050529.1mdk.i586.rpm
According to the spec file changelog:
- Wed Jun 29 2005 Oden Eriksson <oeriksson@mandriva.com> 1.1-20050529.1mdk
- Tue May 31 2005 Oden Eriksson <oeriksson@mandriva.com> 1.0.8-0.20050529.1mdk
- bristuff-0.2.0-RC8f-CVS (P3)
Mandriva 2006
Currently asterisk-1.1-0.20050529.1mdk- Linux Mandrake: Mandrake Linux general information
- Asterisk OS Platforms

Comments
333
usr/src/linux-$(uname -r)/Makefile
/usr/src/linux-$(uname -r)/include/linux/version.h
usr/src/linux-$(uname -r)/.kernelrelease
Everything worked fine.
Now I am working with an asterisk downloaded from svn checkout http://svn.digium.com/svn/asterisk/trunk asterisk-trunk.
I am missing the chan_zap.so. I need this version of asterisk to work with my cellphone but i do not know how to sort out this
problem. I mean, my tdm11B has light but when i do zap show channels No such command appears. Moreover, when i recompile
asterisk in make menuselect i can not see any zaptel channel!!!
Any idea?
Thanks in advance!!
333
As mentionned Latre, if you get something like "FATAL: Module zaptel not found" when you modprobe zaptel and if you get your zaptel modules installed into a directory like /lib/modules/2.6.XX-XXmdvcustom/misc/ instead of /lib/modules/2.6.XX-XXmdv/misc/, you have to remove the "custom" into the following files :
/usr/src/linux-$(uname -r)/Makefile
/usr/src/linux-$(uname -r)/include/linux/version.h
Latre, thanks *A LOT* for this solution.
For some last Mandriva versions (eg : 2007), you also need to apply the same change to
/usr/src/linux-$(uname -r)/.kernelrelease
After this, you may recompile zaptel :
make clean
make (make is OK, make26 seems to be useless for recent zaptel versions)
make install
make config (to add zaptel startup script /etc/init.d/zaptel)
Good luck for your installation.
JSN.
:-)
333Mandriva 2006 zaptel compilation
- modprobe zaptel
ERROR not found moduleCheck this:
In /lib/modules/2.6.12-12mdkcustom <---in my case that is my kernel version, but not custom !
Mustbe /lib/modules/2.6.12-12mdk <----only that.
so, you need change this lines:
and change:
EXTRAVERSION = -12mdkcustom
to
EXTRAVERSION = -12mdk
then save and exit
Now go to file:
- vi /usr/src/linux-$(uname -r)/include/linux/version.h
change:- define UTS_RELEASE "2.6.12-12mdkcustom"
tocompile zaptel :
make clean
make linux26
make install
and then :
modprobe zaptel
:)
Si tu tienes problemas compilando zaptel con mandriva 2006 con checa bien estos datos:
al compilar zaptel lo mas probable es que te marque una advertencia de modversions o algo asi, pero bien seguimos con la compilacion,
una vez terminada probamos:
modprobe zaptel y si nos marca error pueden ser 2 cosas.....udev o que no se instalo bien el modulo.
En mandriva se genera en /lib/modules/2.6.12mdkcustom y ahi se mete.
Cosa que hace que no nos funcione, para hacerlo bien modificamos:
cambiamos
EXTRAVERSION = -12mdkcustom
a
EXTRAVERSION = -12mdk
despues....
- vi /usr/src/linux-$(uname -r)/include/linux/version.h
cambiamos- define UTS_RELEASE "2.6.12-12mdkcustom"
acompilamos zaptel :
make clean
make linux26
make install
y volvemos a probar.......
y ahi debera quedar!
:)
Saludos.
333Edited and added stuff..