Sebastian Reitenbach
2007-Jun-13 04:19 UTC
[asterisk-users] problem starting asterisk, unable to load chan_zap
Hi all, I am running asterisk 1.2.18, zaptel 1.2.18, libpri 1.2.4. on a suse 10.2, running kernel 2.6.18.2-34-default. The zaptel drivers are loaded on boot via /etc/init.d/zaptel, but Asterisk is unable to start. It ends with the following message: [chan_zap.so] => (Zapata Telephony w/PRI) Jun 13 13:05:41 VERBOSE[3356] logger.c: == Parsing '/etc/asterisk/zapata.conf': Found Jun 13 13:05:41 WARNING[3356] chan_zap.c: Unable to specify channel 1: No such device or address Jun 13 13:05:41 ERROR[3356] chan_zap.c: Unable to open channel 1: No such device or address here = 0, tmp->channel = 1, channel = 1 Jun 13 13:05:41 ERROR[3356] chan_zap.c: Unable to register channel '1-15' Jun 13 13:05:41 WARNING[3356] loader.c: chan_zap.so: load_module failed, returning -1 Jun 13 13:05:41 DEBUG[3356] channel.c: Unregistering channel type 'Zap' Jun 13 13:05:41 WARNING[3356] loader.c: Loading module chan_zap.so failed! I checked that the module wcte11xp is loaded before I start asterisk. I can fix the problem when I do: rmmod wcte11xp && modprobe wcte11xp after that rmmod && modprobe asterisk works. The same happens, on a similar machine, the only difference is that I need to load the wcte12xp driver, because of an other card. Anybody knows what my problem is? kind regards Sebastian
Doug Lytle
2007-Jun-13 04:42 UTC
[asterisk-users] problem starting asterisk, unable to load chan_zap
Sebastian Reitenbach wrote:> Hi all, > > I am running asterisk 1.2.18, zaptel 1.2.18, libpri 1.2.4. on a suse 10.2, > running kernel 2.6.18.2-34-default. > > The zaptel drivers are loaded on boot via /etc/init.d/zaptel, but Asterisk > is unable to start. It ends with the following message: > [chan_zap.so] => (Zapata Telephony w/PRI) >When you type ztcfg -vvv, what does it display? Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Sebastian Reitenbach
2007-Jun-13 06:11 UTC
[asterisk-users] problem starting asterisk, unable to load chan_zap
Hi,> > > > When you type ztcfg -vvv, what does it display? >After reboot it shows the following: asterisk1:~ # ztcfg -vvv Zaptel Configuration ===================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) Channel 05: Clear channel (Default) (Slaves: 05) Channel 06: Clear channel (Default) (Slaves: 06) Channel 07: Clear channel (Default) (Slaves: 07) Channel 08: Clear channel (Default) (Slaves: 08) Channel 09: Clear channel (Default) (Slaves: 09) Channel 10: Clear channel (Default) (Slaves: 10) Channel 11: Clear channel (Default) (Slaves: 11) Channel 12: Clear channel (Default) (Slaves: 12) Channel 13: Clear channel (Default) (Slaves: 13) Channel 14: Clear channel (Default) (Slaves: 14) Channel 15: Clear channel (Default) (Slaves: 15) Channel 16: D-channel (Default) (Slaves: 16) Channel 17: Clear channel (Default) (Slaves: 17) Channel 18: Clear channel (Default) (Slaves: 18) Channel 19: Clear channel (Default) (Slaves: 19) Channel 20: Clear channel (Default) (Slaves: 20) Channel 21: Clear channel (Default) (Slaves: 21) Channel 22: Clear channel (Default) (Slaves: 22) Channel 23: Clear channel (Default) (Slaves: 23) Channel 24: Clear channel (Default) (Slaves: 24) Channel 25: Clear channel (Default) (Slaves: 25) Channel 26: Clear channel (Default) (Slaves: 26) Channel 27: Clear channel (Default) (Slaves: 27) Channel 28: Clear channel (Default) (Slaves: 28) Channel 29: Clear channel (Default) (Slaves: 29) Channel 30: Clear channel (Default) (Slaves: 30) Channel 31: Clear channel (Default) (Slaves: 31) 31 channels configured. Changing signalling on channel 1 from Unused to Clear channel Changing signalling on channel 2 from Unused to Clear channel Changing signalling on channel 3 from Unused to Clear channel Changing signalling on channel 4 from Unused to Clear channel Changing signalling on channel 5 from Unused to Clear channel Changing signalling on channel 6 from Unused to Clear channel Changing signalling on channel 7 from Unused to Clear channel Changing signalling on channel 8 from Unused to Clear channel Changing signalling on channel 9 from Unused to Clear channel Changing signalling on channel 10 from Unused to Clear channel Changing signalling on channel 11 from Unused to Clear channel Changing signalling on channel 12 from Unused to Clear channel Changing signalling on channel 13 from Unused to Clear channel Changing signalling on channel 14 from Unused to Clear channel Changing signalling on channel 15 from Unused to Clear channel Changing signalling on channel 16 from Unused to HDLC with FCS check Changing signalling on channel 17 from Unused to Clear channel Changing signalling on channel 18 from Unused to Clear channel Changing signalling on channel 19 from Unused to Clear channel Changing signalling on channel 20 from Unused to Clear channel Changing signalling on channel 21 from Unused to Clear channel Changing signalling on channel 22 from Unused to Clear channel Changing signalling on channel 23 from Unused to Clear channel Changing signalling on channel 24 from Unused to Clear channel Changing signalling on channel 25 from Unused to Clear channel Changing signalling on channel 26 from Unused to Clear channel Changing signalling on channel 27 from Unused to Clear channel Changing signalling on channel 28 from Unused to Clear channel Changing signalling on channel 29 from Unused to Clear channel Changing signalling on channel 30 from Unused to Clear channel Changing signalling on channel 31 from Unused to Clear channel asterisk1:~ # rmmod wcte11xp && modprobe wcte11xp asterisk1:~ # ztcfg -vvv Zaptel Configuration ===================== SPAN 1: CCS/HDB3 Build-out: 0 db (CSU)/0-133 feet (DSX-1) Channel map: Channel 01: Clear channel (Default) (Slaves: 01) Channel 02: Clear channel (Default) (Slaves: 02) Channel 03: Clear channel (Default) (Slaves: 03) Channel 04: Clear channel (Default) (Slaves: 04) Channel 05: Clear channel (Default) (Slaves: 05) Channel 06: Clear channel (Default) (Slaves: 06) Channel 07: Clear channel (Default) (Slaves: 07) Channel 08: Clear channel (Default) (Slaves: 08) Channel 09: Clear channel (Default) (Slaves: 09) Channel 10: Clear channel (Default) (Slaves: 10) Channel 11: Clear channel (Default) (Slaves: 11) Channel 12: Clear channel (Default) (Slaves: 12) Channel 13: Clear channel (Default) (Slaves: 13) Channel 14: Clear channel (Default) (Slaves: 14) Channel 15: Clear channel (Default) (Slaves: 15) Channel 16: D-channel (Default) (Slaves: 16) Channel 17: Clear channel (Default) (Slaves: 17) Channel 18: Clear channel (Default) (Slaves: 18) Channel 19: Clear channel (Default) (Slaves: 19) Channel 20: Clear channel (Default) (Slaves: 20) Channel 21: Clear channel (Default) (Slaves: 21) Channel 22: Clear channel (Default) (Slaves: 22) Channel 23: Clear channel (Default) (Slaves: 23) Channel 24: Clear channel (Default) (Slaves: 24) Channel 25: Clear channel (Default) (Slaves: 25) Channel 26: Clear channel (Default) (Slaves: 26) Channel 27: Clear channel (Default) (Slaves: 27) Channel 28: Clear channel (Default) (Slaves: 28) Channel 29: Clear channel (Default) (Slaves: 29) Channel 30: Clear channel (Default) (Slaves: 30) Channel 31: Clear channel (Default) (Slaves: 31) 31 channels configured. kind regards Sebastian
Doug Lytle
2007-Jun-13 06:15 UTC
[asterisk-users] problem starting asterisk, unable to load chan_zap
Sebastian Reitenbach wrote:> Hi, > > >>> >>> >> When you type ztcfg -vvv, what does it display? >> >> > >How about your zaptel.conf, zapata.conf and the snip of your dial plan that is doing the dialing. Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Sebastian Reitenbach
2007-Jun-13 07:18 UTC
[asterisk-users] problem starting asterisk, unable to load chan_zap
Asterisk Users Mailing List - Non-Commercial Discussion<asterisk-users@lists.digium.com> wrote:> Sebastian Reitenbach wrote: > > Hi, > > > > > >>> > >>> > >> When you type ztcfg -vvv, what does it display? > >> > >> > > > > > > How about your zaptel.conf, zapata.conf and the snip of your dial plan > that is doing the dialing. >my /etc/zaptel.conf #Configuration for EuroISDN (E1) span=1,1,0,ccs,hdb3,crc4 bchan=1-15,17-31 dchan=16 loadzone = de defaultzone=nl =====================================================[trunkgroups] [channels] language=en context=from-pstn signalling=pri_cpe ; pri_cpe = PRI slave ; pri_net = PRI master switchtype=euroisdn rxwink=300 ; Atlas seems to use long (250ms) winks callerid=asreceived usecallerid=yes nationalprefix=0 internationalprefix=00 localprefix=03381 callerid=asreceived hidecallerid=no callwaiting=yes usecallingpres=yes callwaitingcallerid=yes threewaycalling=yes transfer=yes cancallforward=yes callreturn=yes echocancel=yes echocancelwhenbridged=yes echotraining=400 rxgain=0.0 txgain=0.0 overlapdial=yes group=1 callgroup=1 pickupgroup=1 immediate=no faxdetect=incoming channel => 1-15,17-31 callerid=asreceived =========================================================================start snippet of zap lines from extensions.conf: [from-pstn-custom] exten => _X.,1,Set(CALLERID(num)=0${CALLERID(num)}) [from-trunk] ; just an alias since VoIP shouldn't be called PSTN include => from-pstn [from-pstn] include => from-pstn-custom ; create this context in extensions_custom.conf to include customizations include => ext-did include => from-pstn-timecheck ; this has to be included otherwise it overrides ext-did exten => fax,1,Goto(ext-fax,in_fax,1) but I do not touch any file below /etc. I only have to rmmod && modprobe the module for the PRI Interface to make it work. kind regards Sebastian
Sebastian Reitenbach
2007-Jun-13 23:10 UTC
[asterisk-users] problem starting asterisk, unable to load chan_zap
Hi,> > > Two things come to mind, > > (1) being that you don't have the TE110P card jumped for an E1. > (2) UDEV isn't creating the devices fast enough for the driver load. > > My guess is it's UDEV. You can test this theory by creating a startup > script that loads the modules, put a sleep statement in that script that > waits for a second or so.I have the asterisks running as a cluster managed via linux-ha. First the driver loads when booting, then I log in, and start linux-ha, which then starts asterisk. I think that is time enough for udev to create the devices, but it is not doing it in the first place. I added a rmmod wcte11xp && modprobe wcte11xp to /etc/init.d/zaptel into the start section, and when I then login I have no problem to start asterisk. Sebastian
Sebastian Reitenbach
2007-Jun-13 23:24 UTC
[asterisk-users] problem starting asterisk, unable to load chan_zap
Hi,> > Easy to check if the problem is udev: > > ls -l /sys/class/zaptel >there are lots of subdirectories in there, at least after a rmmod && modprobe. I can reboot later to see how it looks like before that.> > If there are files there and not under /dev/zap, udev is to blame.in /dev/zap there are a lot of devices, but as above, at least after a rmmod && modprobe. I can reboot later to see how it looks like before that.> > What kernel version is it? What distribution?openSUSE 10.2, kernel 2.6.18.2-34-default> > Anyway, does Asterisk still fail?not when I do a rmmod && modprobe the wcte11xp or wcte12xp respectively, without that, it fails.> > As which user do you run Asterisk?/usr/sbin/asterisk -U asterisk -G asterisk -vvvg -c> > ls -la /dev/zapshows a lot of devices: ... crw-rw---- 1 asterisk asterisk 196, 8 2007-06-14 07:25 8 crw-rw---- 1 asterisk asterisk 196, 9 2007-06-14 07:25 9 crw-rw---- 1 asterisk asterisk 196, 254 2007-06-14 07:25 channel crw-rw---- 1 asterisk asterisk 196, 0 2007-06-14 07:25 ctl crw-rw---- 1 asterisk asterisk 196, 255 2007-06-14 07:25 pseudo crw-rw---- 1 asterisk asterisk 196, 253 2007-06-14 07:25 timer kind regards Sebastian
Seemingly Similar Threads
- Fedora Core 4 not recognizing X100P cards
- chan_zap.c:8534 pri_dchannel: PRI Error
- ZT_CHANCONFIG failed on channel 1: No such device or address
- problem about voice when using TDM2400p with VPMADT032 echo canceller module
- My first Asterisk - Not recognizing X100P clone