VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
vincent.delporte at bi... Guest
|
Posted: Tue Jan 08, 2008 1:06 pm Post subject: [asterisk-users] [Zaptel] Checking that TDM card works? |
|
|
Hello
Since TDM cards are known for being particular when it comes
to motherboards (PCI 2.2, etc.), I was wondering if there is a utility
that can check that the Zaptel driver works OK and can tell if the TDM
card is compatible?
That way, if an FXO module is not reporting an incoming call, we'd
know it's because of the Zaptel driver, and not something elsewhere.
Are "dmesg", "lspci -v", "ztcfg -vv" and "zttool" the only tools
available to investigate this issue?
Thank you.
==================
PS: I'm using an OpenVox clone of the Digium card, with just one FXO
module. With the FXO module installed on plug #1, here's what I tried
so far. Note that "ztcfg -vv" says "1 channels to configure.", while
Digium cards apparently say ""1 channels configured":
================= # dmesg
Zapata Telephony Interface Registered on major 196
Zaptel Version: 1.4.7
Zaptel Echo Canceller: MG2
ACPI: PCI Interrupt 0000:00:0f.0[A] -> Link [LNKD] -> GSI 12 (level,
low) -> IRQ 12
Freshmaker version: 71
Freshmaker passed register test
Module 0: Installed -- AUTO FXO (FCC mode)
Module 1: Not installed
Module 2: Not installed
Module 3: Not installed
Found a Wildcard TDM: Wildcard TDM400P REV E/F (1 modules)
[...]
usbcore: registered new driver wcusb
Wildcard USB FXS Interface driver registered
Registered tone zone 2 (France)
================= # lspci -v
00:0f.0 Communication controller: Tiger Jet Network Inc. Tiger3XX
Modem/ISDN interface
Subsystem: Unknown device b100:0003
Flags: bus master, medium devsel, latency 64, IRQ 12
I/O ports at c400 [size=256]
Memory at dfffe000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2
================= # cat /etc/zaptel.conf
fxsks=1
loadzone=fr
defaultzone=fr
================= # ztcfg -vvvv
Zaptel Version: 1.4.7
Echo Canceller: MG2
Configuration
Channel map:
Channel 01: FXS Kewlstart (Default) (Slaves: 01)
1 channels to configure.
================= # cat zapata.conf
[channels]
language=fr
context=my-phones
usecallerid=yes
hidecallerid=no
immediate=no
signalling=fxs_ks
echocancel=yes
echocancelwhenbridged=yes
channel=>1
================= # cat /etc/asterisk/extensions.conf
[general]
[globals]
[my-phones]
exten => s,1,Verbose(yes!)
================= # service zaptel restart
Unloading zaptel hardware drivers:.
Loading zaptel framework: [ OK ]
Waiting for zap to come online...OK
Loading zaptel hardware modules: tor2.
wct4xxp.
wcte12xp.
wct1xxp.
wcte11xp.
wctdm24xxp.
wcfxo.
wctdm.
wcusb.
Running ztcfg: [ OK ]
================= # service asterisk restart
Shutting down asterisk: Asterisk ended with exit status 0
Asterisk shutdown normally.
[ OK ]
Starting asterisk: [ OK ]
================= # asterisk -vvvvvvvvvvr
asterisk*CLI>
=================
Here, I call into the OpenVox card from a cellphone, but nothing is
shown in the Asterisk console :-/ |
|
Back to top |
|
|
tzafrir.cohen at xorco... Guest
|
Posted: Tue Jan 08, 2008 1:29 pm Post subject: [asterisk-users] [Zaptel] Checking that TDM card works? |
|
|
On Tue, Jan 08, 2008 at 07:06:17PM +0100, Vincent wrote:
Quote: | Hello
Since TDM cards are known for being particular when it comes
to motherboards (PCI 2.2, etc.), I was wondering if there is a utility
that can check that the Zaptel driver works OK and can tell if the TDM
card is compatible?
That way, if an FXO module is not reporting an incoming call, we'd
know it's because of the Zaptel driver, and not something elsewhere.
Are "dmesg", "lspci -v", "ztcfg -vv" and "zttool" the only tools
available to investigate this issue?
Thank you.
==================
PS: I'm using an OpenVox clone of the Digium card, with just one FXO
module. With the FXO module installed on plug #1, here's what I tried
so far. Note that "ztcfg -vv" says "1 channels to configure.", while
Digium cards apparently say ""1 channels configured":
|
This change is simply due to different versions of Zaptel. Zaptel >=
1.4.6 prints "to configure" because this message is printed (and has
always been prinetd) before the configuration is actually applied. And
hence fooled poor users into believing that their channels were properly
configured.
Quote: | ================= # cat zapata.conf
[channels]
language=fr
context=my-phones
usecallerid=yes
hidecallerid=no
immediate=no
signalling=fxs_ks
echocancel=yes
echocancelwhenbridged=yes
channel=>1
================= # cat /etc/asterisk/extensions.conf
[general]
[globals]
[my-phones]
exten => s,1,Verbose(yes!)
|
In the Asterisk CLI run:
core set verbose 3
And then see what happens when a call comes in.
Basically you miss an action to do after the Verbose line.
Alternatively, what is the output of:
cat /proc/zaptel/*
asterisk -rx 'zap show channels'
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir |
|
Back to top |
|
|
jsmith at digium.com Guest
|
Posted: Tue Jan 08, 2008 1:43 pm Post subject: [asterisk-users] [Zaptel] Checking that TDM card works? |
|
|
On Tue, 2008-01-08 at 19:06 +0100, Vincent wrote:
Quote: | Are "dmesg", "lspci -v", "ztcfg -vv" and "zttool" the only tools
available to investigate this issue?
|
I always find that looking at the files that are generated
under /proc/zaptel is very enlightening as far as showing what the
zaptel drivers are seeing.
--
Jared Smith
Community Relations Manager
Digium, Inc. |
|
Back to top |
|
|
vincent.delporte at bi... Guest
|
Posted: Wed Jan 09, 2008 4:42 am Post subject: [asterisk-users] [Zaptel] Checking that TDM card works? |
|
|
On Tue, 8 Jan 2008 20:29:20 +0200, Tzafrir Cohen
<tzafrir.cohen at xorcom.com> wrote:
Quote: | This change is simply due to different versions of Zaptel. Zaptel >=
1.4.6 prints "to configure" because this message is printed (and has
always been prinetd) before the configuration is actually applied.
|
Good to know
Quote: | In the Asterisk CLI run:
core set verbose 3
And then see what happens when a call comes in.
Basically you miss an action to do after the Verbose line.
|
But I wasn't getting _anything_ in the CLI. Since I was stuck, I
recompiled Zaptel and Asterisk... and lo-and-behold! I have no idea
why it solved the issue, though.
BTW, is there an order when loading modules for a TDM card? The
OpenVox seems to need zaptel, wctdm, and wcfxo, so I just run this:
# modprobe zaptel
# modprobe wctdm
# modprobe wcfxo
# lsmod
Thanks for the tips on "cat /proc/zaptel/*" and ""asterisk -rx 'zap
show channels'". I'll add them to the list of tools to investigate. |
|
Back to top |
|
|
vincent.delporte at bi... Guest
|
Posted: Wed Jan 09, 2008 4:43 am Post subject: [asterisk-users] [Zaptel] Checking that TDM card works? |
|
|
On Tue, 08 Jan 2008 13:43:50 -0500, Jared Smith <jsmith at digium.com>
wrote:
Quote: | I always find that looking at the files that are generated
under /proc/zaptel is very enlightening as far as showing what the
zaptel drivers are seeing.
|
Thanks for the tip. |
|
Back to top |
|
|
tzafrir.cohen at xorco... Guest
|
Posted: Wed Jan 09, 2008 5:05 am Post subject: [asterisk-users] [Zaptel] Checking that TDM card works? |
|
|
On Wed, Jan 09, 2008 at 10:42:52AM +0100, Vincent wrote:
Quote: | BTW, is there an order when loading modules for a TDM card? The
OpenVox seems to need zaptel, wctdm, and wcfxo, so I just run this:
# modprobe zaptel
# modprobe wctdm
# modprobe wcfxo
|
wcfxo is not needed.
Basically all you need is:
modprobe <your_card_s_driver>
This also pulls all of its dependencies (e.g: zaptel)
modprobe wctdm
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir |
|
Back to top |
|
|
vincent.delporte at bi... Guest
|
Posted: Wed Jan 09, 2008 6:26 am Post subject: [asterisk-users] [Zaptel] Checking that TDM card works? |
|
|
On Wed, 9 Jan 2008 12:05:34 +0200, Tzafrir Cohen
<tzafrir.cohen at xorcom.com> wrote:
Quote: | wcfxo is not needed.
Basically all you need is:
modprobe <your_card_s_driver>
This also pulls all of its dependencies (e.g: zaptel)
modprobe wctdm
|
Thanks, but on AstLinux, the modules are not unloaded:
=======
pbx admin # /etc/init.d/zaptel stop
pbx admin # lsmod
Module Size Used by
wctdm 31552 1
wcfxo 11424 0
zaptel 188604 6 wctdm,wcfxo
hdlc 22528 1 zaptel
syncppp 15300 1 hdlc
ppp_generic 28692 1 zaptel
=======
Why would an init script not remove modules? |
|
Back to top |
|
|
tzafrir.cohen at xorco... Guest
|
Posted: Wed Jan 09, 2008 6:39 am Post subject: [asterisk-users] [Zaptel] Checking that TDM card works? |
|
|
On Wed, Jan 09, 2008 at 12:26:46PM +0100, Vincent wrote:
Quote: | On Wed, 9 Jan 2008 12:05:34 +0200, Tzafrir Cohen
<tzafrir.cohen at xorcom.com> wrote:
Quote: | wcfxo is not needed.
Basically all you need is:
modprobe <your_card_s_driver>
This also pulls all of its dependencies (e.g: zaptel)
modprobe wctdm
|
Thanks, but on AstLinux, the modules are not unloaded:
=======
pbx admin # /etc/init.d/zaptel stop
pbx admin # lsmod
Module Size Used by
wctdm 31552 1
wcfxo 11424 0
zaptel 188604 6 wctdm,wcfxo
hdlc 22528 1 zaptel
syncppp 15300 1 hdlc
ppp_generic 28692 1 zaptel
=======
Why would an init script not remove modules?
|
That depends on how the script in astlinux works.
What does it do?
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir |
|
Back to top |
|
|
dhartman at djhsolutio... Guest
|
Posted: Wed Jan 09, 2008 7:01 am Post subject: [asterisk-users] [Zaptel] Checking that TDM card works? |
|
|
Vincent wrote:
Quote: | On Wed, 9 Jan 2008 12:05:34 +0200, Tzafrir Cohen
<tzafrir.cohen at xorcom.com> wrote:
Quote: | wcfxo is not needed.
Basically all you need is:
modprobe <your_card_s_driver>
This also pulls all of its dependencies (e.g: zaptel)
modprobe wctdm
|
Thanks, but on AstLinux, the modules are not unloaded:
=======
pbx admin # /etc/init.d/zaptel stop
pbx admin # lsmod
Module Size Used by
wctdm 31552 1
wcfxo 11424 0
zaptel 188604 6 wctdm,wcfxo
hdlc 22528 1 zaptel
syncppp 15300 1 hdlc
ppp_generic 28692 1 zaptel
=======
Why would an init script not remove modules?
|
Vincent,
Come on over to the astlinux mailing list (on our sourceforge page). It
will be easier to handle any Astlinux specific questions over there.
But look in your /etc/rc.conf file for the ZAPMODS variable. You should
have that variable set to:
ZAPMODS="wctdm"
Beyond that, as long as Asterisk is not running, issuing service zaptel
stop should remove all zaptel related modules.
Darrick
--
Darrick Hartman
DJH Solutions, LLC
http://www.djhsolutions.com |
|
Back to top |
|
|
vincent.delporte at bi... Guest
|
Posted: Wed Jan 09, 2008 8:08 am Post subject: [asterisk-users] [Zaptel] Checking that TDM card works? |
|
|
On Wed, 09 Jan 2008 06:01:32 -0600, "Darrick Hartman (lists)"
<dhartman at djhsolutions.com> wrote:
Quote: | But look in your /etc/rc.conf file for the ZAPMODS variable. You should
have that variable set to:
ZAPMODS="wctdm"
|
Yes indeed:
#ZAPMODS="wctdm"
Should I add this module here, or in rc.modules?
Are we positive that wcfxo is not needed in addition to wctdm and
zaptel?
Quote: | Beyond that, as long as Asterisk is not running, issuing service zaptel
stop should remove all zaptel related modules.
|
Thanks, but it doesn't seem to unload the modules:
==========
# /etc/init.d/zaptel stop
# lsmod
Module Size Used by
wctdm 31552 1
wcfxo 11424 0
binfmt_misc 11784 1
zaptel 188604 6 wctdm,wcfxo
hdlc 22528 1 zaptel
syncppp 15300 1 hdlc
ppp_generic 28692 1 zaptel
slhc 6784 1 ppp_generic
# asterisk -r
pbx*CLI> stop now
Disconnected from Asterisk server
# ps
PID Uid VmSize Stat Command
(snip : no trace of Asterisk)
1327 root 368 R ps
# /etc/init.d/zaptel stop
# lsmod
Module Size Used by
wctdm 31552 0
wcfxo 11424 0
binfmt_misc 11784 1
zaptel 188604 2 wctdm,wcfxo
hdlc 22528 1 zaptel
syncppp 15300 1 hdlc
ppp_generic 28692 1 zaptel
slhc 6784 1 ppp_generic
==========
I guess the zaptel script doesn't remove them, and I need to use rmmod
manually? |
|
Back to top |
|
|
dhartman at djhsolutio... Guest
|
Posted: Wed Jan 09, 2008 9:32 am Post subject: [asterisk-users] [Zaptel] Checking that TDM card works? |
|
|
Vincent wrote:
Quote: | On Wed, 09 Jan 2008 06:01:32 -0600, "Darrick Hartman (lists)"
<dhartman at djhsolutions.com> wrote:
Quote: | But look in your /etc/rc.conf file for the ZAPMODS variable. You should
have that variable set to:
ZAPMODS="wctdm"
|
Yes indeed:
#ZAPMODS="wctdm"
Should I add this module here, or in rc.modules?
|
Uncomment that if you expect it to work. The module should be listed in
ZAPMODS not in rc.modules.
Quote: | Are we positive that wcfxo is not needed in addition to wctdm and
zaptel?
|
Yes we're sure.
Quote: | Quote: | Beyond that, as long as Asterisk is not running, issuing service zaptel
stop should remove all zaptel related modules.
|
Thanks, but it doesn't seem to unload the modules:
==========
# /etc/init.d/zaptel stop
# lsmod
Module Size Used by
wctdm 31552 1
wcfxo 11424 0
binfmt_misc 11784 1
zaptel 188604 6 wctdm,wcfxo
hdlc 22528 1 zaptel
syncppp 15300 1 hdlc
ppp_generic 28692 1 zaptel
slhc 6784 1 ppp_generic
# asterisk -r
pbx*CLI> stop now
Disconnected from Asterisk server
# ps
PID Uid VmSize Stat Command
(snip : no trace of Asterisk)
1327 root 368 R ps
# /etc/init.d/zaptel stop
# lsmod
Module Size Used by
wctdm 31552 0
wcfxo 11424 0
binfmt_misc 11784 1
zaptel 188604 2 wctdm,wcfxo
hdlc 22528 1 zaptel
syncppp 15300 1 hdlc
ppp_generic 28692 1 zaptel
slhc 6784 1 ppp_generic
==========
I guess the zaptel script doesn't remove them, and I need to use rmmod
manually?
|
Since you have ZAPMODS commented out, the zaptel init script doesn't
know which modules it should be using. I can assure you that this
script does work properly if you have the configuration set correctly.
Vincent, all of this is really Astlinux specific and would be better
handled on that list instead.
Darrick
--
Darrick Hartman
DJH Solutions, LLC
http://www.djhsolutions.com |
|
Back to top |
|
|
vincent.delporte at bi... Guest
|
Posted: Wed Jan 09, 2008 3:12 pm Post subject: [asterisk-users] [Zaptel] Checking that TDM card works? |
|
|
On Wed, 09 Jan 2008 08:32:40 -0600, "Darrick Hartman (lists)"
<dhartman at djhsolutions.com> wrote:
Quote: | Uncomment that if you expect it to work. The module should be listed in
ZAPMODS not in rc.modules. [...] Since you have ZAPMODS commented out,
the zaptel init script doesn't know which modules it should be using.
|
Thanks a lot for the tips. |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|