DAHDI - PSTN line always busy

Hello

I have a TDM410 card (3FXO+1FXS), the card is installed, but it’s not working, whenever I start DAHDI the PSTN line always stay BUSY, and the card light is Blue on all of the 4 ports, and any one call the number will get the busy tone.

If I stop DAHDI the PSTN line become available and my friend can call but asterisk will not answer because DAHDI is stopped.

I thought the problem is in the signaling that I am using for the FXO port, I’ve tried fxs_ks, fxs_ls & fxs_gs none of them solved my problem.

Here is my configuration if anyone can help (note I am in Saudi Arabia not usa).

/etc/asterisk/chan_dahdi.conf
[trunkgroups]
[channels]
language=en
switchtype=national
rxwink=300
usecallerid=yes
cidsignalling=dtmf
callerid=asreceived
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=128
rxgain=5.0
txgain=2.0
immediate=no
relaxdtmf=yes
;busydetect=yes
;hanguponpolarityswitch=yes

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER) 
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; line="1 WCTDM/0/0 FXSKS  (In use) (SWEC: MG2)"
group=1
context=from-zaptel
channel => 1
signalling=fxs_ks

;;; line="2 WCTDM/0/1 FXSKS  (In use) (SWEC: MG2)"
group=2
context=from-zaptel
channel => 2
signalling=fxs_ks


;;; line="3 WCTDM/0/2 FXSKS  (In use) (SWEC: MG2)"
group=3
context=from-zaptel
channel => 3
signalling=fxs_ks

;;; line="4 WCTDM/0/3 FXOKS  (In use) (SWEC: MG2)"
group=4
context=from-internal
channel => 4
signalling=fxo_ks
callerid="Channel 4" <4004>
mailbox=4004

;#include dahdi-channels.conf
;#include chan_dahdi_additional.conf
/etc/dahdi/system.conf
# Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER) 
fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
fxsks=3
echocanceller=mg2,3
fxoks=4
echocanceller=mg2,4

# Global data
loadzone        = fi
defaultzone     = fi

note: I have set (loadzone & defaultzone) to fi (Finland) , I am in Saudi Arabia, but Finland TONE settings is the closest settings for my country and unfortunately I cannot set it to sa (sa is not defined in zones.c).

also i have (options wctdm24xxp opermode=SAUDIARABIA) in /etc/modprobe.d/dahdi and the card is loaded with that mode:

Sep 20 18:54:12 lan kernel: dahdi: Telephony Interface Registered on major 196
Sep 20 18:54:12 lan kernel: dahdi: Version: 2.2.0.2
Sep 20 18:54:12 lan kernel: PCI: Enabling device 0000:03:00.0 (0000 -> 0003)
Sep 20 18:54:12 lan kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 20 (level, low) -> IRQ 50
Sep 20 18:54:12 lan kernel: Port 1: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:13 lan kernel: Port 2: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:13 lan kernel: Port 3: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:13 lan kernel: wctdm24xxp0: Missed interrupt. Increasing latency to 4 ms in order to compensate.
Sep 20 18:54:15 lan kernel: Port 4: Installed -- AUTO FXS/DPO
Sep 20 18:54:15 lan kernel: wctdm24xxp0: Restarting board initialization after increasing latency.
Sep 20 18:54:15 lan kernel: ACPI: PCI interrupt for device 0000:03:00.0 disabled
Sep 20 18:54:15 lan kernel: PCI: Enabling device 0000:03:00.0 (0000 -> 0003)
Sep 20 18:54:15 lan kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 20 (level, low) -> IRQ 50
Sep 20 18:54:16 lan kernel: Port 1: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:16 lan kernel: Port 2: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:17 lan kernel: Port 3: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:17 lan kernel: wctdm24xxp0: Missed interrupt. Increasing latency to 5 ms in order to compensate.
Sep 20 18:54:19 lan kernel: Port 4: Installed -- AUTO FXS/DPO
Sep 20 18:54:19 lan kernel: wctdm24xxp0: Restarting board initialization after increasing latency.
Sep 20 18:54:19 lan kernel: ACPI: PCI interrupt for device 0000:03:00.0 disabled
Sep 20 18:54:19 lan kernel: PCI: Enabling device 0000:03:00.0 (0000 -> 0003)
Sep 20 18:54:19 lan kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 20 (level, low) -> IRQ 50
Sep 20 18:54:19 lan kernel: wctdm24xxp0: Missed interrupt. Increasing latency to 6 ms in order to compensate.
Sep 20 18:54:19 lan kernel: Port 1: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:19 lan kernel: wctdm24xxp0: Restarting board initialization after increasing latency.
Sep 20 18:54:19 lan kernel: ACPI: PCI interrupt for device 0000:03:00.0 disabled
Sep 20 18:54:19 lan kernel: PCI: Enabling device 0000:03:00.0 (0000 -> 0003)
Sep 20 18:54:19 lan kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 20 (level, low) -> IRQ 50
Sep 20 18:54:19 lan kernel: wctdm24xxp0: Missed interrupt. Increasing latency to 7 ms in order to compensate.
Sep 20 18:54:20 lan kernel: Port 1: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:20 lan kernel: wctdm24xxp0: Restarting board initialization after increasing latency.
Sep 20 18:54:20 lan kernel: ACPI: PCI interrupt for device 0000:03:00.0 disabled
Sep 20 18:54:20 lan kernel: PCI: Enabling device 0000:03:00.0 (0000 -> 0003)
Sep 20 18:54:20 lan kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 20 (level, low) -> IRQ 50
Sep 20 18:54:20 lan kernel: wctdm24xxp0: Missed interrupt. Increasing latency to 8 ms in order to compensate.
Sep 20 18:54:20 lan kernel: Port 1: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:20 lan kernel: wctdm24xxp0: Restarting board initialization after increasing latency.
Sep 20 18:54:20 lan kernel: ACPI: PCI interrupt for device 0000:03:00.0 disabled
Sep 20 18:54:20 lan kernel: PCI: Enabling device 0000:03:00.0 (0000 -> 0003)
Sep 20 18:54:20 lan kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 20 (level, low) -> IRQ 50
Sep 20 18:54:21 lan kernel: wctdm24xxp0: Missed interrupt. Increasing latency to 9 ms in order to compensate.
Sep 20 18:54:21 lan kernel: Port 1: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:21 lan kernel: wctdm24xxp0: Restarting board initialization after increasing latency.
Sep 20 18:54:21 lan kernel: ACPI: PCI interrupt for device 0000:03:00.0 disabled
Sep 20 18:54:21 lan kernel: PCI: Enabling device 0000:03:00.0 (0000 -> 0003)
Sep 20 18:54:21 lan kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 20 (level, low) -> IRQ 50
Sep 20 18:54:21 lan kernel: wctdm24xxp0: Missed interrupt. Increasing latency to 10 ms in order to compensate.
Sep 20 18:54:21 lan kernel: Port 1: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:21 lan kernel: wctdm24xxp0: Restarting board initialization after increasing latency.
Sep 20 18:54:21 lan kernel: ACPI: PCI interrupt for device 0000:03:00.0 disabled
Sep 20 18:54:21 lan kernel: PCI: Enabling device 0000:03:00.0 (0000 -> 0003)
Sep 20 18:54:21 lan kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 20 (level, low) -> IRQ 50
Sep 20 18:54:22 lan kernel: Port 1: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:22 lan kernel: Port 2: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:23 lan kernel: Port 3: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:23 lan kernel: wctdm24xxp0: Missed interrupt. Increasing latency to 11 ms in order to compensate.
Sep 20 18:54:26 lan kernel: Port 4: Installed -- AUTO FXS/DPO
Sep 20 18:54:26 lan kernel: wctdm24xxp0: Restarting board initialization after increasing latency.
Sep 20 18:54:26 lan kernel: ACPI: PCI interrupt for device 0000:03:00.0 disabled
Sep 20 18:54:26 lan kernel: PCI: Enabling device 0000:03:00.0 (0000 -> 0003)
Sep 20 18:54:26 lan kernel: ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 20 (level, low) -> IRQ 50
Sep 20 18:54:26 lan kernel: Port 1: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:27 lan kernel: Port 2: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:28 lan kernel: Port 3: Installed -- AUTO FXO (SAUDIARABIA mode)
Sep 20 18:54:31 lan kernel: Port 4: Installed -- AUTO FXS/DPO
Sep 20 18:54:31 lan kernel: Found a Wildcard TDM: Wildcard TDM410P (4 modules)
Sep 20 18:54:31 lan kernel: dahdi: Registered tone zone 0 (United States / North America)
Sep 20 18:54:31 lan kernel: dahdi_echocan_mg2: Registered echo canceler 'MG2'
Sep 20 18:54:31 lan kernel: dahdi: Registered tone zone 5 (Finland)

and this information i got from the “INTERNATIONAL TELECOMMUNICATION UNION” maybe help?

Saudi Arabia (Kingdom of)	FREQUENCY in Hz		CADENCE in seconds 
 Busy tone -		425			0.5 on 0.5 off 
 Congestion tone -		425			0.25 on 0.25 off 
 Conference tone -		425			0.5 on 2.0 off 0.5 on 15.0 off 
 Dial tone -		425			continuous 
 Payphone recognition tone -	1600/1200			0.2 on 0.2 off 0.2 on 4.0 off 
 Ringing tone -		425			1.2 on 4.6 off 
 Call waiting tone -		425			0.15 on 0.2 off 0.15 on 10.0 off

Thank you for your help.

Are you sure that you have connect psptn line at correct port?You should connect FXS

Wrong, a pstn line has to be plugged into an fxo port.

Cheers.

Marco Bruni
www.marcobruni.net

sorrry my mistake.It is FXO

[quote=“mbruni”][quote]
Are you sure that you have connect psptn line at correct port?You should connect FXS
[/quote]
Wrong, a pstn line has to be plugged into an fxo port.

Cheers.

Marco Bruni
www.marcobruni.net[/quote]

:open_mouth: turned out that the line was connected to the FXS port of the card not the FXO.

i was trying to fix this for a WEEK or more.

Thank you so much gmchun83 :astonished: