[asterisk-users] Step-by-Step Asterisk and MeetMe Help

Jimmy Ezell jezell at hmhca.com
Mon May 18 19:26:21 CDT 2009


>From: asterisk-users-bounces at lists.digium.com
>[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of 
>John covici
>Sent: Monday, May 18, 2009 05:00 PM
>To: Asterisk Users Mailing List - Non-Commercial Discussion
>Subject: Re: [asterisk-users] Step-by-Step Asterisk and MeetMe Help
>
>
>This is your problem -- check the compile of the zaptel package and
>see what happened.  It might not compile it if you have a hardware
>zaptel crd, otherwise it should have done so.

I stopped asterisk.

I have no card.  From the zaptel directory I ran
 # make distclean
 # make clean
 # ./configure
 # make menuselect
In menuselect I removed all Kernel Modules except for ztdummy
 # make

--------------output of make command --------------
[root at localhost zaptel-1.4.12.1]# make
make[1]: Entering directory `/usr/src/zaptel-1.4.12.1'
make -C /usr/src/linux-2.4 ARCH=i386 SUBDIRS=/usr/src/zaptel-1.4.12.1/kernel HOTPLUG_FIRMWARE=yes KBUILD_OBJ_M="zaptel.o ztdummy.                                                          o " modules
make[2]: Entering directory `/usr/src/kernels/2.6.9-78.0.13.EL-smp-i686'
  CC [M]  /usr/src/zaptel-1.4.12.1/kernel/zaptel-base.o
/usr/src/zaptel-1.4.12.1/kernel/zaptel-base.c: In function `__zt_receive_chunk':
/usr/src/zaptel-1.4.12.1/kernel/zaptel-base.c:6703: warning: 'res' might be used uninitialized in this function
  LD [M]  /usr/src/zaptel-1.4.12.1/kernel/zaptel.o
  CC [M]  /usr/src/zaptel-1.4.12.1/kernel/ztdummy.o
  Building modules, stage 2.
  MODPOST
  CC      /usr/src/zaptel-1.4.12.1/kernel/zaptel.mod.o
  LD [M]  /usr/src/zaptel-1.4.12.1/kernel/zaptel.ko
  CC      /usr/src/zaptel-1.4.12.1/kernel/ztdummy.mod.o
  LD [M]  /usr/src/zaptel-1.4.12.1/kernel/ztdummy.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.9-78.0.13.EL-smp-i686'
gcc -c -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o zonedata.lo                                                           zonedata.c
gcc -c -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o tonezone.lo                                                           tonezone.c
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -shared -Wl,-sonam                                                          e,libtonezone.so.1.0 -o libtonezone.so zonedata.lo tonezone.lo   -lm
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o zonedata.o                                                           zonedata.c
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o tonezone.o                                                           tonezone.c
ar rcs libtonezone.a zonedata.o tonezone.o
ranlib libtonezone.a
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o fxotune.o -c fx                                                          otune.c
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o fxotune fxotune                                                          .o  -lm
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o ztcfg.o -c ztcf                                                          g.c
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o ztcfg ztcfg.o l                                                          ibtonezone.a  -lm
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o ztmonitor.o -c                                                           ztmonitor.c
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o ztmonitor ztmon                                                          itor.o
gcc  -o ztspeed.o -c ztspeed.c
gcc  -o ztspeed ztspeed.o
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o zttest.o -c ztt                                                          est.c
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o zttest zttest.o                                                          
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o ztscan.o -c zts                                                          can.c
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o ztscan ztscan.o                                                          
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"  -o zttool.o -c zt                                                          tool.c
gcc -g -O2 -I.  -g -fPIC -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -o zttool zttool.o                                                            -lnewt
make[1]: Leaving directory `/usr/src/zaptel-1.4.12.1'
----------------- end output of make command -------------------


 # make install
-------------- output of make install command --------------
[root at localhost zaptel-1.4.12.1]# make install
make[1]: Entering directory `/usr/src/zaptel-1.4.12.1'
make -C /usr/src/linux-2.4 ARCH=i386 SUBDIRS=/usr/src/zaptel-1.4.12.1/kernel HOTPLUG_FIRMWARE=yes KBUILD_OBJ_M="zaptel.o ztdummy.o " modules
make[2]: Entering directory `/usr/src/kernels/2.6.9-78.0.13.EL-smp-i686'
  Building modules, stage 2.
  MODPOST
make[2]: Leaving directory `/usr/src/kernels/2.6.9-78.0.13.EL-smp-i686'
make[1]: Leaving directory `/usr/src/zaptel-1.4.12.1'
install -d /etc/udev/rules.d
build_tools/genudevrules > /etc/udev/rules.d/zaptel.rules
build_tools/uninstall-modules dahdi 2.6.9-78.ELsmp
make -C /usr/src/linux-2.4 ARCH=i386 SUBDIRS=/usr/src/zaptel-1.4.12.1/kernel HOTPLUG_FIRMWARE=yes KBUILD_OBJ_M="zaptel.o ztdummy.o " INSTALL_MOD_PATH= INSTALL_MOD_DIR=misc modules_install
make[1]: Entering directory `/usr/src/kernels/2.6.9-78.0.13.EL-smp-i686'
  INSTALL /usr/src/zaptel-1.4.12.1/kernel/zaptel.ko
  INSTALL /usr/src/zaptel-1.4.12.1/kernel/ztdummy.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.9-78.0.13.EL-smp-i686'
[ `id -u` = 0 ] && /sbin/depmod -a 2.6.9-78.ELsmp || :
install -d /sbin
install  fxotune ztcfg ztmonitor ztspeed zttest ztscan zttool /sbin/
install -d /usr/share/man/man8
install -m 644 doc/fxotune.8 doc/ztcfg.8 doc/ztmonitor.8 doc/ztspeed.8 doc/zttest.8 doc/ztscan.8 doc/zttool.8 /usr/share/man/man8/
/usr/bin/install -c -D -m 755 libtonezone.a /usr/lib/libtonezone.a
/usr/bin/install -c -D -m 755 libtonezone.so /usr/lib/libtonezone.so.1.0
if [ `id -u` = 0 ]; then \
        /sbin/ldconfig || : ;\
fi
rm -f /usr/liblibtonezone.so
/bin/ln -sf libtonezone.so.1.0 \
        /usr/lib/libtonezone.so.1
/bin/ln -sf libtonezone.so.1.0 \
        /usr/lib/libtonezone.so
/sbin/restorecon -v /usr/lib/libtonezone.so
/usr/bin/install -c -D -m 644 kernel/zaptel.h /usr/include/zaptel/zaptel.h
/usr/bin/install -c -D -m 644 tonezone.h /usr/include/zaptel/tonezone.h
make -C firmware hotplug-install DESTDIR= HOTPLUG_FIRMWARE=yes
make[1]: Entering directory `/usr/src/zaptel-1.4.12.1/firmware'
make[1]: Nothing to be done for `hotplug-install'.
make[1]: Leaving directory `/usr/src/zaptel-1.4.12.1/firmware'
###################################################
###
### Zaptel installed successfully.
### If you have not done so before, install init scripts with:
###
###   make config
###
###################################################
[root at localhost zaptel-1.4.12.1]#
-------------- end output of make install command --------------
 # make config
-------------- output of make config command --------------
[root at localhost zaptel-1.4.12.1]# make config
install -D zaptel.init /etc/rc.d/init.d/zaptel
install -D ifup-hdlc /etc/sysconfig/network-scripts/ifup-hdlc
/sbin/chkconfig --add zaptel
Zaptel has been configured.

If you have any zaptel hardware it is now recommended to
edit /etc/default/zaptel or /etc/sysconfig/zaptel and set there an
optimal value for the variable MODULES .

I think that the zaptel hardware you have on your system is:
[root at localhost zaptel-1.4.12.1]#
-------------- end output of make config command --------------

I rebooted the server with command:
#init 6

Server reboots and I see these same errors:
 > May 18 14:46:59 localhost modprobe: FATAL: Module zaptel not found.
 > May 18 14:46:59 localhost zaptel: Loading zaptel framework:  failed
 > On boot I also see "Waiting for zap to come online...Error: missing /dev/zap!


>
>on Monday 05/18/2009 Jimmy Ezell(jezell at hmhca.com) wrote
> > 
> > >
> > >I would modprobe ztdummy and see what happens and look at 
>the log and
> > >lsmod after you do that.
> > >
> > >-- 
> > >Your life is like a penny.  You're going to lose it.  The 
>question is:
> > >How do
> > >you spend it?
> > >
> > >         John Covici
> > >         covici at ccs.covici.com
> > 
> > John,
> > 
> > modprobe comes back right away with ztdummy not found
> > 
> > [root at localhost zaptel-1.4.12.1]# modprobe ztdummy
> > FATAL: Module ztdummy not found.
> > 
> > >
> > 
> > _______________________________________________
> > -- Bandwidth and Colocation Provided by 
>http://www.api-digital.com --
> > 
> > asterisk-users mailing 
>list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>-- 
>Your life is like a penny.  You're going to lose it.  The question is:
>How do
>you spend it?
>
>         John Covici
>         covici at ccs.covici.com
>
>_______________________________________________
>-- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
>asterisk-users mailing list
>To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list