Unable to create channel of type DAHDI

Hi there,

I have a problem with outgoing calls while inbound calls are fine. I use only one telco line.
This is my dahdi-channels.conf:

; Span 1: WCTDM/0 “Wildcard TDM800P Board 1” (MASTER)
;;; line="1 WCTDM/0/0 FXSKS (In use)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default

My system.conf:

Autogenerated by /usr/sbin/dahdi_genconf on Tue Feb 26 11:36:04 2013

If you edit this file and execute /usr/sbin/dahdi_genconf again,

your manual changes will be LOST.

Dahdi Configuration File

This file is parsed by the Dahdi Configurator, dahdi_cfg

Span 1: WCTDM/0 “Wildcard TDM800P Board 1” (MASTER)

fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
fxsks=3
echocanceller=mg2,3
fxsks=4
echocanceller=mg2,4

channel 5, WCTDM/0/4, no module.

channel 6, WCTDM/0/5, no module.

channel 7, WCTDM/0/6, no module.

channel 8, WCTDM/0/7, no module.

Global data

loadzone = fr
defaultzone = fr

My /var/log/asteris/full:

[Feb 26 10:19:04] VERBOSE[4374] res_agi.c: – Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
[Feb 26 10:19:05] VERBOSE[4374] res_agi.c: == fixlocalprefix: Dialpattern X. matched. 03052264 -> 03052264
[Feb 26 10:19:05] VERBOSE[4374] res_agi.c: – <SIP/200-00000000>AGI Script fixlocalprefix completed, returning 0
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:13] Set(“SIP/200-00000000”, “OUTNUM=03052264”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:14] Set(“SIP/200-00000000”, “custom=DAHDI/R1”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:15] ExecIf(“SIP/200-00000000”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:16] Macro(“SIP/200-00000000”, “dialout-trunk-predial-hook,”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:1] MacroExit(“SIP/200-00000000”, “”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:17] GotoIf(“SIP/200-00000000”, “0?bypass,1”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:18] GotoIf(“SIP/200-00000000”, “0?customtrunk”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:19] Dial(“SIP/200-00000000”, “DAHDI/R1/03052264,300,”) in new stack
[Feb 26 10:19:05] WARNING[4374] app_dial.c: Unable to create channel of type ‘DAHDI’ (cause 0 - Unknown)
[Feb 26 10:19:05] VERBOSE[4374] app_dial.c: == Everyone is busy/congested at this time (1:0/0/1)
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:20] NoOp(“SIP/200-00000000”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 0”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:21] Goto(“SIP/200-00000000”, “s-CHANUNAVAIL,1”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:1] Set(“SIP/200-00000000”, “RC=0”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:2] Goto(“SIP/200-00000000”, “0,1”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Goto (macro-dialout-trunk,0,1)
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:5] Macro(“SIP/200-00000000”, “outisbusy,”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:1] Progress(“SIP/200-00000000”, “”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] pbx.c: – Executing [[email protected]:2] Playback(“SIP/200-00000000”, “all-circuits-busy-now,noanswer”) in new stack
[Feb 26 10:19:05] VERBOSE[4374] file.c: – <SIP/200-00000000> Playing ‘all-circuits-busy-now.gsm’ (language ‘en’)
[Feb 26 10:19:06] NOTICE[4374] rtp.c: Comfort noise support incomplete in Asterisk (RFC 3389). Please turn off on client if possible. Client IP: 10.17.1.13
[Feb 26 10:19:07] VERBOSE[4374] pbx.c: – Executing [[email protected]:3] Playback(“SIP/200-00000000”, “pls-try-call-later,noanswer”) in new stack
[Feb 26 10:19:07] VERBOSE[4374] file.c: – <SIP/200-00000000> Playing ‘pls-try-call-later.gsm’ (language ‘en’)
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Executing [[email protected]:4] Macro(“SIP/200-00000000”, “hangupcall”) in new stack
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/200-00000000”, “1?skiprg”) in new stack
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Goto (macro-hangupcall,s,4)
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Executing [[email protected]:4] GotoIf(“SIP/200-00000000”, “1?skipblkvm”) in new stack
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Goto (macro-hangupcall,s,7)
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Executing [[email protected]:7] GotoIf(“SIP/200-00000000”, “1?theend”) in new stack
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Goto (macro-hangupcall,s,9)
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Executing [[email protected]:9] Hangup(“SIP/200-00000000”, “”) in new stack
[Feb 26 10:19:09] VERBOSE[4374] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/200-00000000’ in macro ‘hangupcall’
[Feb 26 10:19:09] VERBOSE[4374] app_macro.c: == Spawn extension (macro-outisbusy, s, 4) exited non-zero on ‘SIP/200-00000000’ in macro ‘outisbusy’
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: == Spawn extension (from-internal, 003052264, 5) exited non-zero on ‘SIP/200-00000000’
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Executing [[email protected]:1] Macro(“SIP/200-00000000”, “hangupcall”) in new stack
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/200-00000000”, “1?skiprg”) in new stack
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Goto (macro-hangupcall,s,4)
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Executing [[email protected]:4] GotoIf(“SIP/200-00000000”, “1?skipblkvm”) in new stack
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Goto (macro-hangupcall,s,7)
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Executing [[email protected]:7] GotoIf(“SIP/200-00000000”, “1?theend”) in new stack
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Goto (macro-hangupcall,s,9)
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: – Executing [[email protected]:9] Hangup(“SIP/200-00000000”, “”) in new stack
[Feb 26 10:19:09] VERBOSE[4374] app_macro.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/200-00000000’ in macro ‘hangupcall’
[Feb 26 10:19:09] VERBOSE[4374] pbx.c: == Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/200-00000000’
[Feb 26 10:28:32] VERBOSE[4372] asterisk.c: – Remote UNIX connection disconnected

It’s been more than 6 hours ago that I’m working on this specific problem. I’m really in a hurry so please help me.