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=
[email protected]
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 [[email protected]:1] ExecIf("SIP/322-000000a9", "0?Set(__RINGTIMER=0)") in new stack
-- Executing [[email protected]:2] Macro("SIP/322-000000a9", "exten-vm,novm,399,0,0,0") in new stack
-- Executing [[email protected]:1] Macro("SIP/322-000000a9", "user-callerid,") in new stack
-- Executing [[email protected]:1] Set("SIP/322-000000a9", "AMPUSER=322") in new stack
-- Executing [[email protected]:2] GotoIf("SIP/322-000000a9", "0?report") in new stack
-- Executing [[email protected]:3] ExecIf("SIP/322-000000a9", "1?Set(REALCALLERIDNUM=322)") in new stack
-- Executing [[email protected]:4] Set("SIP/322-000000a9", "AMPUSER=322") in new stack
-- Executing [[email protected]:5] Set("SIP/322-000000a9", "AMPUSERCIDNAME=Nathan") in new stack
-- Executing [[email protected]:6] GotoIf("SIP/322-000000a9", "0?report") in new stack
-- Executing [[email protected]:7] Set("SIP/322-000000a9", "AMPUSERCID=322") in new stack
-- Executing [[email protected]:8] Set("SIP/322-000000a9", "CALLERID(all)="Nathan" <322>") in new stack
-- Executing [[email protected]:9] GotoIf("SIP/322-000000a9", "0?limit") in new stack
-- Executing [[email protected]:10] ExecIf("SIP/322-000000a9", "0?Set(GROUP(concurrency_limit)=322)") in new stack
-- Executing [[email protected]:11] ExecIf("SIP/322-000000a9", "0?Set(CHANNEL(language)=)") in new stack
-- Executing [[email protected]:12] GotoIf("SIP/322-000000a9", "0?continue") in new stack
-- Executing [[email protected]:13] Set("SIP/322-000000a9", "__TTL=64") in new stack
-- Executing [[email protected]:14] GotoIf("SIP/322-000000a9", "1?continue") in new stack
-- Goto (macro-user-callerid,s,25)
-- Executing [[email protected]:25] Set("SIP/322-000000a9", "CALLERID(number)=322") in new stack
-- Executing [[email protected]:26] Set("SIP/322-000000a9", "CALLERID(name)=Nathan") in new stack
-- Executing [[email protected]:27] Set("SIP/322-000000a9", "CHANNEL(language)=en") in new stack
-- Executing [[email protected]:2] Set("SIP/322-000000a9", "RingGroupMethod=none") in new stack
-- Executing [[email protected]:3] Set("SIP/322-000000a9", "__EXTTOCALL=399") in new stack
-- Executing [[email protected]:4] Set("SIP/322-000000a9", "__PICKUPMARK=399") in new stack
-- Executing [[email protected]:5] Set("SIP/322-000000a9", "RT=""") in new stack
-- Executing [[email protected]:6] Macro("SIP/322-000000a9", "record-enable,399,IN") in new stack
-- Executing [[email protected]:1] GotoIf("SIP/322-000000a9", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [[email protected]:4] ExecIf("SIP/322-000000a9", "0?MacroExit()") in new stack
-- Executing [[email protected]:5] GotoIf("SIP/322-000000a9", "0?Group:OUT") in new stack
-- Goto (macro-record-enable,s,14)
-- Executing [[email protected]:14] GotoIf("SIP/322-000000a9", "1?IN") in new stack
-- Goto (macro-record-enable,s,18)
-- Executing [[email protected]:18] ExecIf("SIP/322-000000a9", "1?MacroExit()") in new stack
-- Executing [[email protected]:7] GotoIf("SIP/322-000000a9", "1?macrodial") in new stack
-- Goto (macro-exten-vm,s,13)
-- Executing [[email protected]:13] GosubIf("SIP/322-000000a9", "0?clrheader,1") in new stack
-- Executing [[email protected]:14] Macro("SIP/322-000000a9", "dial-one,"",trWw,399") in new stack
-- Executing [[email protected]:1] Set("SIP/322-000000a9", "DEXTEN=399") in new stack
-- Executing [[email protected]:2] Set("SIP/322-000000a9", "DIALSTATUS_CW=") in new stack
-- Executing [[email protected]:3] GosubIf("SIP/322-000000a9", "0?screen,1") in new stack
-- Executing [[email protected]:4] GosubIf("SIP/322-000000a9", "0?cf,1") in new stack
-- Executing [[email protected]:5] GotoIf("SIP/322-000000a9", "1?skip1") in new stack
-- Goto (macro-dial-one,s,8)
-- Executing [[email protected]:8] GotoIf("SIP/322-000000a9", "0?nodial") in new stack
-- Executing [[email protected]:9] GotoIf("SIP/322-000000a9", "0?continue") in new stack
-- Executing [[email protected]:10] Set("SIP/322-000000a9", "EXTHASCW=ENABLED") in new stack
-- Executing [[email protected]:11] GotoIf("SIP/322-000000a9", "0?next1:cwinusebusy") in new stack
-- Goto (macro-dial-one,s,23)
-- Executing [[email protected]:23] GotoIf("SIP/322-000000a9", "1?next3:continue") in new stack
-- Goto (macro-dial-one,s,24)
-- Executing [[email protected]:24] ExecIf("SIP/322-000000a9", "0?Set(DIALSTATUS_CW=BUSY)") in new stack
-- Executing [[email protected]:25] GotoIf("SIP/322-000000a9", "0?nodial") in new stack
-- Executing [[email protected]:26] GosubIf("SIP/322-000000a9", "1?dstring,1:dlocal,1") in new stack
-- Executing [[email protected]:1] Set("SIP/322-000000a9", "DSTRING=") in new stack
-- Executing [[email protected]:2] Set("SIP/322-000000a9", "DEVICES=399") in new stack
-- Executing [[email protected]:3] ExecIf("SIP/322-000000a9", "0?Return()") in new stack
-- Executing [[email protected]:4] ExecIf("SIP/322-000000a9", "0?Set(DEVICES=99)") in new stack
-- Executing [[email protected]:5] Set("SIP/322-000000a9", "LOOPCNT=1") in new stack
-- Executing [[email protected]:6] Set("SIP/322-000000a9", "ITER=1") in new stack
-- Executing [[email protected]:7] Set("SIP/322-000000a9", "THISDIAL=DAHDI/g1") in new stack
-- Executing [[email protected]:8] GosubIf("SIP/322-000000a9", "1?zap2dahdi,1") in new stack
-- Executing [[email protected]:1] ExecIf("SIP/322-000000a9", "0?Return()") in new stack
-- Executing [[email protected]:2] Set("SIP/322-000000a9", "NEWDIAL=") in new stack
-- Executing [[email protected]:3] Set("SIP/322-000000a9", "LOOPCNT2=1") in new stack
-- Executing [[email protected]:4] Set("SIP/322-000000a9", "ITER2=1") in new stack
-- Executing [[email protected]:5] Set("SIP/322-000000a9", "THISPART2=DAHDI/g1") in new stack
-- Executing [[email protected]:6] ExecIf("SIP/322-000000a9", "0?Set(THISPART2=DAHDIDI/g1)") in new stack
-- Executing [[email protected]:7] Set("SIP/322-000000a9", "NEWDIAL=DAHDI/g1&") in new stack
-- Executing [[email protected]:8] Set("SIP/322-000000a9", "ITER2=2") in new stack
-- Executing [[email protected]:9] GotoIf("SIP/322-000000a9", "0?begin2") in new stack
-- Executing [[email protected]:10] Set("SIP/322-000000a9", "THISDIAL=DAHDI/g1") in new stack
-- Executing [[email protected]:11] Return("SIP/322-000000a9", "") in new stack
-- Executing [[email protected]:9] Set("SIP/322-000000a9", "DSTRING=DAHDI/g1&") in new stack
-- Executing [[email protected]:10] Set("SIP/322-000000a9", "ITER=2") in new stack
-- Executing [[email protected]:11] GotoIf("SIP/322-000000a9", "0?begin") in new stack
-- Executing [[email protected]:12] Set("SIP/322-000000a9", "DSTRING=DAHDI/g1") in new stack
-- Executing [[email protected]:13] Return("SIP/322-000000a9", "") in new stack
-- Executing [[email protected]:27] GotoIf("SIP/322-000000a9", "0?nodial") in new stack
-- Executing [[email protected]:28] GotoIf("SIP/322-000000a9", "1?skiptrace") in new stack
-- Goto (macro-dial-one,s,30)
-- Executing [[email protected]:30] Set("SIP/322-000000a9", "D_OPTIONS=trWw") in new stack
-- Executing [[email protected]:31] ExecIf("SIP/322-000000a9", "0?SIPAddHeader(Alert-Info: )") in new stack
-- Executing [[email protected]:32] ExecIf("SIP/322-000000a9", "0?SIPAddHeader()") in new stack
-- Executing [[email protected]:33] ExecIf("SIP/322-000000a9", "0?Set(CHANNEL(musicclass)=)") in new stack
-- Executing [[email protected]:34] GosubIf("SIP/322-000000a9", "0?qwait,1") in new stack
-- Executing [[email protected]:35] Set("SIP/322-000000a9", "__CWIGNORE=") in new stack
-- Executing [[email protected]:36] Set("SIP/322-000000a9", "__KEEPCID=TRUE") in new stack
-- Executing [[email protected]:37] GotoIf("SIP/322-000000a9", "0?usegoto,1") in new stack
-- Executing [[email protected]:38] GotoIf("SIP/322-000000a9", "0?godial") in new stack
-- Executing [[email protected]:39] Set("SIP/322-000000a9", "CONNECTEDLINE(name,i)=FaxMachine") in new stack
-- Executing [[email protected]:40] Set("SIP/322-000000a9", "CONNECTEDLINE(num)=399") in new stack
-- Executing [[email protected]:41] Set("SIP/322-000000a9", "D_OPTIONS=trWwI") in new stack
-- Executing [[email protected]: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 [[email protected]:43] ExecIf("SIP/322-000000a9", "0?Set(DIALSTATUS=)") in new stack
-- Executing [[email protected]:44] GosubIf("SIP/322-000000a9", "0?s-CONGESTION,1") in new stack
-- Executing [[email protected]:45] MacroExit("SIP/322-000000a9", "") in new stack
-- Executing [[email protected]:15] GotoIf("SIP/322-000000a9", "0?exit") in new stack
-- Executing [[email protected]:16] Set("SIP/322-000000a9", "SV_DIALSTATUS=CONGESTION") in new stack
-- Executing [[email protected]:17] GosubIf("SIP/322-000000a9", "0?docfu,1") in new stack
-- Executing [[email protected]:18] GosubIf("SIP/322-000000a9", "0?docfb,1") in new stack
-- Executing [[email protected]:19] Set("SIP/322-000000a9", "DIALSTATUS=CONGESTION") in new stack
-- Executing [[email protected]:20] ExecIf("SIP/322-000000a9", "0?MacroExit()") in new stack
-- Executing [[email protected]:21] GotoIf("SIP/322-000000a9", "1?s-CONGESTION,1") in new stack
-- Goto (macro-exten-vm,s-CONGESTION,1)
-- Executing [[email protected]:1] GotoIf("SIP/322-000000a9", "0?exit,1") in new stack
-- Executing [[email protected]:2] PlayTones("SIP/322-000000a9", "congestion") in new stack
-- Executing [[email protected]: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 [[email protected]: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?