Adnan Ahmed
2004-Nov-21 12:46 UTC
[Asterisk-Users] Unable to open master device '/dev/zap/ctl'
Jose Hernandez wrote:>I installed TDM400P and X100P pci cards in a system running mandrake 10.1 >official, kernel 2.6.8.1-12mdksmp. I can compile zaptel, libpri, asterisk >and modprobe (zaptel, wcfxs, wcfxo) without errors. Except that running >ztcfg and asterisk fails. > >[root@asterisk asterisk]# ztcfg >Notice: Configuration file is /etc/zaptel.conf >line 3: Unable to open master device '/dev/zap/ctl' > >[root@asterisk asterisk]# asterisk -vvvvvvvvvvvvvvvcg >... > == Parsing '/etc/asterisk/zapata.conf': Found >Nov 22 21:16:11 WARNING[14643]: chan_zap.c:757 zt_open: Unable to open >'/dev/zap/channel': No such file or directory >Nov 22 21:16:11 ERROR[14643]: chan_zap.c:6195 mkintf: Unable to open channel >1: No such file or directory >here = 0, tmp->channel = 1, channel = 1 >Nov 22 21:16:11 ERROR[14643]: chan_zap.c:9139 setup_zap: Unable to register >channel '1' >Nov 22 21:16:11 WARNING[14643]: loader.c:334 ast_load_resource: chan_zap.so: >load_module failed, returning -1 > == Unregistered channel type 'Tor' > == Unregistered channel type 'Zap' >Nov 22 21:16:11 WARNING[14643]: loader.c:429 load_modules: Loading module >chan_zap.so failed! >[root@asterisk asterisk]# Ouch ... error while writing audio data: : Broken >pipe > >zaptel.conf >loadzone = us >fxoks = 1 > > >I found an page on the wiki that suggested commenting the "ifeq ($(DYNFS),) >else end if" block in Makefile. I made the changes recompiled without errors >but still same error running ztcfg and starting asterisk. > >Any suggestions? > >- Jose > >double check your zaptel.conf file you missing alot like in your TDM400 how many modules you are using 1 fxs/fxo 2 04 more and also in x100p using fxo or fxs after checking these modules properly define in zaptel.conf like > >fxoks =1 ;x100p fxsks = 3 ;TDM400 etc..... hope this helps.>_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users >To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > >
Jose Hernandez
2004-Nov-23 23:41 UTC
[Asterisk-Users] Unable to open master device '/dev/zap/ctl'
I installed TDM400P and X100P pci cards in a system running mandrake 10.1 official, kernel 2.6.8.1-12mdksmp. I can compile zaptel, libpri, asterisk and modprobe (zaptel, wcfxs, wcfxo) without errors. Except that running ztcfg and asterisk fails. [root@asterisk asterisk]# ztcfg Notice: Configuration file is /etc/zaptel.conf line 3: Unable to open master device '/dev/zap/ctl' [root@asterisk asterisk]# asterisk -vvvvvvvvvvvvvvvcg ... == Parsing '/etc/asterisk/zapata.conf': Found Nov 22 21:16:11 WARNING[14643]: chan_zap.c:757 zt_open: Unable to open '/dev/zap/channel': No such file or directory Nov 22 21:16:11 ERROR[14643]: chan_zap.c:6195 mkintf: Unable to open channel 1: No such file or directory here = 0, tmp->channel = 1, channel = 1 Nov 22 21:16:11 ERROR[14643]: chan_zap.c:9139 setup_zap: Unable to register channel '1' Nov 22 21:16:11 WARNING[14643]: loader.c:334 ast_load_resource: chan_zap.so: load_module failed, returning -1 == Unregistered channel type 'Tor' == Unregistered channel type 'Zap' Nov 22 21:16:11 WARNING[14643]: loader.c:429 load_modules: Loading module chan_zap.so failed! [root@asterisk asterisk]# Ouch ... error while writing audio data: : Broken pipe zaptel.conf loadzone = us fxoks = 1 I found an page on the wiki that suggested commenting the "ifeq ($(DYNFS),) else end if" block in Makefile. I made the changes recompiled without errors but still same error running ztcfg and starting asterisk. Any suggestions? - Jose
Leandro Morgado
2004-Nov-24 06:45 UTC
[Asterisk-Users] Unable to open master device '/dev/zap/ctl'
Jose Hernandez wrote:>I installed TDM400P and X100P pci cards in a system running mandrake 10.1 >official, kernel 2.6.8.1-12mdksmp. I can compile zaptel, libpri, asterisk >and modprobe (zaptel, wcfxs, wcfxo) without errors. Except that running >ztcfg and asterisk fails. > >[root@asterisk asterisk]# ztcfg >Notice: Configuration file is /etc/zaptel.conf >line 3: Unable to open master device '/dev/zap/ctl' > >[root@asterisk asterisk]# asterisk -vvvvvvvvvvvvvvvcg >... > == Parsing '/etc/asterisk/zapata.conf': Found >Nov 22 21:16:11 WARNING[14643]: chan_zap.c:757 zt_open: Unable to open >'/dev/zap/channel': No such file or directory > >Maybe the zaptel devices in /dev were not created properly. If they are there, make sure that asterisk is running as a user that has permission to read the /dev/zaptel devices. Hope that helps! Leandro Morgado
Jose Hernandez
2004-Nov-24 17:10 UTC
[Asterisk-Users] Unable to open master device '/dev/zap/ctl'
I added the rules to udev permissions file and changed zaptel.conf, restarted. I still get the same error; [root@asterisk frank]# ztcfg -vv Zaptel Configuration =====================Channel map: Channel 01: FXS Kewlstart (Default) (Slaves: 01) Channel 02: FXO Kewlstart (Default) (Slaves: 02) 2 channels configured. Notice: Configuration file is /etc/zaptel.conf line 5: Unable to open master device '/dev/zap/ctl' zaptel.conf fxsks=1 ;X100P fxoks=2 ;TDM400, TDM10B (1 FXS port) loadzone=us defaultzone=us This is the output from "ls -al za*" in /dev crw------- 1 root root 196, 1 Nov 23 15:33 /dev/zap1 crw------- 1 root root 196, 254 Nov 23 15:33 /dev/zapchannel crw------- 1 root root 196, 0 Nov 23 15:33 /dev/zapctl crw------- 1 root root 196, 255 Nov 23 15:33 /dev/zappseudo crw------- 1 root root 196, 253 Nov 23 15:33 /dev/zaptimer Are these names correct? The error has /dev/zap/ctl but in /dev I have /dev/zapctl Anything else I should try? Thanks - Jose
Juan Luis Moyano
2005-Apr-08 08:17 UTC
[Asterisk-Users] Unable to open master device '/dev/zap/ctl'
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I installed asterisk (1.0.7) on my Gentoo (2.6.11-gentoo-r3) box with udev support, also installed zaptel (1.0.7). I have a TDM31B correctly installed. My problem comes right after I modprobe the card and I execute 'ztcfg -vv', it gives me the following error: line 3: Unable to open master device '/dev/zap/ctl' It seems that the system is not creating the /zap devices. I made all the modifications to the /etc/udev/rules.d and permissions.d as stated on README.udev, and it is still not creating the devices. I don't know what else to do. Please shed me some light on this. Below I post the my /var/log/messages. Thanks in advance. Apr 7 22:34:14 vocero kernel: Module 0: Installed -- AUTO FXS/DPO Apr 7 22:34:14 vocero kernel: Module 1: Installed -- AUTO FXS/DPO Apr 7 22:34:14 vocero kernel: Module 2: Installed -- AUTO FXS/DPO Apr 7 22:34:14 vocero kernel: Module 3: Installed -- AUTO FXO (FCC mode) Apr 7 22:34:14 vocero kernel: Found a Wildcard TDM: Wildcard TDM400P REV H (4 modules) - -- Juan Luis Moyano juanmoyano@southecon.com.ar -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCVqB6cpv/tMr+H20RAi4cAJ0dHIgPzCD0dKcANoOhYowQrmKRYACg1c8R 99VZ+yvJVki+/O6MfJ7/D2I=2FGC -----END PGP SIGNATURE-----
Juan Luis Moyano
2005-Apr-08 11:33 UTC
[Asterisk-Users] Unable to open master device '/dev/zap/ctl'
Sorry for the inconvenience, problem solved! I had left by mistake the defs26 USE flag enabled at /etc/portage/package.use, oops! Thanks for your help! -- Juan Luis Moyano Ben Hencke wrote:> Does anything show up in /var/log/messages when you do the "modprobe > zaptel" ? I get this line: > Zapata Telephony Interface Registered on major 196 > > That may give you some hint as to why it is not loading. > - Ben
Kumara Jayaweera
2005-Jun-15 11:57 UTC
[Asterisk-Users] Unable to open master device '/dev/zap/ctl'
Hi all, when I try to load asterisk I get this error [chan_zap.so] => (Zapata Telephony w/PRI) == Parsing '/etc/asterisk/zapata.conf': Found Jun 15 10:41:29 WARNING[3615]: chan_zap.c:869 zt_open: Unable to open '/dev/zap/channel': No such file or directory Jun 15 10:41:29 ERROR[3615]: chan_zap.c:6572 mkintf: Unable to open channel 1: No such file or directory here = 0, tmp->channel = 1, channel = 1 Jun 15 10:41:29 ERROR[3615]: chan_zap.c:9910 setup_zap: Unable to register channel '1' Jun 15 10:41:29 WARNING[3615]: loader.c:402 __load_resource: chan_zap.so: load_module failed, returning -1 Jun 15 10:41:29 WARNING[3615]: loader.c:523 load_modules: Loading module chan_zap.so failed! [root@proxy asterisk]# if I try to run asterisk I get this error [root@proxy ~]# cd /etc/asterisk [root@proxy asterisk]# ztcfg -vv Notice: Configuration file is /etc/zaptel.conf line 0: Unable to open master device '/dev/zap/ctl' line 204: Cannot get number of tones chanel 1 line 204: Cannot init tones chanel 1 line 204: Cannot get number of tones chanel 2 line 204: Cannot init tones chanel 2 5 error(s) detected [root@proxy asterisk]# please help me kumara
Manuel Casal
2006-Jan-16 06:00 UTC
[Asterisk-Users] Unable to open master device '/dev/zap/ctl'
Hi, I'm running A@H with a TDM2400 When i try to load the wctd24xx always get the same error: Notice: Configuration file is /etc/zaptel.conf line 0: Unable to open master device '/dev/zap/ctl' 1 error(s) detected I try to load the modules manualy: [root@asterisk1 ~]# modprobe zaptel [root@asterisk1 ~]# modprobe wctdm24xxp Notice: Configuration file is /etc/zaptel.conf line 0: Unable to open master device '/dev/zap/ctl' 1 error(s) detected /var/log/messages: Jan 16 07:53:30 asterisk1 kernel: Zapata Telephony Interface Registered on major 196 Jan 16 07:55:12 asterisk1 kernel: ACPI: PCI interrupt 0000:02:0c.0[A] -> GSI 20 (level, low) -> IRQ 217 Jan 16 07:55:12 asterisk1 kernel: PCI Config reg is 02900117 Jan 16 07:55:12 asterisk1 kernel: WCTDM2400P: New Reg: fe590000! Jan 16 07:55:12 asterisk1 kernel: Detected REG0: 00000100 Jan 16 07:55:12 asterisk1 kernel: Detected REG1: 00007849 Jan 16 07:55:12 asterisk1 kernel: Detected REG2: 0000001d Jan 16 07:55:12 asterisk1 kernel: (pre) Reg fc is 50000027 Jan 16 07:55:12 asterisk1 kernel: (post) Reg fc is 50000024 Jan 16 07:55:12 asterisk1 kernel: Detected REG2: 0000ffff Jan 16 07:55:12 asterisk1 kernel: wctdm2400p: reg is a04c0004 Jan 16 07:55:12 asterisk1 kernel: Resetting the modules... Jan 16 07:55:12 asterisk1 kernel: During Resetting the modules... Jan 16 07:55:12 asterisk1 kernel: After resetting the modules... Jan 16 07:55:13 asterisk1 kernel: Port 1: Not installed Jan 16 07:55:13 asterisk1 kernel: Port 2: Not installed Jan 16 07:55:13 asterisk1 kernel: Port 3: Not installed Jan 16 07:55:13 asterisk1 kernel: Port 4: Not installed Jan 16 07:55:13 asterisk1 kernel: Port 5: Not installed Jan 16 07:55:14 asterisk1 kernel: Port 6: Not installed Jan 16 07:55:14 asterisk1 kernel: Port 7: Not installed Jan 16 07:55:14 asterisk1 kernel: Port 8: Not installed Jan 16 07:55:14 asterisk1 kernel: Port 9: Not installed Jan 16 07:55:14 asterisk1 kernel: Port 10: Not installed Jan 16 07:55:15 asterisk1 kernel: Port 11: Not installed Jan 16 07:55:15 asterisk1 kernel: Port 12: Not installed Jan 16 07:55:15 asterisk1 kernel: Port 13: Installed -- AUTO FXO (FCC mode) Jan 16 07:55:16 asterisk1 kernel: Port 14: Installed -- AUTO FXO (FCC mode) Jan 16 07:55:16 asterisk1 kernel: Port 15: Installed -- AUTO FXO (FCC mode) Jan 16 07:55:17 asterisk1 kernel: Port 16: Installed -- AUTO FXO (FCC mode) Jan 16 07:55:17 asterisk1 kernel: Port 17: Installed -- AUTO FXO (FCC mode) Jan 16 07:55:18 asterisk1 kernel: Port 18: Installed -- AUTO FXO (FCC mode) Jan 16 07:55:18 asterisk1 kernel: Port 19: Installed -- AUTO FXO (FCC mode) Jan 16 07:55:19 asterisk1 kernel: Port 20: Installed -- AUTO FXO (FCC mode) Jan 16 07:55:19 asterisk1 kernel: Port 21: Installed -- AUTO FXO (FCC mode) Jan 16 07:55:19 asterisk1 kernel: Port 22: Installed -- AUTO FXO (FCC mode) Jan 16 07:55:20 asterisk1 kernel: Port 23: Installed -- AUTO FXO (FCC mode) Jan 16 07:55:20 asterisk1 kernel: Port 24: Installed -- AUTO FXO (FCC mode) Jan 16 07:55:20 asterisk1 kernel: VPM: Chip 0: ver 33 Jan 16 07:55:20 asterisk1 kernel: VPM: U-law mode Jan 16 07:55:20 asterisk1 kernel: VPM: Chip 1: ver 33 Jan 16 07:55:20 asterisk1 kernel: VPM: Chip 2: ver 33 Jan 16 07:55:20 asterisk1 kernel: VPM: Chip 3: ver 33 Jan 16 07:55:21 asterisk1 kernel: VPM: DTMF threshold set to 1250 Jan 16 07:55:21 asterisk1 kernel: VPM: Present and operational Jan 16 07:55:21 asterisk1 kernel: Found a Wildcard TDM: Wildcard TDM2400P Prototype (24 modules) Seems that fails the ztcfg command in the modules installations. But i dont know how to solve it Any Ideas?? here is my zapata.conf [root@asterisk1 ~]# cat /etc/zaptel.conf fxsks=13-24 loadzone = us defaultzone = us Thanks in advance. -- Manuel Casal mach@e-sistemas.net Sistem@s.NET Sistemas de Informaci?n y Protecci?n de Datos, S.L. Telf. + 34 902 678006 e-mail: info@e-sistemas.net web: http://www.e-sistemas.net -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3494 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060116/f8958f6a/smime.bin