First time setting up a DAHDI board. I have all trunk ports fully working; however, I am stuck on one remaining issue.
I have a TDM800 card with 1FXO/FXS card + 4 FXO.
I am able to call out from the Analog phone, to both extensions and trunks; however, all incoming calls to that extension receive a fast busy tone.
Here is the auto dahdi_cfg configuration.
dahdi-channels.conf
; Span 1: WCTDM/0 "Wildcard TDM800P Board 1" (MASTER)
;;; line="1 WCTDM/0/0 FXOKS"
;signalling=fxo_ks
;callerid="Channel 1" <4001>
;mailbox=4001
;group=5
;context=from-internal
;rxgain=0
;txgain=0
;channel => 1
;callerid=
;mailbox=
;group=
;context=default
I have commented this lines out because I have configured the line in FreePBX.
chan_dahdi_additional.conf
;;;;;;[399]
signalling=fxo_ks
pickupgroup=
mailbox=399@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=no
context=from-internal
callprogress=no
callgroup=
callerid=device <399>
busydetect=no
busycount=7
accountcode=
channel=>1
Here is the Asterisk output
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [399@from-internal:1] ExecIf("SIP/322-000000a9", "0?Set(__RINGTIMER=0)") in new stack
-- Executing [399@from-internal:2] Macro("SIP/322-000000a9", "exten-vm,novm,399,0,0,0") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/322-000000a9", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/322-000000a9", "AMPUSER=322") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/322-000000a9", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/322-000000a9", "1?Set(REALCALLERIDNUM=322)") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/322-000000a9", "AMPUSER=322") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/322-000000a9", "AMPUSERCIDNAME=Nathan") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/322-000000a9", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/322-000000a9", "AMPUSERCID=322") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/322-000000a9", "CALLERID(all)="Nathan" <322>") in new stack
-- Executing [s@macro-user-callerid:9] GotoIf("SIP/322-000000a9", "0?limit") in new stack
-- Executing [s@macro-user-callerid:10] ExecIf("SIP/322-000000a9", "0?Set(GROUP(concurrency_limit)=322)") in new stack
-- Executing [s@macro-user-callerid:11] ExecIf("SIP/322-000000a9", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/322-000000a9", "0?continue") in new stack
-- Executing [s@macro-user-callerid:13] Set("SIP/322-000000a9", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:14] GotoIf("SIP/322-000000a9", "1?continue") in new stack
-- Goto (macro-user-callerid,s,25)
-- Executing [s@macro-user-callerid:25] Set("SIP/322-000000a9", "CALLERID(number)=322") in new stack
-- Executing [s@macro-user-callerid:26] Set("SIP/322-000000a9", "CALLERID(name)=Nathan") in new stack
-- Executing [s@macro-user-callerid:27] Set("SIP/322-000000a9", "CHANNEL(language)=en") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/322-000000a9", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/322-000000a9", "__EXTTOCALL=399") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/322-000000a9", "__PICKUPMARK=399") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/322-000000a9", "RT=""") in new stack
-- Executing [s@macro-exten-vm:6] Macro("SIP/322-000000a9", "record-enable,399,IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/322-000000a9", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] ExecIf("SIP/322-000000a9", "0?MacroExit()") in new stack
-- Executing [s@macro-record-enable:5] GotoIf("SIP/322-000000a9", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,14)
-- Executing [s@macro-record-enable:14] GotoIf("SIP/322-000000a9", "1?IN") in new stack
-- Goto (macro-record-enable,s,18)
-- Executing [s@macro-record-enable:18] ExecIf("SIP/322-000000a9", "1?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:7] GotoIf("SIP/322-000000a9", "1?macrodial") in new stack
-- Goto (macro-exten-vm,s,13)
-- Executing [s@macro-exten-vm:13] GosubIf("SIP/322-000000a9", "0?clrheader,1") in new stack
-- Executing [s@macro-exten-vm:14] Macro("SIP/322-000000a9", "dial-one,"",trWw,399") in new stack
-- Executing [s@macro-dial-one:1] Set("SIP/322-000000a9", "DEXTEN=399") in new stack
-- Executing [s@macro-dial-one:2] Set("SIP/322-000000a9", "DIALSTATUS_CW=") in new stack
-- Executing [s@macro-dial-one:3] GosubIf("SIP/322-000000a9", "0?screen,1") in new stack
-- Executing [s@macro-dial-one:4] GosubIf("SIP/322-000000a9", "0?cf,1") in new stack
-- Executing [s@macro-dial-one:5] GotoIf("SIP/322-000000a9", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [s@macro-dial-one:8] GotoIf("SIP/322-000000a9", "0?nodial") in new stack
-- Executing [s@macro-dial-one:9] GotoIf("SIP/322-000000a9", "0?continue") in new stack
-- Executing [s@macro-dial-one:10] Set("SIP/322-000000a9", "EXTHASCW=ENABLED") in new stack
-- Executing [s@macro-dial-one:11] GotoIf("SIP/322-000000a9", "0?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,23)
-- Executing [s@macro-dial-one:23] GotoIf("SIP/322-000000a9", "1?next3:continue") in new stack
-- Goto (macro-dial-one,s,24)
-- Executing [s@macro-dial-one:24] ExecIf("SIP/322-000000a9", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
-- Executing [s@macro-dial-one:25] GotoIf("SIP/322-000000a9", "0?nodial") in new stack
-- Executing [s@macro-dial-one:26] GosubIf("SIP/322-000000a9", "1?dstring,1:dlocal,1") in new stack
-- Executing [dstring@macro-dial-one:1] Set("SIP/322-000000a9", "DSTRING=") in new stack
-- Executing [dstring@macro-dial-one:2] Set("SIP/322-000000a9", "DEVICES=399") in new stack
-- Executing [dstring@macro-dial-one:3] ExecIf("SIP/322-000000a9", "0?Return()") in new stack
-- Executing [dstring@macro-dial-one:4] ExecIf("SIP/322-000000a9", "0?Set(DEVICES=99)") in new stack
-- Executing [dstring@macro-dial-one:5] Set("SIP/322-000000a9", "LOOPCNT=1") in new stack
-- Executing [dstring@macro-dial-one:6] Set("SIP/322-000000a9", "ITER=1") in new stack
-- Executing [dstring@macro-dial-one:7] Set("SIP/322-000000a9", "THISDIAL=DAHDI/g1") in new stack
-- Executing [dstring@macro-dial-one:8] GosubIf("SIP/322-000000a9", "1?zap2dahdi,1") in new stack
-- Executing [zap2dahdi@macro-dial-one:1] ExecIf("SIP/322-000000a9", "0?Return()") in new stack
-- Executing [zap2dahdi@macro-dial-one:2] Set("SIP/322-000000a9", "NEWDIAL=") in new stack
-- Executing [zap2dahdi@macro-dial-one:3] Set("SIP/322-000000a9", "LOOPCNT2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:4] Set("SIP/322-000000a9", "ITER2=1") in new stack
-- Executing [zap2dahdi@macro-dial-one:5] Set("SIP/322-000000a9", "THISPART2=DAHDI/g1") in new stack
-- Executing [zap2dahdi@macro-dial-one:6] ExecIf("SIP/322-000000a9", "0?Set(THISPART2=DAHDIDI/g1)") in new stack
-- Executing [zap2dahdi@macro-dial-one:7] Set("SIP/322-000000a9", "NEWDIAL=DAHDI/g1&") in new stack
-- Executing [zap2dahdi@macro-dial-one:8] Set("SIP/322-000000a9", "ITER2=2") in new stack
-- Executing [zap2dahdi@macro-dial-one:9] GotoIf("SIP/322-000000a9", "0?begin2") in new stack
-- Executing [zap2dahdi@macro-dial-one:10] Set("SIP/322-000000a9", "THISDIAL=DAHDI/g1") in new stack
-- Executing [zap2dahdi@macro-dial-one:11] Return("SIP/322-000000a9", "") in new stack
-- Executing [dstring@macro-dial-one:9] Set("SIP/322-000000a9", "DSTRING=DAHDI/g1&") in new stack
-- Executing [dstring@macro-dial-one:10] Set("SIP/322-000000a9", "ITER=2") in new stack
-- Executing [dstring@macro-dial-one:11] GotoIf("SIP/322-000000a9", "0?begin") in new stack
-- Executing [dstring@macro-dial-one:12] Set("SIP/322-000000a9", "DSTRING=DAHDI/g1") in new stack
-- Executing [dstring@macro-dial-one:13] Return("SIP/322-000000a9", "") in new stack
-- Executing [s@macro-dial-one:27] GotoIf("SIP/322-000000a9", "0?nodial") in new stack
-- Executing [s@macro-dial-one:28] GotoIf("SIP/322-000000a9", "1?skiptrace") in new stack
-- Goto (macro-dial-one,s,30)
-- Executing [s@macro-dial-one:30] Set("SIP/322-000000a9", "D_OPTIONS=trWw") in new stack
-- Executing [s@macro-dial-one:31] ExecIf("SIP/322-000000a9", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [s@macro-dial-one:32] ExecIf("SIP/322-000000a9", "0?SIPAddHeader()") in new stack
-- Executing [s@macro-dial-one:33] ExecIf("SIP/322-000000a9", "0?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [s@macro-dial-one:34] GosubIf("SIP/322-000000a9", "0?qwait,1") in new stack
-- Executing [s@macro-dial-one:35] Set("SIP/322-000000a9", "__CWIGNORE=") in new stack
-- Executing [s@macro-dial-one:36] Set("SIP/322-000000a9", "__KEEPCID=TRUE") in new stack
-- Executing [s@macro-dial-one:37] GotoIf("SIP/322-000000a9", "0?usegoto,1") in new stack
-- Executing [s@macro-dial-one:38] GotoIf("SIP/322-000000a9", "0?godial") in new stack
-- Executing [s@macro-dial-one:39] Set("SIP/322-000000a9", "CONNECTEDLINE(name,i)=FaxMachine") in new stack
-- Executing [s@macro-dial-one:40] Set("SIP/322-000000a9", "CONNECTEDLINE(num)=399") in new stack
-- Executing [s@macro-dial-one:41] Set("SIP/322-000000a9", "D_OPTIONS=trWwI") in new stack
-- Executing [s@macro-dial-one:42] Dial("SIP/322-000000a9", "DAHDI/g1,"",trWwI") in new stack
[2011-06-07 15:06:23] WARNING[12029]: app_dial.c:2039 dial_exec_full: Unable to create channel of type 'DAHDI' (cause 34 - Circuit/channel congestion)
== Everyone is busy/congested at this time (1:0/1/0)
-- Executing [s@macro-dial-one:43] ExecIf("SIP/322-000000a9", "0?Set(DIALSTATUS=)") in new stack
-- Executing [s@macro-dial-one:44] GosubIf("SIP/322-000000a9", "0?s-CONGESTION,1") in new stack
-- Executing [s@macro-dial-one:45] MacroExit("SIP/322-000000a9", "") in new stack
-- Executing [s@macro-exten-vm:15] GotoIf("SIP/322-000000a9", "0?exit") in new stack
-- Executing [s@macro-exten-vm:16] Set("SIP/322-000000a9", "SV_DIALSTATUS=CONGESTION") in new stack
-- Executing [s@macro-exten-vm:17] GosubIf("SIP/322-000000a9", "0?docfu,1") in new stack
-- Executing [s@macro-exten-vm:18] GosubIf("SIP/322-000000a9", "0?docfb,1") in new stack
-- Executing [s@macro-exten-vm:19] Set("SIP/322-000000a9", "DIALSTATUS=CONGESTION") in new stack
-- Executing [s@macro-exten-vm:20] ExecIf("SIP/322-000000a9", "0?MacroExit()") in new stack
-- Executing [s@macro-exten-vm:21] GotoIf("SIP/322-000000a9", "1?s-CONGESTION,1") in new stack
-- Goto (macro-exten-vm,s-CONGESTION,1)
-- Executing [s-CONGESTION@macro-exten-vm:1] GotoIf("SIP/322-000000a9", "0?exit,1") in new stack
-- Executing [s-CONGESTION@macro-exten-vm:2] PlayTones("SIP/322-000000a9", "congestion") in new stack
-- Executing [s-CONGESTION@macro-exten-vm:3] Congestion("SIP/322-000000a9", "10") in new stack
== Spawn extension (macro-exten-vm, s-CONGESTION, 3) exited non-zero on 'SIP/322-000000a9' in macro 'exten-vm'
== Spawn extension (from-internal, 399, 2) exited non-zero on 'SIP/322-000000a9'
-- Executing [h@from-internal:1] Hangup("SIP/322-000000a9", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/322-000000a9'
localhost*CLI> exit
Thoughts, ideas?