Can't make X100P FXO work in TrixBox
Sorry, I know there are various similar posts all over but I've been following advice from here and Nerd Vittles ALL day and still nothing. The card worked great in Asterisk@Home 2.8 and I can't get it to do anything in TrixBox. The card appears to be detected just fine. All my internal phones work, I can dial out through my VoIP provider... At this point I'd be so very happy if I could just get the FXO to answer the PSTN (analog) phone line again...there is a default incoming route but it just rings and rings (the other analog phones not the ring group / IP phones) and I see no indication TrixBox is even seeing the incoming call. (Not a wiring issue.)
The latest trixbox-update.sh (1.0.0.5) gives me a couple errors and since one involves zaptel maybe something is missing on my system? -->
rm: cannot remove `/var/www/html/maint/templates_c/*.php': No such file or directory
error: %preun(zaptel-modules-2.6.9-34.0.1.EL-1.2.6-1.1104.i686) scriptlet failed, exit status 1
Is this anything? Is there a very BASIC way I can get things configured to accept incoming calls from the X100P? I don't have anything incoming for the SIP/VoIP so I'm guessing that's not interfering.
Thanks.
Thanks...okay, I'm guessing from the bottom outputs maybe it's not configured correct? I've rebuilt and reconfigured it a number of times and then tried a number of fixes... so I'm not sure what state things are in now.....
If you can point me to the right fix that would be great...
lspci:
00:00.0 Host bridge: Intel Corporation 82810E DC-133 GMCH [Graphics Memory Controller Hub] (rev 03)
00:01.0 VGA compatible controller: Intel Corporation 82810E DC-133 CGC [Chipset Graphics Controller] (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801AA PCI Bridge (rev 02)
00:1f.0 ISA bridge: Intel Corporation 82801AA ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801AA IDE (rev 02)
00:1f.2 USB Controller: Intel Corporation 82801AA USB (rev 02)
00:1f.3 SMBus: Intel Corporation 82801AA SMBus (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio (rev 02)
01:07.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 34)
01:08.0 Communication controller: Motorola Wildcard X100P
lsmod:
Module Size Used by
md5 4033 1
ipv6 235137 14
autofs4 24773 0
i2c_dev 11329 0
i2c_core 22081 1 i2c_dev
sunrpc 162725 1
ztdummy 3924 0
wctdm 34880 0
wcfxo 13088 0
wcte11xp 27936 0
wct1xxp 19488 0
wct4xxp 65600 0
tor2 91936 0
zaptel 206852 9 ztdummy,wctdm,wcfxo,wcte11xp,wct1xxp,wct4xxp,tor2
crc_ccitt 2113 1 zaptel
dm_mirror 27825 0
dm_mod 57556 1 dm_mirror
button 6481 0
battery 8901 0
ac 4805 0
uhci_hcd 31065 0
hw_random 5845 0
snd_intel8x0 33897 0
snd_ac97_codec 63889 1 snd_intel8x0
snd_pcm_oss 49017 0
snd_mixer_oss 17985 1 snd_pcm_oss
snd_pcm 96841 2 snd_intel8x0,snd_pcm_oss
snd_timer 29893 1 snd_pcm
snd_page_alloc 9673 2 snd_intel8x0,snd_pcm
snd_mpu401_uart 8769 1 snd_intel8x0
snd_rawmidi 26597 1 snd_mpu401_uart
snd_seq_device 8137 1 snd_rawmidi
snd 55461 9 snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 9889 1 snd
3c59x 39293 0
mii 5185 1 3c59x
floppy 58481 0
ext3 116809 2
jbd 71385 1 ext3
No zaptel but zaptel.conf? :
# Autogenerated by /usr/local/sbin/genzaptelconf -- do not hand edit
# Zaptel Configuration File
#
# This file is parsed by the Zaptel Configurator, ztcfg
#
# It must be in the module loading order
# Span 1: ZTDUMMY/1 "ZTDUMMY/1 1"
# Global data
loadzone = us
defaultzone = us
proc:
Span 1: ZTDUMMY/1 "ZTDUMMY/1 1"
Hi,
yes that lack of the /etc/sysconfig/zaptel is the problem, for some strange reason this file is missing (and who know witch others)
at the moment only the defult modules are loaded.
can you try runn genzapconfig as that shout generate a new /etc/zaptel.conf
as your card is not defined it that file.
also while you are at it post
cat /proc/zaptel/*
Oops. It was listed as /etc/zaptel initially but here is the one from /etc/sysconfig/ --I did check to see that it wasn't commented out and have run genzapconfig a few times:
TELEPHONY=yes
#DEBUG=yes
# Un-comment as per your requirements; modules to load/unload
# genzaptelconf will populate this file
#Module Name Hardware
MODULES="$MODULES tor2" # T400P - Quad Span T1 Card
# E400P - Quad Span E1 Card
MODULES="$MODULES wct4xxp" # TE405P - Quad Span T1/E1 Card (5v version)
# TE410P - Quad Span T1/E1 Card (3.3v version)
MODULES="$MODULES wct1xxp" # T100P - Single Span T1 Card
# E100P - Single Span E1 Card
MODULES="$MODULES wcte11xp" # TE110P - Single Span T1/E1 Card
MODULES="$MODULES wcfxo" # X100P - Single port FXO interface
# X101P - Single port FXO interface
MODULES="$MODULES wctdm" # TDM400P - Modular FXS/FXO interface (1-4 ports)
MODULES="$MODULES wcfxs" # either above or this
#MODULES="$MODULES wcusb" # S100U - Single port FXS USB Interface
#MODULES="$MODULES wcfxsusb" # either above or this
#MODULES="$MODULES torisa" # Old Tormenta1 ISA Card
MODULES="$MODULES ztdummy" # UHCI USB Zaptel Timing Only Interface
__________________ proc
This was in the bottom of my last post and I get the same result:
]# cat /proc/zaptel/*
Span 1: ZTDUMMY/1 "ZTDUMMY/1 1"
__________________
Thanks for taking a look!
Hi,
found a bug.
in /etc/sysconfig/zaptel
change it to this, as you have enabled the wrong interfaces.
[size=x-small]
TELEPHONY=yes
#DEBUG=yes
# Un-comment as per your requirements; modules to load/unload
# genzaptelconf will populate this file
#Module Name Hardware
MODULES="$MODULES tor2" # T400P - Quad Span T1 Card
# E400P - Quad Span E1 Card
MODULES="$MODULES wct4xxp" # TE405P - Quad Span T1/E1 Card (5v version)
# TE410P - Quad Span T1/E1 Card (3.3v version)
MODULES="$MODULES wct1xxp" # T100P - Single Span T1 Card
# E100P - Single Span E1 Card
# MODULES="$MODULES wcte11xp" # TE110P - Single Span T1/E1 Card
MODULES="$MODULES wcfxo" # X100P - Single port FXO interface X101P - Single port FXO interface
# MODULES="$MODULES wctdm" # TDM400P - Modular FXS/FXO interface (1-4 ports)
# MODULES="$MODULES wcfxs" # either above or this
#MODULES="$MODULES wcusb" # S100U - Single port FXS USB Interface
#MODULES="$MODULES wcfxsusb" # either above or this
#MODULES="$MODULES torisa" # Old Tormenta1 ISA Card
# MODULES="$MODULES ztdummy" # UHCI USB Zaptel Timing Only Interface
[/size]
Okay...so I'm still at a bit of a loss.
I made the changes you suggested and restarted. The X100P still won't pick up the line. Also of interest is that it's defined in outgoing and incoming...but only the SIP connection shows up in the Flash Operator Panel. Shouldn't I see this trunk as well?
After making the changes didn't seem to do it I ran genzaptelconf and it reverted the zaptel file to before the edits again.
I got this:
STARTING FOP SERVER
FOP Server Started
Chan Extension Context Language MusicOnHold
pseudo from-zaptel en
But now after the conf and a restart I do cat/proc and get:
# cat /proc/zaptel/*
Span 1: ZTDUMMY/1 "ZTDUMMY/1 1"
So it looks like running genzaptelconf messes that file up? So I'm not sure what to try next. I'd like not to have to revert to 2.8 but so far I can't get TrixBox to do anything with the card.
Just another thing I noticed...
My FXO dial pattern is setup to catch 10 digit outside numbers and 9 goes direct to the SIP trunk instead.
So, when I go into the FXO route it had been saying "All Circuits are Busy Now..." but adding the SIP as a secondary it dials out fine. Remove the SIP and back to circuits busy on the Zaptel.
It seems like the card is seen by CentOS but that I can't get Asterisk to see it at all.
Hey,
I wanted to simplify so I recorded all my settings an re-installed. Actually I've re-installed 5 times now with different combinations of updating or not updating the system...
It seems TrixBox just plain doesn't like to have an X100P connection? It worked in Asterisk@Home 2.8 and it seems that Linux is seeing it fine. However, nothing I've tried will get it to be seen in Asterisk. I mean, I can create a Zaptel trunk and it shows it assigned to the incoming route...but even after the re-installs the trunk will never appear in the Flash panel and it will not answer calls. In 2.8 it showed up in the Flash panel and answered.
Any ideas? Based on a fresh install, or where I am currently, which is a fresh install and the update script how can I get a X100P to work with TrixBox?
Thanks. --I'm willing to re-install again if necessary. I don't mind if it breaks along the way (like after an update) after I get it seen...but it's amazingly difficult to get this thing working and it's kinda important that the box can actually answer a phone. :-)
Hi, not that it is of any help, but I had the same problem with that card on trixbox...at least mine shows up exactly the same way, as a Motorola X100P, and works fine in A@H 2.7
I put in my old TigerJet X101P clone card (Ambien/Intel chipset and which I don't want to use due to noise and echo problems) and did a rebuild_zaptel and genzaptelconf and it picked it right up! I wonder if there is an issue with the Motorola chipset cards?
My x100p works and is detected properly. I'm having terrible echoing and noise. I've tried 4 seperate cards (one of which is known to work flawlessly) and they have the same problem.
The cards worked fine with 2.8, but since using TB1.0 (after the updates), its having a terrible time. I really think it is something with the drivers.. but i don't know... I've tried seperate lines (a POTS line and a Vonage line and both have the same problem).
If I execute a rebuilt_zaptel, then a genzaptelconf, I noticed there was some errors in the text that went by so fast i almost didnt notice them at all,, I went back and ssh in with putty, so i could scroll back and copy paste it out, here is what i found,
on rebuild_zaptel
**********
Loading zaptel framework: [ OK ]
Waiting for zap to come online: [ OK ]
Loading zaptel hardware modules:
Loading tor2: ZT_CHANCONFIG failed on channel 1: No such device or address (6)
FATAL: Error running install command for tor2
[FAILED]
Loading wct4xxp: ZT_CHANCONFIG failed on channel 1: No such device or address (6)
FATAL: Error running install command for wct4xxp
[FAILED]
Loading wct1xxp: ZT_CHANCONFIG failed on channel 1: No such device or address (6)
FATAL: Error running install command for wct1xxp
[FAILED]
Loading wcte11xp: ZT_CHANCONFIG failed on channel 1: No such device or address (6)
FATAL: Error running install command for wcte11xp
[FAILED]
Loading wcfxo: [ OK ]
Loading wctdm: [ OK ]
Loading wcfxs: [ OK ]
Loading ztdummy: [ OK ]
Running ztcfg: [ OK ]
****************
upon executing genzaptelconf, the following appears
*******************
Unloading wcfxs: ERROR: Module wcfxs does not exist in /proc/modules
[FAILED]
Loading zaptel hardware modules:
Loading tor2: ZT_CHANCONFIG failed on channel 1: No such device or address (6)
FATAL: Error running install command for tor2
[FAILED]
Loading wct4xxp: ZT_CHANCONFIG failed on channel 1: No such device or address (6)
FATAL: Error running install command for wct4xxp
[FAILED]
Loading wct1xxp: ZT_CHANCONFIG failed on channel 1: No such device or address (6)
FATAL: Error running install command for wct1xxp
[FAILED]
Loading wcte11xp: ZT_CHANCONFIG failed on channel 1: No such device or address (6)
FATAL: Error running install command for wcte11xp
[FAILED]
Asterisk Ready.
Asterisk Started
STARTING FOP SERVER
FOP Server Started
Chan Extension Context Language MusicOnHold
pseudo from-zaptel en
1 from-zaptel en
Verbosity is at least 1
Core debug is at least 1
*****************
so,, i dont know what to do about it, but maybe thats the same problem we all have.
anyone knows how to correct this, please share witt me
:pint:
Regards
Tom
I was just banging away at some of the suggested fixes and I finally got it to work. I think what did it was:
1) edit the file /etc/sysconfig/zaptel
comment out the line:
MODULES="$MODULES wcfxo" # X100P - Single port FXO interface
# X101P - Single port FXO interface
2) save it
3) run /usr/local/sbin/genzaptelconf
If that doesn't do it, try running "modprobe wcfxo" and then doing the above steps over again. Somewhere along the way it will kick in. I will re-install trixbox and start from scratch to get this down to a more exact science and let you know.
OK, I ran through the steps again. My lovely x100p clone from DigitNetworks shows up as a Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface when I do an "lspci". In order to get it to work after installing the trixbox all I had to do was:
1) edit the file /etc/sysconfig/zaptel and comment out the line:
MODULES="$MODULES wcfxo" # X100P - Single port FXO interface
# X101P - Single port FXO interface
2) save it
3) next, I did a reboot, but I think doing a "modprobe wcfxo" would get the module loaded without having to reboot
4) last, run /usr/local/sbin/genzaptelconf
5) try it now
Not sure if it applies to the Motorola varieties. My clone card uses the Ambient chipset. Hope this is useful. -Neil
Hmm. Probably not for the Motorola chipset then. Gave it a shot but appears the same and still nothing in the Trunks in the flash panel. I also get errors in the genzaptelconf...although now only two as I tried commenting out all the cards I didn't have. Not sure they were important errors as it seemed to be unloading things that just weren't loaded.
I've tried the patches on Kennonsoft, Nerd Vittles, and various things others have tried on here as well and nothing has got the FXO card to work yet.
I don't know enough about an FXO card to test it...like with a modem you can toss some AT commands at it. Not sure if there is a way to verify that CentOS is talking to it without issue. I can't get it to work pre or post updates though.
On another note, I installed netmrg from the install commands and it broke my Apache. --but I'm not going to worry about that now...I've re-installed since then.
Ted Wallingford in his VoIP Hacks book illustrates how he hacks the code of zaptel/wcfxo.c file to make an Intel V.92 Winmodem work like an X100P.
Change the existing code snipplet:
static struct pci_device_id wcfxo_pci_tbl[] __devinitdata = {
{0xe159, 0x0001, 0x8085, PCI_ANY_ID, 0, 0, (unsigned long) &wcx101p },
{0x1057, 0x5608, PCI_ANY_ID, 0, 0, (unsigned long) &wcx100$};
to this:
static struct pci_device_id wcfxo_pci_tbl[] __devinitdata = {
{0xe159, 0x0001, 0x8085, PCI_ANY_ID, 0, 0, (unsigned long) &wcx101p },
{0xe159, 0x0001, 0x8086, PCI_ANY_ID, 0, 0, (unsigned long) &wcx101p },
{0x1057, 0x5608, PCI_ANY_ID, 0, 0, (unsigned long) &wcx100$};
Add the line in the middle...and recompile Zaptel drivers.
Wonder if this will work for the Ambience & Motorola chipsets?


Member Since:
2006-06-10