DAHDI line is not picked up

Hi i have a problem with DAHDI TDM400P clone card where incoming or outgoing calls not being initiated.

When i dial a number Asterisk seems to show that the number being dialed and its looks like everything works but the destination number never rings (never dialed)

Here is the output.

Executing [[email protected]:1] Dial(“SIP/oleg-00000000”, “DAHDI/g0/xxxxxxxx”) in new stack
– Called DAHDI/g0/xxxxxxxx
– Hanging up on ‘DAHDI/1-1’
– Hungup ‘DAHDI/1-1’
== Spawn extension (allcalls, xxxxxx, 1) exited non-zero on 'SIP/oleg-00000000’
Same happens for incoming calls Asterisk just not getting any calls from card.
All the modules seems to be installed correctly. All the DAHDI related diagnostic functions work correctly showing that the hardware is detected and that the channels are present in Asterisk.

Chan Extension Context Language MOH Interpret Blocked State
pseudo default default In Service
1 incoming default In Service
2 incoming default In Service

Basically no extensions spawned on incoming calls and outgoing calls not being made although asterisk shows that their being made normally.

The installation is being done on Debian 6.0.2. With freePbx the card works fine even with the same dahdi and asterisk version. I know its not the generic support forum but i hoped somebody might have runned into same problem in the past and might help me out.

Thanks.

The trunks are in the default context. You need to put the FXO ports in the from-dahdi context.

in the dahdi-channels.conf and in the chan-dadhi.conf?

here is the configuration

; Span 1: WCTDM/4 “Wildcard TDM400P REV I Board 5” (MASTER)
;;; line="1 WCTDM/4/0 FXSKS (In use) (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-dahdi
channel => 1
;;; line="2 WCTDM/4/1 FXSKS (In use) (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-dahdi
channel => 2

;
; Zapata telephony interface
;
; Configuration file

[trunkgroups]

[channels]

language=en
context=from-dahdi
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
busydetect=yes
busycount=10
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no

;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no

#include dahdi-channels.conf

You need to check every file and the includes.

The last declaration has precedence. If you don’t want to figure it out you can change the all. Make sure you get every file.

Just make sure that FXO ports are in from-dahdi and fxs in from-internal.

Could the problem be in the linux distro itself?
Perhaps some wrong headers defenitions in the kernel sources of my debian build?

I have used all the configuration of freepbx and used it on my debian machine and the result was exactly the same , though the same configuration was working fine on freePbx.

I dont think that it has to do with configuration as its clear that the line is opened when i dial out from Asterisk but dialing not occouring :frowning: and the worst is that there is no errors at all.

Should i try using older versions of Debian ? What do you think?

Changed the pci slot and all worked as it should.
Thank you for your help.