Hello. I was wondering if anyone could shed some light on my situation. I have FreePBX 2.5.1 and Asterisk 1.6.0.6 installed and sort of working. All internal stuff works good, but I cannot get incoming or ougoing calls to and from my T1 working. I have a Wildcard TE210P dual-span T1/E1/J1 card 3.3V T1 card installed. Here’s the return of dahdi_cfg -vv
DAHDI Tools Version - 2.1.0.2
DAHDI Version: 2.1.0.2
Echo Canceller(s): MG2
Configuration
SPAN 1: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)
SPAN 2: ESF/B8ZS Build-out: 0 db (CSU)/0-133 feet (DSX-1)
Channel map:
Channel 01: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 01)
Channel 02: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 02)
Channel 03: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 03)
Channel 04: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 04)
Channel 05: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 05)
Channel 06: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 06)
Channel 07: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 07)
Channel 08: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 08)
Channel 09: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 09)
Channel 10: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 10)
Channel 11: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 11)
Channel 12: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 12)
Channel 13: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 13)
Channel 14: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 14)
Channel 15: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 15)
Channel 16: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 16)
Channel 17: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 17)
Channel 18: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 18)
Channel 19: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 19)
Channel 20: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 20)
Channel 21: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 21)
Channel 22: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 22)
Channel 23: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 23)
Channel 24: D-channel (Default) (Slaves: 24)
Channel 25: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 25)
Channel 26: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 26)
Channel 27: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 27)
Channel 28: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 28)
Channel 29: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 29)
Channel 30: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 30)
Channel 31: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 31)
Channel 32: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 32)
Channel 33: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 33)
Channel 34: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 34)
Channel 35: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 35)
Channel 36: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 36)
Channel 37: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 37)
Channel 38: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 38)
Channel 39: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 39)
Channel 40: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 40)
Channel 41: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 41)
Channel 42: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 42)
Channel 43: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 43)
Channel 44: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 44)
Channel 45: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 45)
Channel 46: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 46)
Channel 47: Clear channel (Default) (Echo Canceler: mg2) (Slaves: 47)
Channel 48: D-channel (Default) (Slaves: 48)
48 channels to configure.
Setting echocan for channel 1 to mg2
Setting echocan for channel 2 to mg2
Setting echocan for channel 3 to mg2
Setting echocan for channel 4 to mg2
Setting echocan for channel 5 to mg2
Setting echocan for channel 6 to mg2
Setting echocan for channel 7 to mg2
Setting echocan for channel 8 to mg2
Setting echocan for channel 9 to mg2
Setting echocan for channel 10 to mg2
Setting echocan for channel 11 to mg2
Setting echocan for channel 12 to mg2
Setting echocan for channel 13 to mg2
Setting echocan for channel 14 to mg2
Setting echocan for channel 15 to mg2
Setting echocan for channel 16 to mg2
Setting echocan for channel 17 to mg2
Setting echocan for channel 18 to mg2
Setting echocan for channel 19 to mg2
Setting echocan for channel 20 to mg2
Setting echocan for channel 21 to mg2
Setting echocan for channel 22 to mg2
Setting echocan for channel 23 to mg2
Setting echocan for channel 25 to mg2
Setting echocan for channel 26 to mg2
Setting echocan for channel 27 to mg2
Setting echocan for channel 28 to mg2
Setting echocan for channel 29 to mg2
Setting echocan for channel 30 to mg2
Setting echocan for channel 31 to mg2
Setting echocan for channel 32 to mg2
Setting echocan for channel 33 to mg2
Setting echocan for channel 34 to mg2
Setting echocan for channel 35 to mg2
Setting echocan for channel 36 to mg2
Setting echocan for channel 37 to mg2
Setting echocan for channel 38 to mg2
Setting echocan for channel 39 to mg2
Setting echocan for channel 40 to mg2
Setting echocan for channel 41 to mg2
Setting echocan for channel 42 to mg2
Setting echocan for channel 43 to mg2
Setting echocan for channel 44 to mg2
Setting echocan for channel 45 to mg2
Setting echocan for channel 46 to mg2
Setting echocan for channel 47 to mg2
I have dahdi-channels.conf include in chan_dahdi.conf
here’s my chan_dahdi.conf
; Span 1: TE2/0/1 “T2XXP (PCI) Card 0 Span 1” (MASTER) B8ZS/ESF RED
group=0
context=from-pstn
switchtype = national
signalling = pri_cpe
channel => 1-23
context = default
group = 63
; Span 2: TE2/0/2 “T2XXP (PCI) Card 0 Span 2”
;group=0,12
;context=from-pstn
;switchtype = national
;signalling = pri_cpe
;channel => 25-47
;context = default
;group = 63
I get a busy when I try to dial in. At first I was getting “All circuits busy” trying to dial out, then it occured to me that ZAP/g0 doesn’t exist in 1.6 so I guessed and created a “Custom Trunk” under the trunks page like so:
Custom Dial String: DAHDI/g0/$OUTNUM$
This is pointed to
outbound route: 9_outside
With dialing rules:
9|1NXXNXXXXXX
9|NXXNXXXXXX
9|NXXXXXX
After I changed it from ZAP/g0 to DAHDI/g0/$OUTNUM$ I no longer get the “All circuits busy” now I just get dead air for a while and the it hangs up on me. Below is a call from the CLI…any help much appreciated I’m pretty much stuck at this point.
– Executing [97482771@virden-internal:1] Macro(“SIP/4825-b6f3eee0”, “user-callerid,SKIPTTL,”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/4825-b6f3eee0”, “AMPUSER=4825”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/4825-b6f3eee0”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/4825-b6f3eee0”, “1?Set(REALCALLERIDNUM=4825)”) in new stac k
– Executing [s@macro-user-callerid:4] Set(“SIP/4825-b6f3eee0”, “AMPUSER=4825”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/4825-b6f3eee0”, “AMPUSERCIDNAME=Matt Beaty”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/4825-b6f3eee0”, “0?report”) in new stack
– Executing [s@macro-user-callerid:7] Set(“SIP/4825-b6f3eee0”, “AMPUSERCID=4825”) in new stack
– Executing [s@macro-user-callerid:8] Set(“SIP/4825-b6f3eee0”, “CALLERID(all)=“Matt Beaty” <4825>”) in new s tack
– Executing [s@macro-user-callerid:9] Set(“SIP/4825-b6f3eee0”, “REALCALLERIDNUM=4825”) in new stack
– Executing [s@macro-user-callerid:10] ExecIf(“SIP/4825-b6f3eee0”, “0?Set(CHANNEL(language)=)”) in new stack
– Executing [s@macro-user-callerid:11] GotoIf(“SIP/4825-b6f3eee0”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,20)
– Executing [s@macro-user-callerid:20] NoOp(“SIP/4825-b6f3eee0”, “Using CallerID “Matt Beaty” <4825>”) in ne w stack
– Executing [97482771@virden-internal:2] Set(“SIP/4825-b6f3eee0”, “_NODEST=”) in new stack
– Executing [97482771@virden-internal:3] Macro(“SIP/4825-b6f3eee0”, “record-enable,4825,OUT,”) in new stack
– Executing [s@macro-record-enable:1] GotoIf(“SIP/4825-b6f3eee0”, “1?check”) in new stack
– Goto (macro-record-enable,s,4)
– Executing [s@macro-record-enable:4] AGI(“SIP/4825-b6f3eee0”, “recordingcheck,20090415-023113,1239780673.16 7”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck,20090415-023113,1239780673.167: Outbound recording not enabled
– <SIP/4825-b6f3eee0>AGI Script recordingcheck completed, returning 0
– Executing [s@macro-record-enable:5] MacroExit(“SIP/4825-b6f3eee0”, “”) in new stack
– Executing [97482771@virden-internal:4] Macro(“SIP/4825-b6f3eee0”, “dialout-trunk,3,7482771,”) in new stac k
– Executing [s@macro-dialout-trunk:1] Set(“SIP/4825-b6f3eee0”, “DIAL_TRUNK=3”) in new stack
– Executing [s@macro-dialout-trunk:2] GosubIf(“SIP/4825-b6f3eee0”, “0?sub-pincheck,s,1”) in new stack
– Executing [s@macro-dialout-trunk:3] GotoIf(“SIP/4825-b6f3eee0”, “0?disabletrunk,1”) in new stack
– Executing [s@macro-dialout-trunk:4] Set(“SIP/4825-b6f3eee0”, “DIAL_NUMBER=7482771”) in new stack
– Executing [s@macro-dialout-trunk:5] Set(“SIP/4825-b6f3eee0”, “DIAL_TRUNK_OPTIONS=tr”) in new stack
– Executing [s@macro-dialout-trunk:6] Set(“SIP/4825-b6f3eee0”, “OUTBOUND_GROUP=OUT_3”) in new stack
– Executing [s@macro-dialout-trunk:7] GotoIf(“SIP/4825-b6f3eee0”, “1?nomax”) in new stack
– Goto (macro-dialout-trunk,s,9)
– Executing [s@macro-dialout-trunk:9] GotoIf(“SIP/4825-b6f3eee0”, “0?skipoutcid”) in new stack
– Executing [s@macro-dialout-trunk:10] Set(“SIP/4825-b6f3eee0”, “DIAL_TRUNK_OPTIONS=”) in new stack
– Executing [s@macro-dialout-trunk:11] Macro(“SIP/4825-b6f3eee0”, “outbound-callerid,3”) in new stack
– Executing [s@macro-outbound-callerid:1] ExecIf(“SIP/4825-b6f3eee0”, “0?Set(CALLERPRES()=)”) in new stack
– Executing [s@macro-outbound-callerid:2] ExecIf(“SIP/4825-b6f3eee0”, “0?Set(REALCALLERIDNUM=4825)”) in new stack
– Executing [s@macro-outbound-callerid:3] GotoIf(“SIP/4825-b6f3eee0”, “1?normcid”) in new stack
– Goto (macro-outbound-callerid,s,6)
– Executing [s@macro-outbound-callerid:6] Set(“SIP/4825-b6f3eee0”, “USEROUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:7] Set(“SIP/4825-b6f3eee0”, “EMERGENCYCID=”) in new stack
– Executing [s@macro-outbound-callerid:8] Set(“SIP/4825-b6f3eee0”, “TRUNKOUTCID=”) in new stack
– Executing [s@macro-outbound-callerid:9] GotoIf(“SIP/4825-b6f3eee0”, “1?trunkcid”) in new stack
– Goto (macro-outbound-callerid,s,12)
– Executing [s@macro-outbound-callerid:12] ExecIf(“SIP/4825-b6f3eee0”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:13] ExecIf(“SIP/4825-b6f3eee0”, “0?Set(CALLERID(all)=)”) in new stack
– Executing [s@macro-outbound-callerid:14] ExecIf(“SIP/4825-b6f3eee0”, “0?Set(CALLERPRES()=prohib_passed_scr een)”) in new stack
– Executing [s@macro-dialout-trunk:12] ExecIf(“SIP/4825-b6f3eee0”, “1?AGI(fixlocalprefix)”) in new stack
– Launched AGI Script /var/lib/asterisk/agi-bin/fixlocalprefix
> fixlocalprefix: Using pattern .
== fixlocalprefix: Dialpattern . matched. 7482771 -> 7482771
– <SIP/4825-b6f3eee0>AGI Script fixlocalprefix completed, returning 0
– Executing [s@macro-dialout-trunk:13] Set(“SIP/4825-b6f3eee0”, “OUTNUM=7482771”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/4825-b6f3eee0”, “custom=AMP”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/4825-b6f3eee0”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))”) in new stack
– Executing [s@macro-dialout-trunk:16] Macro(“SIP/4825-b6f3eee0”, “dialout-trunk-predial-hook,”) in new stac k
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/4825-b6f3eee0”, “”) in new stack
– Executing [s@macro-dialout-trunk:17] GotoIf(“SIP/4825-b6f3eee0”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/4825-b6f3eee0”, “1?customtrunk”) in new stack
– Goto (macro-dialout-trunk,s,21)
– Executing [s@macro-dialout-trunk:21] Set(“SIP/4825-b6f3eee0”, “pre_num=AMP:DAHDI/g0/”) in new stack
– Executing [s@macro-dialout-trunk:22] Set(“SIP/4825-b6f3eee0”, “the_num=OUTNUM”) in new stack
– Executing [s@macro-dialout-trunk:23] Set(“SIP/4825-b6f3eee0”, “post_num=”) in new stack
– Executing [s@macro-dialout-trunk:24] GotoIf(“SIP/4825-b6f3eee0”, “1?outnum:skipoutnum”) in new stack
– Goto (macro-dialout-trunk,s,25)
– Executing [s@macro-dialout-trunk:25] Set(“SIP/4825-b6f3eee0”, “the_num=7482771”) in new stack
– Executing [s@macro-dialout-trunk:26] Dial(“SIP/4825-b6f3eee0”, “DAHDI/g0/7482771,300,”) in new stack
– Called g0/7482771
– Registered SIP ‘4885’ at 10.101.202.137 port 5060
– Hungup ‘DAHDI/1-1’
Thanks in Advance…