Hello,
This is my first post on this forum.
To start I would like to say that I have done a ton of googling and am so lost now that I need to ask for help.
So far this is what i have done:
- Installed: DAHDI
- Ran: sudo /etc/init.d/dahdi start
- Ran: sudo dahdi_genconf
- Edited: /etc/dahdi/system.conf and added my country info.
- Added include /etc/asterisk/dahdi-channels.conf to /etc/asterisk/chan_dahdi.conf
- Ran: sudo /etc/init.d/dahdi restart
- Ran: sudo dahdi_tool
- Ran: sudo ln -s /etc/asterisk/dahdi-channels.conf /etc/asterisk/zapata.conf
Dahdi_tool shows both of my AEX800 cards.
I have one with dual FXO and the other Half and Half.
/etc/asterisk/dahdi-channels.conf shows all 12 of my fxo channels and all 4 of my fxs channels.
I’m not sure if the symbolic link to zapata.conf is needed. I added that in desperation because FreePBX said that it is referencing zapata.conf.
I found a walk through here: http://wiki.contribs.org/FreePBX/DAHDI
Nothing seems to be working.
I have a SipStation sip trunk and I can make calls all day long on that.
I have added the zap trunk.
I tried with just using channel 1 and with g0.
I tried with all different types of dial rules.
I created an outbound route with a dial pattern of 9|.
Trunk 0 is set to ZAP/1 or ZAP/g0 depending on weather I have the channel set to 1 or g0.
I can’t get this system to make a call on an analog line.
I’m going to spam the rest of this with config files and output from asterisk CLI.
Please help,
Cody
Here is my /etc/dahdi/system.conf
Span 1: WCTDM/0 “Wildcard AEX800 Board 1” (MASTER)
fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
fxsks=3
echocanceller=mg2,3
fxsks=4
echocanceller=mg2,4
fxsks=5
echocanceller=mg2,5
fxsks=6
echocanceller=mg2,6
fxsks=7
echocanceller=mg2,7
fxsks=8
echocanceller=mg2,8
Span 2: WCTDM/1 “Wildcard AEX800 Board 2”
fxsks=9
echocanceller=mg2,9
fxsks=10
echocanceller=mg2,10
fxsks=11
echocanceller=mg2,11
fxsks=12
echocanceller=mg2,12
fxoks=13
echocanceller=mg2,13
fxoks=14
echocanceller=mg2,14
fxoks=15
echocanceller=mg2,15
fxoks=16
echocanceller=mg2,16
Global data
loadzone = us
defaultzone = us
Here is the first entry in /etc/asterisk/dahdi-channels.conf
; Span 1: WCTDM/0 “Wildcard AEX800 Board 1” (MASTER)
;;; line="1 WCTDM/0/0 FXSKS (SWEC: MG2)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default
This is the output from asterisk -vvvvvr
– <SIP/350-00000016>AGI Script fixlocalprefix completed, returning 0
– Executing [s@macro-dialout-trunk:13] Set(“SIP/350-00000016”, “OUTNUM=15553217654”) in new stack
– Executing [s@macro-dialout-trunk:14] Set(“SIP/350-00000016”, “custom=ZAP/g0”) in new stack
– Executing [s@macro-dialout-trunk:15] ExecIf(“SIP/350-00000016”, “0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^))”) in new stack
– Executing [s@macro-dialout-trunk:16] Macro(“SIP/350-00000016”, “dialout-trunk-predial-hook,”) in new stack
– Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit(“SIP/350-00000016”, “”) in new stack
– Executing [s@macro-dialout-trunk:17] GotoIf(“SIP/350-00000016”, “0?bypass,1”) in new stack
– Executing [s@macro-dialout-trunk:18] GotoIf(“SIP/350-00000016”, “0?customtrunk”) in new stack
– Executing [s@macro-dialout-trunk:19] Dial(“SIP/350-00000016”, “ZAP/g0/15553217654,300,”) in new stack
== Everyone is busy/congested at this time (1:0/0/1)
– Executing [s@macro-dialout-trunk:20] NoOp(“SIP/350-00000016”, “Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 66”) in new stack
– Executing [s@macro-dialout-trunk:21] Goto(“SIP/350-00000016”, “s-CHANUNAVAIL,1”) in new stack
– Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set(“SIP/350-00000016”, “RC=66”) in new stack
– Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto(“SIP/350-00000016”, “66,1”) in new stack
– Goto (macro-dialout-trunk,66,1)
– Executing [66@macro-dialout-trunk:1] Goto(“SIP/350-00000016”, “continue,1”) in new stack
– Goto (macro-dialout-trunk,continue,1)
– Executing [continue@macro-dialout-trunk:1] GotoIf(“SIP/350-00000016”, “1?noreport”) in new stack
– Goto (macro-dialout-trunk,continue,3)
– Executing [continue@macro-dialout-trunk:3] NoOp(“SIP/350-00000016”, “TRUNK Dial failed due to CHANUNAVAIL HANGUPCAUSE: 66 - failing through to other trunks”) in new stack
– Executing [continue@macro-dialout-trunk:4] Set(“SIP/350-00000016”, “CALLERID(number)=350”) in new stack
– Executing [915553217654@from-internal:5] Macro(“SIP/350-00000016”, “outisbusy,”) in new stack
– Executing [s@macro-outisbusy:1] Progress(“SIP/350-00000016”, “”) in new stack
– Executing [s@macro-outisbusy:2] Playback(“SIP/350-00000016”, “all-circuits-busy-now,noanswer”) in new stack
– <SIP/350-00000016> Playing ‘all-circuits-busy-now.gsm’ (language ‘en’)
– Executing [s@macro-outisbusy:3] Playback(“SIP/350-00000016”, “pls-try-call-later,noanswer”) in new stack
– <SIP/350-00000016> Playing ‘pls-try-call-later.gsm’ (language ‘en’)