Discussion: Asterisk Zaptel Installation

Comments Filter

'make menuconfig' errors

If you are experiencing errors when trying to run 'make menuconfig', you might not have the required ncurses package installed.

Ncurses installation:
For all the following directions, I used Ncurses version 5.6. For your install, simply replace 5.6 with the most recent version available from
http://ftp.gnu.org/pub/gnu/ncurses/

1. Download the latest ncurses source code:

cd /usr/src
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz

2. Uncompress the source archive:

tar -xzvf ncurses-5.6.tar.gz

3. Configure

cd ncurses-5.6
./configure

4. Compile

make

5. Test (Should bring up a Tower of Hanoi game, if working. Press q to quit.)

test/hanoi

6. Install

make install



by jkcarter, Wednesday 13 of June, 2007 (14:55:18 UTC)
'make linux26' no longer required

The newest version of zaptel (1.4.3 at the time of writing) no longer requires you to type 'make linux26' to compile for Linux kernel 2.6. Simply type 'make' for the third line of the Install section above. The makefile automatically senses whether your system runs on kernel 2.4, and if not, defaults to kernel 2.6.

by jkcarter, Wednesday 13 of June, 2007 (14:34:59 UTC)
After install of FXO, T1 span 2 of TE205 broke

Hello,
I have a system with a TE205 which 2 T1 spans. All was working well until I installed single line, generic fxo
card. Then the second T1 span stopped working. I can't read or write to it.
I yanked the fxo card out to no avail. It still does not work.

What might of happened?

-Mike

by bsd_mike, Monday 22 of January, 2007 (23:13:29 UTC)
Re: Zaptel HELP!

Resolved now, at last in my case. it cause by kernel devel module ---> kernel source
I just install kernel-smp-devel module, then recompile zaptel, when I run cmd " modprobe zaptel" no any error message.
And when I run zttool, I can see my digium card and ztdummy over there.

summary my result,
I'm still doubt if zaptel Makefile have a bug? Just it can't check if the kernal source match the library over currently lib/module/<kernel version>/ as well, at last it not completly. maybe say it can't distinguish normal kernel or smp kernel source.

Actrully I install my OS with "linux smp" option, but I don't know why there only have normal kernel source over /usr/src/kernels/2.6.9-42.0.3.EL-i686, and before I manually create 2 symbol link in '/lib/modules/2.6.9-42.0.3.ELsmp/build' and '/lib/modules/2.6.9-42.0.3.ELsmp/sources' point to '/usr/src/kernels/2.6.9-42.0.3.EL-i686', I even can't finish 'make'.


by radium.fu, Monday 22 of January, 2007 (05:25:06 UTC)
Re: Zaptel HELP!

<blockquote>I got same problem, but with a little different<br><br>
  [root@localhost zaptel-1.2.12]# modprobe zaptel<br>
   FATAL: Module zaptel not found.<br><br>

The server is DELL PE2850, with 2 Processor, so when I install CentOS 4.4, I use below option for install (As testing I do same thin on a VMware virtual server)<br>
   linux smp<br>
And when the system boot up, there have two kernel image for option. <br>

Below is some information<br>
<br>

[root@localhost modules]# ll /lib/modules/<br>
total 24<br>
drwxr-xr-x  4 root root 4096 Jan 20 07:33 2.6.9-42.0.3.EL<br>
drwxr-xr-x  3 root root 4096 Jan 20 08:29 2.6.9-42.0.3.ELsmp<br>
drwxr-xr-x  2 root root 4096 Oct  6 06:16 kabi-4.0-0<br>
drwxr-xr-x  2 root root 4096 Oct  6 06:38 kabi-4.0-0smp<br>
<br>
[root@localhost modules]# ll /lib/modules/ 2.6.9-42.0.3.EL<br>
2.6.9-42.0.3.EL:<br>
total 648 <br>
lrwxrwxrwx  1 root root     37 Jan 20 01:33 build -> /usr/src/kernels/2.6.9-42.0.3.EL-i686<br>
drwxr-xr-x  2 root root   4096 Jan 20 07:33 extra<br>
drwxr-xr-x  9 root root   4096 Jan 19 14:05 kernel<br>
-rw-r--r--  1 root root 121698 Jan 20 07:33 modules.alias<br>
-rw-r--r--  1 root root     69 Jan 20 07:33 modules.ccwmap<br>
-rw-r--r--  1 root root 140985 Jan 20 07:33 modules.dep<br>
-rw-r--r--  1 root root     73 Jan 20 07:33 modules.ieee1394map<br>
-rw-r--r--  1 root root    357 Jan 20 07:33 modules.inputmap<br>
-rw-r--r--  1 root root    235 Jan 20 07:33 modules.isapnpmap<br>
-rw-r--r--  1 root root 117853 Jan 20 07:33 modules.pcimap<br>
-rw-r--r--  1 root root  68688 Jan 20 07:33 modules.symbols<br>
-rw-r--r--  1 root root 156754 Jan 20 07:33 modules.usbmap<br>
lrwxrwxrwx  1 root root      5 Jan 20 01:33 source -> build<br>
<br>
[root@localhost modules]# ll /lib/modules/2.6.9-42.0.3.ELsmp/ <br>
total 640<br>
lrwxrwxrwx  1 root root     33 Jan 20 08:05 build -> /usr/src/linux-2.6.9-42.0.3.ELsmp<br>
drwxr-xr-x  9 root root   4096 Jan 20 01:39 kernel<br>
-rw-r--r--  1 root root 119161 Jan 20 08:29 modules.alias<br>
-rw-r--r--  1 root root     69 Jan 20 08:29 modules.ccwmap<br>
-rw-r--r--  1 root root 144800 Jan 20 08:29 modules.dep<br>
-rw-r--r--  1 root root     73 Jan 20 08:29 modules.ieee1394map<br>
-rw-r--r--  1 root root    357 Jan 20 08:29 modules.inputmap<br>
-rw-r--r--  1 root root    235 Jan 20 08:29 modules.isapnpmap<br>
-rw-r--r--  1 root root 114122 Jan 20 08:29 modules.pcimap<br>
-rw-r--r--  1 root root  67974 Jan 20 08:29 modules.symbols<br>
-rw-r--r--  1 root root 155849 Jan 20 08:29 modules.usbmap<br>
lrwxrwxrwx  1 root root     33 Jan 20 08:06 source -> /usr/src/linux-2.6.9-42.0.3.ELsmp<br>
<br>
No matter what I use linux-2.6.9-42.0.3.ELsmp or linux-2.6.9-42.0.3EL boot system, run below command normal.<br>
   make clean<br>
   make<br>
   make install<br>
<br>
But only when I use linux-2.6.9-42.0.3EL, below command work,<br>
  modprobe zaptel<br>
 <br>
Then if use linux-2.6.9-42.0.3.ELsmp boot, will got error<br>
 [root@localhost zaptel-1.2.12]# modprobe zaptel<br>
   FATAL: Module zaptel not found.<br>
<br>
Who can give me a hand. smp support multi process, it make sense for this case.<br>
<br>
</blockquote>


by radium.fu, Tuesday 08 of May, 2012 (05:15:32 UTC)
RE: modifying the EXTRAVERSION

I'm running into the same issue as Matthew Kennedy did in the previous post, so I followed the suggestion to modify the EXTRAVERSION, but my problem still persist: /dev/zap/ctl is still missing in my system:

<p>

$ ztcfg 
Notice: Configuration file is /etc/zaptel.conf
line 0: Unable to open master device '/dev/zap/ctl'

1 error(s) detected

<p>

 As I'm not familiar with udev's rule syntax, here's my rules list:

<p>

$ ls -l /etc/udev/rules.d
total 12
lrwxrwxrwx 1 root root  20 Nov 24 11:24 020_permission.rules -> ../permissions.rules
lrwxrwxrwx 1 root root  19 Nov 24 11:24 025_libgphoto2.rules -> ../libgphoto2.rules
lrwxrwxrwx 1 root root  23 Nov 24 11:24 025_libsane-extras.rules -> ../libsane-extras.rules
lrwxrwxrwx 1 root root  16 Nov 24 11:24 025_libsane.rules -> ../libsane.rules
lrwxrwxrwx 1 root root  22 Nov 24 11:24 025_logitechmouse.rules -> ../logitechmouse.rules
lrwxrwxrwx 1 root root  12 Nov 24 11:24 050_hal-plugdev.rules -> ../hal.rules
lrwxrwxrwx 1 root root  15 Nov 24 11:24 85-pcmcia.rules -> ../pcmcia.rules
lrwxrwxrwx 1 root root  18 Nov 24 11:24 bluetooth.rules -> ../bluetooth.rules
lrwxrwxrwx 1 root root  14 Nov 24 11:24 hisax.rules -> ../hisax.rules
lrwxrwxrwx 1 root root  13 Nov 24 11:24 udev.rules -> ../udev.rules
lrwxrwxrwx 1 root root  25 Nov 24 11:24 z20_persistent-input.rules -> ../persistent-input.rules
lrwxrwxrwx 1 root root  19 Nov 24 11:24 z20_persistent.rules -> ../persistent.rules
-rw-r--r-- 1 root root 445 Nov 24 11:02 z25_persistent-cd.rules
-rw-r--r-- 1 root root 472 Nov 24 11:02 z25_persistent-net.rules
lrwxrwxrwx 1 root root  33 Nov 24 11:24 z45_persistent-net-generator.rules -> ../persistent-net-generator.rules
lrwxrwxrwx 1 root root  12 Nov 24 11:24 z50run.rules -> ../run.rules
lrwxrwxrwx 1 root root  16 Nov 24 11:24 z55_hotplug.rules -> ../hotplug.rules
lrwxrwxrwx 1 root root  19 Nov 24 11:24 z60_alsa-utils.rules -> ../alsa-utils.rules
lrwxrwxrwx 1 root root  17 Nov 24 11:24 z70_hotplugd.rules -> ../hotplugd.rules
lrwxrwxrwx 1 root root  29 Nov 24 11:24 z75_cd-aliases-generator.rules -> ../cd-aliases-generator.rules
lrwxrwxrwx 1 root root  15 Nov 24 11:24 z80_ttyACM.rules -> ../ttyACM.rules
lrwxrwxrwx 1 root root  16 Nov 24 11:24 z99_knoppix.rules -> ../knoppix.rules
-rw-r--r-- 1 root root 498 Nov 29 23:08 zaptel.rules

<p>

and here's the file content of zaptel.rules

<p>

$ cat zaptel.rules
# zaptel devices with ownership/permissions for running as non-root

KERNEL=="zapctl", NAME="zap/ctl", OWNER="asterisk", GROUP="asterisk", MODE="0660"
KERNEL=="zaptimer", NAME="zap/timer", OWNER="asterisk", GROUP="asterisk", MODE="0660"
KERNEL=="zapchannel", NAME="zap/channel", OWNER="asterisk", GROUP="asterisk", MODE="0660"
KERNEL=="zappseudo", NAME="zap/pseudo", OWNER="asterisk", GROUP="asterisk", MODE="0660"
KERNEL=="zap[0-9]*", NAME="zap/%n", OWNER="asterisk", GROUP="asterisk", MODE="0660"

<p>

I've also noticed that, in the file /etc/udev/udev.rules, this section does exist (probably added via 'make install-udev')

<p>

# Zaptel
KERNEL=="zapctl",               NAME="zap/ctl"
KERNEL=="zaptimer",             NAME="zap/timer"
KERNEL=="zapchannel",           NAME="zap/channel"
KERNEL=="zappseudo",            NAME="zap/pseudo"
KERNEL=="zap[0-9]*",            NAME="zap/%n"

<p>

After modifying the EXTRAVERSION in /usr/src/linux/Makefile, I did:

<p>

$ make clean
$ make linux26
$ make install
$ make install-udev

<p>

Is there anything else I should do to create /dev/tap/ctl ?  

<p>


by Jeffrey, Tuesday 08 of May, 2012 (05:15:50 UTC)
Re: Fedora core 5 + zaptel can't load

I read this page again,and used"make linux26" instead of simple "make".
After that I could run zaptel successfully.

by Kurimoto, Friday 10 of November, 2006 (04:27:38 UTC)
Fedora core 5 + zaptel can't load

I can't run zaptel on Fedora Core 5, I appreciate it if anyone could give me some advice.

I've installed zaptel and try to load it.
Then I recieved this error message.

Loading zaptel framework: Fatal: Module zaptel not found.

File "zaptel.ko" and so on are created in directory "/lib/modules/2.6.18/misc".
I think their location is wrong.
In this case, where should I move them?


kernel version : 2.6.18-1.2224.fc5 i686
zaptel version : 1.2.10

by Kurimoto, Friday 10 of November, 2006 (04:04:13 UTC)
ztdummy and centos

If you are on CentOS 4.3, the kernel source have a small bug you must fix.



cd /usr/src/kernels/2.6.9-34.EL-i686/include/linux/



mv spinlock.h spinlock.h.orig



sed "s/rw_lock_t/rwlock_t/" < spinlock.h.orig > spinlock.h



cd /usr/src/zaptel



by sshadow, Monday 03 of July, 2006 (14:14:52 UTC)

Problem in Installing Zaptel:

I am installing Zaptel from the given Asterisk Zaptel Installation Guide and having these problem when I am executing these commands :

cp /boot/config-2.4.28 /usr/src/linux/.config

Actually there is no such directory as linux in usr/src files

Actually there are two directories as Linux-2.4 and Linux-2.4.20-8

Plz reply if any body Know How to solve this problem


by fawad, Wednesday 07 of June, 2006 (13:06:18 UTC)