Posted: Sat Dec 25, 2004 12:47 pm Post subject: [Asterisk-bsd] New TDM11B on FBSD5.3. wcfxs error
I just got the new developer TDM11B, but I got some problems with it. Since
Digium is on vacation, I figured I'd ask here first (actually I asked on
asterisk-users, but they basically said they were linux-only ....)
Anyway, I installed the TDM11B, but have not attached any phone lines, yet. I
just want to work with the demo over SIP first.
But here's the story, after installing the card on a Dell SC420 (further
identifying info comes from dmesg):
FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004
root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(R) CPU 2.53GHz (2527.01-MHz 686-class CPU)
when init runs /usr/local/etc/rc.d/zaptel.sh I get the following info:
Zapata Telephony Interface Registered on major 196
FXS device: vendor=e159 device=1 subvendor=b100
wcfxs0: <Wildcard TDM400P REV E/F> port 0xdc00-0xdcff mem
0xdfaff000-0xdfafffff irq 18 at device 2.0 on pci4
FXS Attach for wcfxs0: deviceID : 0xe159
wcfxs0: [GIANT-LOCKED]
Freshmaker version: 71
Freshmaker passed register test
Module 0: Not installed
Module 1: Not installed
Module 2: Not installed
Module 3: Not installed
Freed a Wildcard
FXS detach!
We failed: 5
device_attach: wcfxs0 attach returned 5
I don't get why it says we failed. I thought maybe it was the order that the
modules are loaded (currently they are: zaptel, wcfxo, wcfxs) but I get the
same error if I reverse wcfxo and wcfxs.
I get the following devices created in /dev/zap, but none of them are
configured (i.e. if I `cat /dev/zap/timer` I get "device not configured").
crw-rw-r-- 1 root wheel 230, 254 Dec 25 12:46 channel
crw-rw-r-- 1 root wheel 230, 0 Dec 25 12:46 ctl
crw-rw-r-- 1 root wheel 230, 255 Dec 25 12:46 pseudo
crw-rw-r-- 1 root wheel 230, 253 Dec 25 12:46 timer
I can make asterisk run, and I can connect to it using a software SIP phone.
I can even hear the demo, but it is waaaaayyyy choppy. So I figure that the
choppiness will diminish once I can get the FXS module to load (or maybe it's
already loaded, but I can't attach ...) I think I read that I could use
ztdummy without a wildcard, but my ultimate goal is to get the whole
ball-o-asterisk working with the hardware.
Posted: Sun Dec 26, 2004 5:57 am Post subject: [Asterisk-bsd] New TDM11B on FBSD5.3. wcfxs error
Lane (lane@joeandlane.com) wrote:
Quote:
I just got the new developer TDM11B, but I got some problems with it. Since
Digium is on vacation, I figured I'd ask here first (actually I asked on
asterisk-users, but they basically said they were linux-only ....)
Anyway, I installed the TDM11B, but have not attached any phone lines, yet. I
just want to work with the demo over SIP first.
But here's the story, after installing the card on a Dell SC420 (further
identifying info comes from dmesg):
.. skipped .., this is known issue and it has been fixed in SVN. Put
attached file to /usr/ports/misc/zaptel/files and reinstall drivers.
--
gonzo
-------------- next part --------------
--- wcfxs/wcfxs.c.orig Sun Dec 26 12:17:09 2004
+++ wcfxs/wcfxs.c Sun Dec 26 12:19:47 2004
@@ -1839,6 +1839,8 @@
/* Set all to outputs except AUX 5, which is an input */
WRITE1(WC_AUXC, 0xdf);
+
+ WRITE1(WC_AUXFUNC, 0x4);
/* Wait 1/4 of a sec */
tsleep(sc, PZERO, "wcfxs_hardware_init", (hz / 4) + 1);
Posted: Mon Dec 27, 2004 7:32 am Post subject: [Asterisk-bsd] New TDM11B on FBSD5.3. wcfxs error
On Sunday 26 December 2004 07:57, Alexander Timoshenko wrote:
Quote:
Lane (lane@joeandlane.com) wrote:
> I just got the new developer TDM11B, but I got some problems with it.
> Since Digium is on vacation, I figured I'd ask here first (actually I
> asked on asterisk-users, but they basically said they were linux-only
> ....)
>
> Anyway, I installed the TDM11B, but have not attached any phone lines,
> yet. I just want to work with the demo over SIP first.
>
> But here's the story, after installing the card on a Dell SC420 (further
> identifying info comes from dmesg):
.. skipped .., this is known issue and it has been fixed in SVN. Put
attached file to /usr/ports/misc/zaptel/files and reinstall drivers.
Thanks, Alexander.
That patch fixed the problem with wcfxs.ko, but it didn't fix the timing
problem (i.e. choppy sound) as I thought it would.
I recompiled the kernel with option HZ=1000 and retried asterisk with just
zaptel.ko and ztdummy.ko loaded, but there was no improvement in sound
quality.
Is there some other timing source that I can use? Or is this maybe not
something to do with timing at all?
Posted: Thu Dec 30, 2004 2:04 am Post subject: [Asterisk-bsd] New TDM11B on FBSD5.3. wcfxs error
Lane (lane@joeandlane.com) wrote:
Quote:
On Sunday 26 December 2004 07:57, Alexander Timoshenko wrote:
> Lane (lane@joeandlane.com) wrote:
> > I just got the new developer TDM11B, but I got some problems with it.
> > Since Digium is on vacation, I figured I'd ask here first (actually I
> > asked on asterisk-users, but they basically said they were linux-only
> > ....)
> >
> > Anyway, I installed the TDM11B, but have not attached any phone lines,
> > yet. I just want to work with the demo over SIP first.
> >
> > But here's the story, after installing the card on a Dell SC420 (further
> > identifying info comes from dmesg):
>
> .. skipped .., this is known issue and it has been fixed in SVN. Put
> attached file to /usr/ports/misc/zaptel/files and reinstall drivers.
Thanks, Alexander.
That patch fixed the problem with wcfxs.ko, but it didn't fix the timing
problem (i.e. choppy sound) as I thought it would.
I recompiled the kernel with option HZ=1000 and retried asterisk with just
zaptel.ko and ztdummy.ko loaded, but there was no improvement in sound
quality.
Is there some other timing source that I can use? Or is this maybe not
something to do with timing at all?
The possible reason of choppy sound -- shared IRQ, it is important
Posted: Thu Dec 30, 2004 3:55 am Post subject: [Asterisk-bsd] New TDM11B on FBSD5.3. wcfxs error
On Thursday 30 December 2004 04:04, Alexander Timoshenko wrote:
Quote:
>
> I recompiled the kernel with option HZ=1000 and retried asterisk with
> just zaptel.ko and ztdummy.ko loaded, but there was no improvement in
> sound quality.
>
> Is there some other timing source that I can use? Or is this maybe not
> something to do with timing at all?
The possible reason of choppy sound -- shared IRQ, it is important
to Digium hardware to have its own IRQ.
> Thanks, again!
Alexander,
Good call!
vmstat -i shows uhci2 and wcfxs0 on the same irq 18. I can probably disable
uhci2 in the bios, but do you know if it is possible to set the irq with
sysctl, or some other software solution?
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