[Asterisk-Users] bristuff-0.2.0-RC8n problems and kernel panic

gincantalupo gincantalupo at fgasoftware.com
Tue Nov 8 01:12:27 MST 2005


Hi,
this is my /etc/modprobe.d/zaptel:

options torisa base=0xd0000

alias char-major-196 torisa

install tor2 /sbin/modprobe --ignore-install tor2 && /sbin/ztcfg

install torisa /sbin/modprobe --ignore-install torisa && /sbin/ztcfg

install wcusb /sbin/modprobe --ignore-install wcusb && /sbin/ztcfg

install wcfxo /sbin/modprobe --ignore-install wcfxo && /sbin/ztcfg

install wcfxs /sbin/modprobe --ignore-install wcfxs && /sbin/ztcfg

install ztdynamic /sbin/modprobe --ignore-install ztdynamic && /sbin/ztcfg

install ztd-eth /sbin/modprobe --ignore-install ztd-eth && /sbin/ztcfg

install wct1xxp /sbin/modprobe --ignore-install wct1xxp && /sbin/ztcfg

install wct4xxp /sbin/modprobe --ignore-install wct4xxp && /sbin/ztcfg

install wcte11xp /sbin/modprobe --ignore-install wcte11xp && /sbin/ztcfg

alias wctdm wcfxs


and this is my /etc/init.d/asterisk made by me:

#!/bin/sh

ztcfg -s

# unload wcfxs module because I must load

# qozap module first!

/sbin/rmmod wcfxs

/sbin/rmmod zaptel

# Now I load all the modules in the right order

/sbin/insmod /lib/modules/2.6.8-2-386/misc/zaptel.ko

/sbin/insmod /lib/modules/2.6.8-2-386/misc/qozap.ko

/sbin/insmod /lib/modules/2.6.8-2-386/misc/wcfxs.ko

ztcfg -vv

# this is to exec asterisk as asterisk user

chown --recursive asterisk:asterisk /dev/zap

chmod --recursive u=rwx,g=rx /dev/zap

chown asterisk /dev/tty9

sudo -u asterisk /usr/sbin/safe_asterisk


and it magically works (!!!) even if modifying debian zaptel and wcfxs 
modules loading sequence should be a better way to solve the problem but 
I don't know where to find that damned sequence.

Giorgio Incantalupo


This
Tzafrir Cohen wrote:

>On Mon, Nov 07, 2005 at 03:43:03PM +0100, gincantalupo wrote:
>  
>
>>Hi,
>>
>>I had some problems to with a quadBRI with a 2.6 kernel debian distro.
>>Have you tried to insmod the zaptel.ko module instead of modprobing?
>>It worked for me, hope it will work for you too.
>>
>>Giorgio Incantalupo
>>    
>>
>
>Could you please give more details?
>
>One thing you should try to do is remove the automatic run of ztcfg at
>module load time. Practically: rem-out all the lines in
>/etc/modprobe.d/zaptel . 
>
>There is some black-magic claim that if you un ztcfg more than once it
>may cause a problem to a configured zaphfc module.
>
>Don't forget to run ztcfg manually (or in an init.d script) later.
>
>  
>




More information about the asterisk-users mailing list