Here is what I have done so far.
I copied the patched dahdi_dummy files over to the VE, then downloaded and compiled Asterisk. After I tried to start dahdi I got the errors below.
[root@testpbx dahdi]# service dahdi start
Loading DAHDI hardware modules:
WARNING: Error inserting crc_ccitt (/lib/modules/2.6.18-92.1.18.el5.028stab060.8/kernel/lib/crc-ccitt.ko): Operation not permitted
FATAL: Error inserting dahdi (/lib/modules/2.6.18-92.1.18.el5.028stab060.8/dahdi/dahdi.ko): Operation not permitted
No hardware timing source found in /proc/dahdi, loading dahdi_dummy
Running dahdi_cfg: Notice: Configuration file is /etc/dahdi/system.conf
line 0: Unable to open master device '/dev/dahdi/ctl'
1 error(s) detected
Afterwards I once again copied the devices back over to the VE as follows:
On the HN
[root@myserver dahdi]# for x in `ls /dev/dahdi`; do /usr/sbin/vzctl set 130 --devnodes dahdi/${x}:rw --save; done
Setting devices
Saved parameters for CT 130
Setting devices
Saved parameters for CT 130
Setting devices
Saved parameters for CT 130
Setting devices
Saved parameters for CT 130
[root@myserver dahdi]#
[root@myserver dahdi]# vzctl exec 130 chown -R asterisk /dev/dahdi /lib/udev/devices/dahdi
[root@myserver dahdi]# vzctl exec 130 chgrp -R asterisk /dev/dahdi /lib/udev/devices/dahdi
[root@myserver dahdi]#
On the VE
[root@testpbx dahdi]# service dahdi start
Loading DAHDI hardware modules:
WARNING: Error inserting crc_ccitt (/lib/modules/2.6.18-92.1.18.el5.028stab060.8/kernel/lib/crc-ccitt.ko): Operation not permitted
FATAL: Error inserting dahdi (/lib/modules/2.6.18-92.1.18.el5.028stab060.8/dahdi/dahdi.ko): Operation not permitted
No hardware timing source found in /proc/dahdi, loading dahdi_dummy
Running dahdi_cfg: [ OK ]
[root@testpbx dahdi]#
Then I try to start Asterisk on the VE
[root@testpbx dahdi]# service asterisk restart
Shutting down asterisk: [FAILED]
Starting asterisk: [ OK ]
[root@testpbx dahdi]# Asterisk ended with exit status 1
Asterisk died with code 1.
Automatically restarting Asterisk.
mpg123: no process killed
Asterisk ended with exit status 1
Asterisk died with code 1.
[Updated on: Mon, 06 April 2009 11:35]
Report message to a moderator