hi i'm trying to configure a TE205P on asterisk@home i've edited /etc/sysconfig/zaptel adding this line: MODULES="$MODULES wct2xxp" now, when the system is loading, i can see that the wct2xxp module is loaded correctly but if i try the command: /usr/local/sbin/genzaptelconf i get: STOPPING ASTERISK STOPPING FOP SERVER Generating '/etc/zaptel.conf' Generating '/etc/asterisk/zapata-auto.conf' STOPPING ASTERISK STOPPING FOP SERVER Unloading zaptel hardware drivers:. Removing zaptel module: ERROR: Module zaptel is in use by wct4xxp [FAILED] Loading zaptel framework: [ OK ] Waiting for zap to come online...OK Loading zaptel hardware modules: wct2xxpRunning ztcfg: [ OK ] SETTING FILE PERMISSIONS Permissions OK STARTING ASTERISK Asterisk ended with exit status 1 Asterisk died with code 1. Automatically restarting Asterisk. Asterisk ended with exit status 1 Asterisk died with code 1. Automatically restarting Asterisk. ----------------------------------------------------- Asterisk could not start! Use 'tail /var/log/asterisk/full' to find out why. ----------------------------------------------------- Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) the file asterisk.ctl esists... [root@asterisk1 /]# ls -la /var/run/asterisk/asterisk.ctl srwxr-xr-x 1 asterisk asterisk 0 Feb 11 07:06 /var/run/asterisk/asterisk.ctl and this is what is reported in the logs: [root@asterisk1 /]# tail /var/log/asterisk/full Feb 11 07:06:05 VERBOSE[4808] logger.c: [chan_zap.so]Feb 11 07:06:05 VERBOSE[4808] logger.c: [chan_zap.so] => (Zapata Telephony w/PRI) Feb 11 07:06:05 VERBOSE[4808] logger.c: == Parsing '/etc/asterisk/zapata.conf': Feb 11 07:06:05 VERBOSE[4808] logger.c: == Parsing '/etc/asterisk/zapata.conf': Found Feb 11 07:06:05 VERBOSE[4808] logger.c: == Parsing '/etc/asterisk/zapata-auto.conf': Feb 11 07:06:05 VERBOSE[4808] logger.c: == Parsing '/etc/asterisk/zapata-auto.conf': Found Feb 11 07:06:05 VERBOSE[4808] logger.c: == Parsing '/etc/asterisk/zapata_additional.conf': Feb 11 07:06:05 VERBOSE[4808] logger.c: == Parsing '/etc/asterisk/zapata_additional.conf': Found Feb 11 07:06:05 WARNING[4808] chan_zap.c: Unable to specify channel 1: No such device or address Feb 11 07:06:05 ERROR[4808] chan_zap.c: Unable to open channel 1: No such device or address here = 0, tmp->channel = 1, channel = 1 Feb 11 07:06:05 ERROR[4808] chan_zap.c: Unable to register channel '1-23' Feb 11 07:06:05 WARNING[4808] loader.c: chan_zap.so: load_module failed, returning -1 Feb 11 07:06:05 WARNING[4808] loader.c: Loading module chan_zap.so failed!
pdhales@optusnet.com.au
2006-Feb-11 15:28 UTC
[Asterisk-Users] configure TE205P on asterisk@home
The genzaptelconf doesn't work with E1/T1 cards in my experience. You will have to configure it by hand. PsulH ----- Original Message ----- From: "nik600" <nik600@gmail.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Saturday, February 11, 2006 11:09 PM Subject: [Asterisk-Users] configure TE205P on asterisk@home> hi > > i'm trying to configure a TE205P on asterisk@home > > i've edited /etc/sysconfig/zaptel adding this line: > > MODULES="$MODULES wct2xxp" > > now, when the system is loading, i can see that the wct2xxp module is > loaded correctly > > but if i try the command: > /usr/local/sbin/genzaptelconf > > i get: > > STOPPING ASTERISK > > STOPPING FOP SERVER > Generating '/etc/zaptel.conf' > Generating '/etc/asterisk/zapata-auto.conf' > > > STOPPING ASTERISK > > STOPPING FOP SERVER > Unloading zaptel hardware drivers:. > Removing zaptel module: ERROR: Module zaptel is in use by wct4xxp > [FAILED] > Loading zaptel framework: [ OK ] > Waiting for zap to come online...OK > Loading zaptel hardware modules: wct2xxpRunning ztcfg: [ OK ] > > SETTING FILE PERMISSIONS > Permissions OK > > STARTING ASTERISK > Asterisk ended with exit status 1 > Asterisk died with code 1. > Automatically restarting Asterisk. > Asterisk ended with exit status 1 > Asterisk died with code 1. > Automatically restarting Asterisk. > > ----------------------------------------------------- > Asterisk could not start! > Use 'tail /var/log/asterisk/full' to find out why. > ----------------------------------------------------- > Unable to connect to remote asterisk (does > /var/run/asterisk/asterisk.ctl exist?) > > the file asterisk.ctl esists... > [root@asterisk1 /]# ls -la /var/run/asterisk/asterisk.ctl > srwxr-xr-x 1 asterisk asterisk 0 Feb 11 07:06/var/run/asterisk/asterisk.ctl> > and this is what is reported in the logs: > [root@asterisk1 /]# tail /var/log/asterisk/full > Feb 11 07:06:05 VERBOSE[4808] logger.c: [chan_zap.so]Feb 11 07:06:05 > VERBOSE[4808] logger.c: [chan_zap.so] => (Zapata Telephony w/PRI) > Feb 11 07:06:05 VERBOSE[4808] logger.c: == Parsing > '/etc/asterisk/zapata.conf': Feb 11 07:06:05 VERBOSE[4808] logger.c: > == Parsing '/etc/asterisk/zapata.conf': Found > Feb 11 07:06:05 VERBOSE[4808] logger.c: == Parsing > '/etc/asterisk/zapata-auto.conf': Feb 11 07:06:05 VERBOSE[4808] > logger.c: == Parsing '/etc/asterisk/zapata-auto.conf': Found > Feb 11 07:06:05 VERBOSE[4808] logger.c: == Parsing > '/etc/asterisk/zapata_additional.conf': Feb 11 07:06:05 VERBOSE[4808] > logger.c: == Parsing '/etc/asterisk/zapata_additional.conf': Found > Feb 11 07:06:05 WARNING[4808] chan_zap.c: Unable to specify channel 1: > No such device or address > Feb 11 07:06:05 ERROR[4808] chan_zap.c: Unable to open channel 1: No > such device or address > here = 0, tmp->channel = 1, channel = 1 > Feb 11 07:06:05 ERROR[4808] chan_zap.c: Unable to register channel '1-23' > Feb 11 07:06:05 WARNING[4808] loader.c: chan_zap.so: load_module > failed, returning -1 > Feb 11 07:06:05 WARNING[4808] loader.c: Loading module chan_zap.so failed! > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >
Nik, Start here: http://www.voip-info.org/wiki/index.php?page=Asterisk+Zap+channels It will give you some background info. Also, be sure to learn the difference between zaptel.conf and Zapata.conf. It took me two weeks to realize what each one does: Zaptel.conf handles the lower-level stuff like framing, coding, clocking, and line build out. Here's a sample from the wiki for a PRI setup: span=1,1,0,esf,b8zs bchan=1-23 dchan=24 Lookup the span syntax here: http://www.voip-info.org/wiki/view/Zaptel.conf+span+syntax The zaptel.conf file basically just tells your Linux box that you've got a T1 card installed and here are the settings for each span. You'll also need to learn about ztcfg, zttool and modprobe. These help you get the zaptel driver loaded and configured. Once you get this stuff handled then you'll need to work on Zapata.conf, which is what tells Asterisk how to handle the zap spans. This file has the potential to be much more complicated because there are so many possible scenarios. However, I learned a lot by taking the time to study the syntax and comments of the Zapata.conf.sample found in the /configs folder of the Asterisk source. Doing so helped me set up a PRI (23B + D) and also a CAS span to my NEC NEAX2400. I highly recommend investing the time to read the info I've pointed out and also tinkering with the hardware. It really is the best way to learn all this stuff. And keep asking questions on the list! -MC -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of nik600 Sent: Sunday, February 12, 2006 12:26 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [Asterisk-Users] configure TE205P on asterisk@home On 2/11/06, pdhales@optusnet.com.au <pdhales@optusnet.com.au> wrote:> The genzaptelconf doesn't work with E1/T1 cards in my experience. > You will have to configure it by hand. > > PsulHok, thanks, do you know where can i get the configuration to set in /etc/zaptel.conf? 1. T1 or E1 2. Line Encoding (B8ZS, AMI, HDB3) 3. T1 Framing and E1 Framing 4. Line build out 5. Clock reference how can i know this settings? _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users