Hi,
I’m trying to setup a testing Asterisk server for home with 1 FXO + 2 SIP.
Please, help me to determine the cause of the problem.
BOX: Core2Duo 2.6 / 4Gb. No firewall/filter.
Ubuntu 8.10 + Asterisk 1.6.2.0-rc1 + Dahdi 2.2.0.2 + X100SE (http://www.x100p.com/products/FXO.php)
All is installed and running without any errors.
Problem
When I try to test FXO setup with Echo() extension:
- Incoming call detected and answered.
- Greeting is played and outgoing audio is clear.
- But the Echo() test doesn’t returns incoming audio. Depending on RX/TX gain adjustment I hear nothing or unreadable sounds.
Same thing when the call is forwarded to SIP softphone - outgoing (from SIP) audio is clear, but no incoming audio at all.
What I’ve tried so far with no effect:
- Tried different PCI slots.
- Tried other PC (P4 2.4 / 1G / Intel MB)
- connected to UPS (power and pstn line)
- Tried different line (moved BOX to other location).
- Added round magnet to wire from line to FXO port.
- Tried to ground the BOX.
- Tried to change DAA: FCC and CTR21
- Tried to turn off echo cancellation.
dmesg
[ 2000.939860] dahdi: Telephony Interface Registered on major 196
[ 2000.939869] dahdi: Version: 2.2.0.2
[ 2001.050012] wcfxo: DAA mode is 'CTR21'
[ 2001.050020] Found a Wildcard FXO: Wildcard X100P
[ 2001.207344] dahdi_echocan_mg2: Registered echo canceler 'MG2'
[ 2001.208627] dahdi: Registered tone zone 22 (Lithuania)
root@vmsrv:/home/makos# cat /proc/interrupts
CPU0 CPU1
0: 80 0 IO-APIC-edge timer
1: 22 0 IO-APIC-edge i8042
8: 72 0 IO-APIC-edge rtc0
9: 0 0 IO-APIC-fasteoi acpi
14: 2776 1047 IO-APIC-edge ata_piix
15: 0 0 IO-APIC-edge ata_piix
21: 25 1271 IO-APIC-fasteoi eth2
[b]23: 104936 0 IO-APIC-fasteoi wcfxo[/b]
NMI: 0 0 Non-maskable interrupts
LOC: 2576 4800 Local timer interrupts
RES: 809 910 Rescheduling interrupts
CAL: 959 1251 function call interrupts
TLB: 178 599 TLB shootdowns
SPU: 0 0 Spurious interrupts
ERR: 0
MIS: 0
[code]root@vmsrv:/home/makos# dahdi_cfg -vvvv
DAHDI Tools Version - 2.2.0
DAHDI Version: 2.2.0.2
Echo Canceller(s): MG2
Configuration
Channel map:
Channel 01: FXS Kewlstart (Default) (Echo Canceler: mg2) (Slaves: 01)
1 channels to configure.
Setting echocan for channel 1 to mg2
[/code]
root@vmsrv:/home/makos# dahdi_test
Opened pseudo dahdi interface, measuring accuracy...
99.983% 99.989% 99.983% 99.983% 99.983% 99.983% 99.983% 99.983%
99.983% 99.984% 99.983% 99.982% 99.982% 99.983% 99.983% 99.983%
99.982% 99.983% 99.982% 99.982% 99.983% 99.983% 99.983% 99.983%
99.983% 99.983% 99.983% 99.983% 99.983% 99.983% 99.983% 99.983%
--- Results after 32 passes ---
Best: 99.989 -- Worst: 99.982 -- Average: 99.982855, Difference: 100.017145
dahdi_monitor without line attached:
[code]root@vmsrv:/home/makos# dahdi_monitor 1 -v
Visual Audio Levels.
Use chan_dahdi.conf file to adjust the gains if needed.
( # = Audio Level * = Max Audio Hit )
<----------------(RX)----------------> <----------------(TX)---------------->
[/code]
dahdi_monitor with line attached and RX/TX gain set to 0:
[code]root@vmsrv:/home/makos# dahdi_monitor 1 -v
Visual Audio Levels.
Use chan_dahdi.conf file to adjust the gains if needed.
( # = Audio Level * = Max Audio Hit )
<----------------(RX)---------------->
###############*
<----------------(TX)---------------->
[/code]
dahdi_monitor with line attached and RX=-6.5 / TX=1:
[code]root@vmsrv:/home/makos# dahdi_monitor 1 -v
Visual Audio Levels.
Use chan_dahdi.conf file to adjust the gains if needed.
( # = Audio Level * = Max Audio Hit )
<----------------(RX)---------------->
#######*
<----------------(TX)----------------> [/code]
chan_dahdi.conf
[code][trunkgroups]
[channels]
#include /etc/asterisk/dahdi-channels.conf
signalling=fxs_ks
callerid=asreceived
group=0
rxgain=4 ; tried from -6.4 to 10 (10 generates constatnt horrible noise)
txgain=-3 ; tried from -4.5 to 8 (outgoing audio is OK)
context=from-pstn
busydetect=yes
busycount=3
usecallerid=yes
;threewaycalling=yes
transfer=yes
cancallforward=yes
;canpark=yes
;cancallforward=yes
callreturn=yes
echocancel=yes ; tried yes/no
echocancelwhenbridged=yes ; tried yes/no
echotraining=400 ; tried 200/400/800
channel => 1[/code]
system.conf
[code]fxsks=1
echocanceller=mg2,1
Global data
loadzone = lt
defaultzone = lt[/code]
What else can I do to troubleshoot?
Thanks in advance.
Max.