login | register
Mon 06 of Oct, 2008 [19:18 UTC]

voip-info.org

Asterisk Linux Mandrake

Created by: wylie,Last modification on Sun 04 of Mar, 2007 [04:55 UTC] by mxyoung

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

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

Solution: M4 missing (get m4-1.4.1-1mdk.i586.rpm)

>/usr/bin/ld: cannot find -lssl
>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

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
- use a more appropriate version because this is really HEAD and not 1.0.8

  • Tue May 31 2005 Oden Eriksson <oeriksson@mandriva.com> 1.0.8-0.20050529.1mdk
- new snap (20050529)
- bristuff-0.2.0-RC8f-CVS (P3)


Mandriva 2006

Currently asterisk-1.1-0.20050529.1mdk



Comments

Comments Filter
222

333

by iban, Wednesday 18 of April, 2007 [15:27:34 UTC]
I am working with Mandriva 2007 and i followed the steps of changing the version of mandriva in the next places:
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!!
222

333

by jsn, Thursday 15 of February, 2007 [04:53:35 UTC]
Mandriva zaptel compilation (Mandriva >= 2006, zaptel >= 1.2)

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.
:-)



222

333Mandriva 2006 zaptel compilation

by Latre, Friday 16 of December, 2005 [22:30:48 UTC]
If you have problems when compile with the error:

  1. modprobe zaptel
ERROR not found module

Check 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:

  1. vi /usr/src/linux-$(uname -r)/Makefile

and change:
EXTRAVERSION = -12mdkcustom
to
EXTRAVERSION = -12mdk

then save and exit

Now go to file:
  1. vi /usr/src/linux-$(uname -r)/include/linux/version.h
change:
  1. define UTS_RELEASE "2.6.12-12mdkcustom"
to
  1. define UTS_RELEASE "2.6.12-12mdk"

compile zaptel :

make clean
make linux26
make install

and then :
modprobe zaptel

:)

    • sorry for my english**

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:

  1. vi /usr/src/linux-$(uname -r)/Makefile

cambiamos
EXTRAVERSION = -12mdkcustom
a
EXTRAVERSION = -12mdk

despues....

  1. vi /usr/src/linux-$(uname -r)/include/linux/version.h
cambiamos
  1. define UTS_RELEASE "2.6.12-12mdkcustom"
a
  1. define UTS_RELEASE "2.6.12-12mdk"

compilamos zaptel :

make clean
make linux26
make install

y volvemos a probar.......

y ahi debera quedar!

:)

Saludos.




222

333Edited and added stuff..

by Asure, Tuesday 25 of January, 2005 [22:02:17 UTC]
I added some things i ran into when doing a vanilla 10.1 box, then re-edited a few times to make it more readable.. (:redface:) first time using wiki..