Try creating a symbolic link from /etc/zaptel.conf to /mnt/kd/zaptel.conf and leave your zaptel.conf on the keydisk. This should fix things.
Cleveland Electronic Services wrote: > Hi Mart, > > Finally I have a breakthrough of sorts problem description below, I had to > compare some of my other unflavoured Asterisk installations & notes here is > what I had to get it working, hope this helps someone else. > > I had to run the following at root. > ---------------------------------------- > pbx ~ # service zaptel start > No Zap hardware - loading ztdummy > ---------------------------------------- > pbx ~ # modprobe zaptel > > you should not have any errors or output > ---------------------------------------- > pbx ~ # lsmod | grep zaptel > > output as follows > > zaptel 196516 1 ztdummy > hdlc 6180 1 zaptel > ppp_generic 25428 1 zaptel > ----------------------------------------- > pbx ~ # modprobe ztdummy > > you should not have any errors or output > ----------------------------------------- > pbx ~ # lsmod | grep ztdummy > > output as follows > > ztdummy 4680 0 > zaptel 196516 1 ztdummy > rtc 12336 1 ztdummy > ----------------------------------------- > pbx ~ # modprobe wctdm > > you should not have any errors or output > ----------------------------------------- > pbx ~ # /sbin/ztcfg -vv > ***************************************** > Notice: Configuration file is /etc/zaptel.conf > line 0: Unable to open configuration file '/etc/zaptel.conf' > > 1 error(s) detected > ************************************************************ > What the above told me was that I did not have zaptel.conf (it was in > mnt/kd) in the right place, I moved zaptel.conf to (/etc/zaptel.conf) > And ran the command again. > > pbx ~ # /sbin/ztcfg -vv > > output as follows > > Zaptel Version: 1.4.12.1 > Echo Canceller: MG2 > Configuration > ====================== > > > Channel map: > > Channel 01: FXS Kewlstart (Default) (Slaves: 01) > Channel 02: FXS Kewlstart (Default) (Slaves: 02) > > 2 channels to configure. > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > Works ok till you do a reboot and then things all go pear shape again, I to > rerun he above wonder what's going on here. > > Cheers > > Cleve Jansen > > > -----Original Message----- > From: Martin Rogers [mailto:fromastlinux-us...@mhr.me.uk] > Sent: Monday, 2 March 2009 12:00 AM > To: AstLinux Users Mailing List > Subject: Re: [Astlinux-users] Astlinux 0.6.3 Some strange issues please help > > Hi Cleve > > I would not necessarily expect to see zaptel.conf, but in the past the > zaptata.conf has been present. > > Do you see any errors during startup? > What happens if you run > > ztcfg -vv > > One thing which might be different is that I based my rc.conf on my > 0.6.2 rc.conf, not the one which came with 0.6.3. But I am really > clutching at straws here. > > Can anyone comment on whether DAHDI has actually meant to have replaced > ZAP in 0.6.3 and the only reason it runs for me is that my rc.conf is > 0.6.2 based ? > > regards > Mart > > Cleveland Electronic Services wrote: > >> Hi Mart, >> >> Thanks for your persistence, I have checked and rechecked the settings and >> they are all the same as your except the following. >> >> My red daughter boards are on position 1 & 2 which I have mage the changes >> to reflect this. >> >> What has got me totally stuffed is the following, >> >> 1.The mnt/kd/zaptel.conf & mnt/kd/asterisk/zapata.conf files were not >> > there > >> I had to manually create them. On a new install do I have to run a command >> or something? >> 2.Does you analogue cards show up on the asterisk gui? >> >> I am at a loss as to why this is not working. >> >> Cleve Jansen >> >> >> >> -----Original Message----- >> From: Martin Rogers [mailto:fromastlinux-us...@mhr.me.uk] >> Sent: Sunday, 1 March 2009 10:44 PM >> To: AstLinux Users Mailing List >> Subject: Re: [Astlinux-users] Astlinux 0.6.3 Some strange issues please >> > help > >> Not that this affect the operation, but >> callerid="PSTN Line Two" <PSTN 1> >> should be >> callerid="PSTN Line Two" <PSTN 2> >> >> That will teach me to try and change the original settings to something >> more intutive :-) >> >> Mart >> >> Martin Rogers wrote: >> >>> Hi Cleve >>> >>> to be clear my hardware is a TDM400 with two FXO (Red PSTN line) >>> daughter boards. These settings apply to this configuration. If yours >>> is greatly different then you should investigate some more. Also, I am >>> running in the UK so my settings have been adjusted accordingly, you may >>> have to make further tweaks to fine tune for your locale/country. These >>> should not affect your TDM setup though. >>> >>> >>> 1. /mnt/kd/zaptel.conf. Note no comment lines allowed in this file. My >>> FXOs are in positions 2 and 3 (1 and 4 are empty). Note fxsks is needed >>> for FXO cards - this is not a typo. >>> ---------------------------------------------------------------------- >>> >>> fxsks=2 >>> fxsks=3 >>> loadzone=uk >>> defaultzone=uk >>> >>> >>> 2. /mnt/kd/asterisk/zapata.conf. I'm pretty sure the group= settings are >>> superfluous, but have not been removed from an earlier configuration. >>> Again, we _do_ mean fxs signalling for FXO cards. The channel=>2 and >>> channel=>3 settings relate to positions 2 and 3 on the TDM card. >>> --------------------------------------------------------------------- >>> >>> ; >>> ; Zapata telephony interface >>> ; >>> ; Configuration file >>> >>> [trunkgroups] >>> >>> [channels] >>> hanguponpolarityswitch=yes >>> cidsignalling=v23 ; Added for UK CLI detection >>> cidstart=polarity ; Added for UK CLI detection >>> ukcallerid = yes ; Added for UK CLI detection >>> sendcalleridafter=2 ; Added for UK CLI detection >>> immediate=no ; as we recieve cli info before not after first ring. >>> context=default >>> usecallerid=yes >>> hidecallerid=no >>> callwaiting=no >>> usecallingpres=yes >>> callwaitingcallerid=yes >>> threewaycalling=yes >>> transfer=yes >>> cancallforward=yes >>> callreturn=yes >>> echocancel=yes >>> echotraining=yes >>> echocancelwhenbridged=yes >>> rxgain=0.0 >>> txgain=0.0 >>> >>> group=2 >>> callerid="PSTN Line Two" <PSTN 1> >>> signalling=fxs_ks >>> context=incoming-pstn2 >>> mailbox=779 >>> channel=>2 >>> >>> group=3 >>> callerid="PSTN Line One" <PSTN 1> >>> signalling=fxs_ks >>> context=incoming-pstn1 >>> mailbox=778 >>> channel=>3 >>> >>> >>> 3. /mnt/kd/rc.conf >>> -------------------------------------- >>> >>> The main change you need is to uncomment : >>> >>> ZAPMODS="wctdm" >>> >>> In order that I can address the box from a putty (SSH) session I set the >>> static IP address. It runs behind a domestic ADSL router/hub on >>> 192.168.1.1. I therefore set the following: >>> >>> EXTIP="192.168.1.124" >>> EXTNM="255.255.255.0" >>> EXTGW="192.168.1.1" >>> DNS="192.168.1.1" >>> >>> I also have setup MODOPTS as follows, but I don't think this is >>> necessary, and in some recent versions it did not actually have any >>> effect anyway: >>> >>> MODOPTS="wctdm:opermode=UK wctdm:debug=1" >>> >>> The only other changes I made to rc.conf - which do not affect The TDM >>> card are : >>> >>> DOMAIN=mydomain.com >>> HOSTNAME=mypbx >>> TIMEZONE=GB >>> >>> >>> regards >>> Mart >>> >>> >>> >>> >>> Cleveland Electronic Services wrote: >>> >>>> Hi Martin, >>>> >>>> >>>> Thankyou for the very prompt reply, >>>> >>>> [When you are trying to login, which account and password are you using. >>>> The default root password after a clean installation is "astlinux".] >>>> >>>> The problem was that I could not access it via putty or via https://myip >>>> nothing happen, the only way I could get it to play was to reformat the >>>> >> CF >> >>>> and reinstall, unmount/ oldroot/cdrom then run fdisk & genunion >>>> > /dev/hda2 > >>>> and all is sweet again, I can login via putty (root/astlinux) & via >>>> https://myip (admin/astlinux) >>>> >>>> [As far as your TDM card goes , have you set the ZAPMODS variable in >>>> /mnt/kd/rc.conf ? Have you setup the configuration the card for the >>>> (assuming you are using ZAP rather than DAHDI) in /mnt/kd/zapatel.conf >>>> and /mnt/kd/asterisk/zapata.conf.] >>>> >>>> I am a bit lost here as I have not setup anything here, could you please >>>> give me assist me what exactly I should be doing here. >>>> >>>> Cheers >>>> >>>> Cleve >>>> >>>> -----Original Message----- >>>> From: Martin Rogers [mailto:fromastlinux-us...@mhr.me.uk] >>>> Sent: Sunday, 1 March 2009 8:51 PM >>>> To: AstLinux Users Mailing List >>>> Subject: Re: [Astlinux-users] Astlinux 0.6.3 Some strange issues please >>>> >> help >> >>>> Hi Cleve >>>> >>>> When you are trying to login, which account and password are you using. >>>> The default root password after a clean installation is "astlinux". >>>> >>>> As far as your TDM card goes , have you set the ZAPMODS variable in >>>> /mnt/kd/rc.conf ? Have you setup the configuration the card for the >>>> (assuming you are using ZAP rather than DAHDI) in /mnt/kd/zapatel.conf >>>> and /mnt/kd/asterisk/zapata.conf. >>>> >>>> Mart >>>> >>>> Cleveland Electronic Services wrote: >>>> >>>>> Hi All, >>>>> >>>>> >>>>> >>>>> I finally took the plunge and installed the net5501 img onto a 1 GB CF, >>>>> which runs on an Alix1c board I have experience the following. >>>>> >>>>> >>>>> >>>>> When I try to run create UnionFS I with the following method. >>>>> >>>>> >>>>> >>>>> pbx ~ # fdisk /dev/hda >>>>> >>>>> >>>>> >>>>> The number of cylinders for this disk is set to 1986. >>>>> >>>>> There is nothing wrong with that, but this is larger than 1024, >>>>> >>>>> and could in certain setups cause problems with: >>>>> >>>>> 1) software that runs at boot time (e.g., old versions of LILO) >>>>> >>>>> 2) booting and partitioning software from other OSs >>>>> >>>>> (e.g., DOS FDISK, OS/2 FDISK) >>>>> >>>>> >>>>> >>>>> Command (m for help): n >>>>> >>>>> Command action >>>>> >>>>> e extended >>>>> >>>>> p primary partition (1-4) >>>>> >>>>> p >>>>> >>>>> Partition number (1-4): 2 >>>>> >>>>> First cylinder (261-1986, default 261): 261 >>>>> >>>>> Last cylinder or +size or +sizeM or +sizeK (261-1986, default 1986): >>>>> >> +128M >> >>>>> >>>>> >>>>> Command (m for help): w >>>>> >>>>> The partition table has been altered! >>>>> >>>>> >>>>> >>>>> Calling ioctl() to re-read partition table >>>>> >>>>> >>>>> >> ************************************************************************* >> >>>>> I get the error below and the whole system hangs nothing happens even >>>>> > if > >>>>> I leave it for an hour. >>>>> >>>>> >>>>> >>>>> *"fdisk: WARNING: rereading partition table failed, kernel still uses >>>>> old table: Device or resource busy"* >>>>> >>>>> >>>>> > **************************************************************************** > >>>> ************* >>>> >>>>> The only way to get back in i to repower the unit, but then I cannot >>>>> > log > >>>>> into the unit, so I have to format the CF and start all over again. >>>>> >>>>> >>>>> > ============================================================================ > >>>> ==================================== >>>> >>>>> Second attempt. >>>>> >>>>> >>>>> >>>>> The only way for me to setup UnionFS is this way, I have to unmount the >>>>> oldroot/cdrom >>>>> >>>>> >>>>> >>>>> pbx ~ # umount /oldroot/cdrom >>>>> >>>>> >>>>> >>>>> pbx ~ # fdisk /dev/hda >>>>> >>>>> >>>>> >>>>> The number of cylinders for this disk is set to 1986. >>>>> >>>>> There is nothing wrong with that, but this is larger than 1024, >>>>> >>>>> and could in certain setups cause problems with: >>>>> >>>>> 1) software that runs at boot time (e.g., old versions of LILO) >>>>> >>>>> 2) booting and partitioning software from other OSs >>>>> >>>>> (e.g., DOS FDISK, OS/2 FDISK) >>>>> >>>>> >>>>> >>>>> Command (m for help): n >>>>> >>>>> Command action >>>>> >>>>> e extended >>>>> >>>>> p primary partition (1-4) >>>>> >>>>> p >>>>> >>>>> Partition number (1-4): 2 >>>>> >>>>> Partition 2 is already defined, delete it before re-adding >>>>> >>>>> >>>>> >>>>> Command (m for help): d >>>>> >>>>> Partition number (1-4): 2 >>>>> >>>>> >>>>> >>>>> Command (m for help): n >>>>> >>>>> Command action >>>>> >>>>> e extended >>>>> >>>>> p primary partition (1-4) >>>>> >>>>> p >>>>> >>>>> Partition number (1-4): 2 >>>>> >>>>> First cylinder (261-1986, default 261): 261 >>>>> >>>>> Last cylinder or +size or +sizeM or +sizeK (261-1986, default 1986): >>>>> +128M >>>>> >>>>> Command (m for help): w >>>>> >>>>> The partition table has been altered! >>>>> >>>>> >>>>> >>>>> Calling ioctl() to re-read partition table >>>>> >>>>> pbx ~ # genunion /dev/hda2 >>>>> >>>>> This script will automatically create a read/write >>>>> >>>>> filesystem to store your AstLinux configuration. >>>>> >>>>> THIS SCRIPT WILL DESTROY EVERYTHING ON /dev/hda2 >>>>> >>>>> >>>>> >>>>> ARE YOU SURE YOU WANT TO CONTINUE? >>>>> >>>>> >>>>> >>>>> Please type yes to continue >>>>> >>>>> Are you sure? : yes >>>>> >>>>> >>>>> >>>>> WARNING: >>>>> >>>>> You already have a filesystem with the label ASTURW >>>>> >>>>> This could confuse AstLinux when it boots. >>>>> >>>>> I hope you know what you are doing... >>>>> >>>>> Press enter to continue >>>>> >>>>> >>>>> >>>>> Creating filesystem... >>>>> >>>>> Filesystem Created. >>>>> >>>>> >>>>> >>>>> On new systems you can optionally use unionfs instead of they key disk. >>>>> >>>>> >>>>> >>>>> To create the appropriate file structure, type yes. >>>>> >>>>> >>>>> >>>>> If you have an existing key disk and want to migrate your key disk >>>>> >>>>> settings to this new unionfs partition, execute movekd /dev/hda2 after >>>>> >>>>> this script exits. >>>>> >>>>> >>>>> >>>>> To create a new key disk structure on your new unionfs partition, >>>>> >>>>> type yes followed by the Enter key. Press any other key to exit. >>>>> >>>>> >>>>> >>>>> If you are new to Astlinux, you will want to say yes. >>>>> >>>>> Are you sure? : yes >>>>> >>>>> Copying files to /dev/hda2 >>>>> >>>>> Please reboot now or run movekd to migrate an existing key disk to your >>>>> unionfs partition >>>>> >>>>> pbx ~ # reboot >>>>> >>>>> >>>>> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > >>>> +++++++ >>>> >>>>> This method gets it all working ok but my TDM card with 2xFXO are not >>>>> detected, how do I get it working, as the asterisk gui does not show >>>>> > the > >>>>> Analog card as well. >>>>> >>>>> >>>>> >>>>> Appreciate your help >>>>> >>>>> >>>>> >>>>> Cheers >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> *Cleve Jansen* >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> > ------------------------------------------------------------------------ > >>>>> > ---------------------------------------------------------------------------- > >>>> -- >>>> >>>>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>>>> >> Francisco, >> >>>> CA >>>> >>>>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>>>> >>>> Enterprise >>>> >>>>> -Strategies to boost innovation and cut costs with open source >>>>> >>>> participation >>>> >>>>> -Receive a $600 discount off the registration fee with the source code: >>>>> >>>> SFAD >>>> >>>>> http://p.sf.net/sfu/XcvMzF8H >>>>> >>>>> >>>>> >>>>> > ------------------------------------------------------------------------ > >>>>> _______________________________________________ >>>>> Astlinux-users mailing list >>>>> Astlinux-users@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/astlinux-users >>>>> >>>>> Donations to support AstLinux are graciously accepted via PayPal to >>>>> >>>> pay...@krisk.org. >>>> >>>> >>>> > ---------------------------------------------------------------------------- > >>>> -- >>>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>>> > Francisco, > >> CA >> >>>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>>> >> Enterprise >> >>>> -Strategies to boost innovation and cut costs with open source >>>> >> participation >> >>>> -Receive a $600 discount off the registration fee with the source code: >>>> >> SFAD >> >>>> http://p.sf.net/sfu/XcvMzF8H >>>> _______________________________________________ >>>> Astlinux-users mailing list >>>> Astlinux-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/astlinux-users >>>> >>>> Donations to support AstLinux are graciously accepted via PayPal to >>>> pay...@krisk.org. >>>> >>>> >>>> >>>> > ---------------------------------------------------------------------------- > >> -- >> >>>> Open Source Business Conference (OSBC), March 24-25, 2009, San >>>> > Francisco, > >> CA >> >>>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>>> >> Enterprise >> >>>> -Strategies to boost innovation and cut costs with open source >>>> >> participation >> >>>> -Receive a $600 discount off the registration fee with the source code: >>>> >> SFAD >> >>>> http://p.sf.net/sfu/XcvMzF8H >>>> _______________________________________________ >>>> Astlinux-users mailing list >>>> Astlinux-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/astlinux-users >>>> >>>> Donations to support AstLinux are graciously accepted via PayPal to >>>> >> pay...@krisk.org. >> > ---------------------------------------------------------------------------- > >> -- >> >>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >>> >> CA >> >>> -OSBC tackles the biggest issue in open source: Open Sourcing the >>> >> Enterprise >> >>> -Strategies to boost innovation and cut costs with open source >>> >> participation >> >>> -Receive a $600 discount off the registration fee with the source code: >>> >> SFAD >> >>> http://p.sf.net/sfu/XcvMzF8H >>> _______________________________________________ >>> Astlinux-users mailing list >>> Astlinux-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/astlinux-users >>> >>> Donations to support AstLinux are graciously accepted via PayPal to >>> >> pay...@krisk.org. >> >> >> > ---------------------------------------------------------------------------- > >> -- >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> > CA > >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> > Enterprise > >> -Strategies to boost innovation and cut costs with open source >> > participation > >> -Receive a $600 discount off the registration fee with the source code: >> > SFAD > >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Astlinux-users mailing list >> Astlinux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/astlinux-users >> >> Donations to support AstLinux are graciously accepted via PayPal to >> pay...@krisk.org. >> >> >> >> > ---------------------------------------------------------------------------- > -- > >> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, >> > CA > >> -OSBC tackles the biggest issue in open source: Open Sourcing the >> > Enterprise > >> -Strategies to boost innovation and cut costs with open source >> > participation > >> -Receive a $600 discount off the registration fee with the source code: >> > SFAD > >> http://p.sf.net/sfu/XcvMzF8H >> _______________________________________________ >> Astlinux-users mailing list >> Astlinux-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/astlinux-users >> >> Donations to support AstLinux are graciously accepted via PayPal to >> > pay...@krisk.org. > > > ---------------------------------------------------------------------------- > -- > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Astlinux-users mailing list > Astlinux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > pay...@krisk.org. > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Astlinux-users mailing list > Astlinux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > pay...@krisk.org. > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.