FXOTUNE error

Greetings!

I am in a good position to eliminate echo from my system. I am running a TDM2400P analog card. This card has a VPM100M echo canceller on it but it does not work. I cannot get it to work. Digium is convinced it is a dead module.

Moving on, software echo cancellation works pretty well but I want to do it right.

I have 20 FXO channels, 12 set up, and 4 FXS channels, 3 set up.

To tune the fxo using the FXOTUNE utility, I need to stop asterisk:
service asterisk stop

I run the command for FXOTUNE:
fxotune -i -n 4 -b 1 -e 12 -p -vvv

but I get an error:

Tuning module /dev/dahdi/1
Unable to set impedance on fd 4
Failure!
Tuning module /dev/dahdi/2
Unable to set impedance on fd 4
Failure!
Tuning module /dev/dahdi/3
Unable to set impedance on fd 4
Failure!
Tuning module /dev/dahdi/4
Unable to set impedance on fd 4
Failure!
Tuning module /dev/dahdi/5
Unable to set impedance on fd 4
Failure!
Tuning module /dev/dahdi/6
Unable to set impedance on fd 4
Failure!
Tuning module /dev/dahdi/7
Unable to set impedance on fd 4
Failure!
Tuning module /dev/dahdi/8
Unable to set impedance on fd 4
Failure!
Tuning module /dev/dahdi/9
Unable to set impedance on fd 4
Failure!
Tuning module /dev/dahdi/10
Unable to set impedance on fd 4
Failure!
Tuning module /dev/dahdi/11
Unable to set impedance on fd 4
Failure!
Tuning module /dev/dahdi/12
Unable to set impedance on fd 4
Failure!
Unable to tune 12 devices, even though those devices are present

Any ideas?

Is this a genuine Digium card?

That sure is a fancy command…

Try:

fxotune -i 4

I’m almost positive this is not a clone card although I do not know the difference.

I tried that simple code but it is saying the same thing about channels 1-12 (used channels), saying /dev/dahdi/## absent: No such device or address about the channels not in use, and it’s tuning the FXS ports!!
Tuning module /dev/dahdi/21
Done!
Tuning module /dev/dahdi/22
Done!
Tuning module /dev/dahdi/23
Done!
Tuning module /dev/dahdi/24

This isn’t right, is it??

Send output of command line ‘dahdi show status’ from the Linux shell

Also send output of lspci and dmesg (only the lines that mention your card)

Ok, I tried those 3…

dahdi show status -bash: dahdi: command not found
lspci 00:09.0 Ethernet controller: Digium, Inc. Wildcard TDM2400P 24-port analog card (rev 11)
/code>
dmesg wctdm24xxp 0000:00:09.0: Port 1: Installed – AUTO FXS/DPO
wctdm24xxp 0000:00:09.0: Port 2: Installed – AUTO FXS/DPO
wctdm24xxp 0000:00:09.0: Port 3: Installed – AUTO FXS/DPO
wctdm24xxp 0000:00:09.0: Port 4: Installed – AUTO FXS/DPO
wctdm24xxp 0000:00:09.0: Port 5: Installed – AUTO FXS/DPO
wctdm24xxp 0000:00:09.0: Port 6: Installed – AUTO FXS/DPO
wctdm24xxp 0000:00:09.0: Port 7: Installed – AUTO FXS/DPO
wctdm24xxp 0000:00:09.0: Port 8: Installed – AUTO FXS/DPO
wctdm24xxp 0000:00:09.0: Port 9: Installed – AUTO FXS/DPO
wctdm24xxp 0000:00:09.0: Port 10: Installed – AUTO FXS/DPO
wctdm24xxp 0000:00:09.0: Port 11: Installed – AUTO FXS/DPO
wctdm24xxp 0000:00:09.0: Port 12: Installed – AUTO FXS/DPO
wctdm24xxp 0000:00:09.0: Port 13: Not installed
wctdm24xxp 0000:00:09.0: Port 14: Not installed
wctdm24xxp 0000:00:09.0: Port 15: Not installed
wctdm24xxp 0000:00:09.0: Port 16: Not installed
wctdm24xxp 0000:00:09.0: Port 17: Not installed
wctdm24xxp 0000:00:09.0: Port 18: Not installed
wctdm24xxp 0000:00:09.0: Port 19: Not installed
wctdm24xxp 0000:00:09.0: Port 20: Not installed
wctdm24xxp 0000:00:09.0: Port 21: Installed – AUTO FXO (FCC mode)
wctdm24xxp 0000:00:09.0: Port 22: Installed – AUTO FXO (FCC mode)
wctdm24xxp 0000:00:09.0: Port 23: Installed – AUTO FXO (FCC mode)
wctdm24xxp 0000:00:09.0: Port 24: Installed – AUTO FXO (FCC mode)
wctdm24xxp 0000:00:09.0: Found a Wildcard TDM: Wildcard TDM2400P (0 BRI spans, 16 analog channels)

Hmmmmmmm… that’s not right. I have no clue how that is backwards.

After that, the output with the card shows a whole bunch of wctdm24xxp 0000:00:09.0: – Setting echo registers:
wctdm24xxp 0000:00:09.0: – Set echo registers successfully
wctdm24xxp 0000:00:09.0: – Setting echo registers:
wctdm24xxp 0000:00:09.0: – Set echo registers successfully
wctdm24xxp 0000:00:09.0: – Setting echo registers:
wctdm24xxp 0000:00:09.0: – Set echo registers successfully
wctdm24xxp 0000:00:09.0: – Setting echo registers:
wctdm24xxp 0000:00:09.0: – Set echo registers successfully
wctdm24xxp 0000:00:09.0: – Setting echo registers:
wctdm24xxp 0000:00:09.0: – Set echo registers successfully
wctdm24xxp 0000:00:09.0: – Setting echo registers:
wctdm24xxp 0000:00:09.0: – Set echo registers successfully

It’s not dahdi show status sorry it’s ‘service dahdi status’

dahdi_hardware should show you the card inventory though I seem to be off tonight.

Thanks for your help so far. It’s hard to get through this without someone like you.

service dahdi status ### Span 1: WCTDM/0 “Wildcard TDM2400P” (MASTER)
1 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
2 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
3 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
4 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
5 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
6 FXS FXOKS (EC: MG2 - INACTIVE)
7 FXS FXOKS (EC: MG2 - INACTIVE)
8 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
9 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
10 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
11 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
12 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
13 unknown Reserved
14 unknown Reserved
15 unknown Reserved
16 unknown Reserved
17 unknown Reserved
18 unknown Reserved
19 unknown Reserved
20 unknown Reserved
21 FXO FXSKS (In use) (EC: MG2 - INACTIVE)
22 FXO FXSKS (In use) (EC: MG2 - INACTIVE)
23 FXO FXSKS (In use) (EC: MG2 - INACTIVE)
24 FXO FXSKS (In use) (EC: MG2 - INACTIVE) RED

dahdi_hardwarepci:0000:00:09.0 wctdm24xxp+ d161:2400 Wildcard TDM2400P

Looks like you have 12 FXS cards installed not FXO. You need to physically verify.

FXS are green FXO are red

I have 3 green and one red…

So you have 12 FXS just like is showing and 4 fxo’s that are not being detected.

Have your tried rerunning dahdigenconf -F -vvvvvv

But… no, I have 12 analog phones and 3 (with room for a possible 4th) analog trunks. It appears I am running the phones on the FXS cards. I know this is possible because it is working but is it doing any damage being backwards this way?

FXO, the O means Office
FXS, the S means Station

Stations, telephone instruments connect to FXS interfaces

A little bit unclear…
12 FXS lines (3 green cards). FXS is where the POTS should hooks up.
4 FXO lines (1 red card). This is where my analog phones should hook up.
Is that right?

If that is correct, I have it backwards where the 12 FXS lines are connected to my analog phones, not the POTS whereas the 4 FXO lines are connected to the POTS… somehow.

Oh, I think I am getting it… the FXO and FXS refers to the device port. So from Telco to Analog phone it would go:

Telco----{{|(DEMARK)|FXS|—{|FXO|(PBX)|FXS|}—(ANALOG PHONE)}}

Here’s a quick question: Is the FXOTUNE suppose to help with the echo of the trunk lines going out to the telco OR is it suppose to be helping with the echo on the analog telephone and interoffice calls?

fxo tune balances the impedance of the FXO interfaces connected to the telco lines.

Thank you SkykingOH! So now it all starts to makes sense. I finally got the fxotune to work when I pointed it at the red card (fxo) (channels 21-24).

I have some values in the fxotune.conf file but I was told that the -n option is necessary to eliminate dial tone noise during the test. Is this true and if so, which digit should be used?

Now that I have the values in the fxotune.conf, do I need to edit any other config to load the values at startup?

Thanks again… almost there :slight_smile:

Sorry, how do I know if the fxotune.conf is loading at startup?

Traditionally you would have

/sbin/fxotune -s

in /etc/rc.local

and

/etc/fxotune.conf

would need to contain the parameters to so tune the hybrids.

oops

/usr/sbin/fxotune -s

:slight_smile: