Hello All-
Im new to asterisk and all this telecom stuff in general. So bear with me. I have setup astiersk with a sangoma T1 card. using dahdi/wanrouter and all that good stuff.
I have configured asterisk to the point of receiving an inbound phone call… but I have no idea how to configure this thing for an outbound call? I think I am missing something… but I do not know what.
Here are some config files… I am using that may help you guys help me?
/etc/dahdi/system.conf
loadzone=us
defaultzone=us
#Sangoma A104 port 1 [slot:4 bus:6 span:1] <wanpipe1>
span=1,1,0,esf,b8zs
bchan=1-23
echocanceller=mg2,1-23
hardhdlc=24
#Sangoma A104 port 2 [slot:4 bus:6 span:2] <wanpipe2>
span=2,2,0,esf,b8zs
bchan=25-47
echocanceller=mg2,25-47
hardhdlc=48
#Sangoma A104 port 3 [slot:4 bus:6 span:3] <wanpipe3>
span=3,3,0,esf,b8zs
bchan=49-71
echocanceller=mg2,49-71
hardhdlc=72
#Sangoma A104 port 4 [slot:4 bus:6 span:4] <wanpipe4>
span=4,4,0,esf,b8zs
bchan=73-95
echocanceller=mg2,73-95
hardhdlc=96
/etc/asterisk/chan_dahdi.conf
[trunkgroups]
[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
;Sangoma A104 port 1 [slot:4 bus:5 span:1] <wanpipe1>
switchtype=5ess
context=incoming
group=0
echocancel=yes
signalling=pri_cpe
channel =>1-23
;Sangoma A104 port 2 [slot:4 bus:5 span:2] <wanpipe2>
switchtype=5ess
context=incoming
group=0
echocancel=yes
signalling=pri_cpe
channel =>25-47
;Sangoma A104 port 3 [slot:4 bus:5 span:3] <wanpipe3>
switchtype=5ess
context=incoming
group=0
echocancel=yes
signalling=pri_cpe
channel =>49-71
;Sangoma A104 port 4 [slot:4 bus:5 span:4] <wanpipe4>
switchtype=5ess
context=incoming
group=0
echocancel=yes
signalling=pri_cpe
channel =>73-95
and here is a log snippet of a non working outbound call…
[Oct 2 17:00:19] DEBUG[19318] pbx_spool.c: Outgoing DAHDI/i1/8,XXXXXXXXX1: StartRetry
[Oct 2 17:00:19] WARNING[19318] pbx_spool.c: Unable to set utime on /var/spool/asterisk/outgoing/XXXXXXXXX2.call: Operation not permitted
[Oct 2 17:00:19] DEBUG[20487] chan_dahdi.c: Using channel 2
[Oct 2 17:00:19] DEBUG[20487] sig_pri.c: sig_pri_request 2
[Oct 2 17:00:19] DEBUG[19303] devicestate.c: Changing state for DAHDI/i1/8,XXXXXXXXX1 - state 2 (In use)
[Oct 2 17:00:19] DEBUG[20487] sig_pri.c: CALLER NAME: Interop NUM: XXXXXXXXX2
[Oct 2 17:00:19] DEBUG[19303] devicestate.c: device 'DAHDI/i1/8,XXXXXXXXX1' state '2'
[Oct 2 17:00:19] DEBUG[19303] devicestate.c: Changing state for DAHDI/i1/8,XXXXXXXXX1 - state 2 (In use)
[Oct 2 17:00:19] DEBUG[19303] devicestate.c: device 'DAHDI/i1/8,XXXXXXXXX1' state '2'
[Oct 2 17:00:19] DEBUG[19311] sig_pri.c: Queuing frame from PRI_EVENT_PROCEEDING on channel 0/2 span 1
[Oct 2 17:00:23] DEBUG[20472] channel.c: Hanging up channel 'DAHDI/i1/8,XXXXXXXXX1-a'
[Oct 2 17:00:23] DEBUG[20472] chan_dahdi.c: dahdi_hangup(DAHDI/i1/8,XXXXXXXXX1-a)
[Oct 2 17:00:23] DEBUG[20472] chan_dahdi.c: Set option AUDIO MODE, value: ON(1) on DAHDI/i1/8,XXXXXXXXX1-a
[Oct 2 17:00:23] DEBUG[20472] sig_pri.c: sig_pri_hangup 1
[Oct 2 17:00:23] DEBUG[20472] sig_pri.c: Not yet hungup... Calling hangup with cause 19, and clearing call
[Oct 2 17:00:23] DEBUG[20472] chan_dahdi.c: Disabled echo cancellation on channel 1
[Oct 2 17:00:23] DEBUG[20472] chan_dahdi.c: Set option TDD MODE, value: OFF(0) on DAHDI/i1/8,XXXXXXXXX1-a
[Oct 2 17:00:23] DEBUG[20472] chan_dahdi.c: Updated conferencing on 1, with 0 conference users
[Oct 2 17:00:23] DEBUG[20472] chan_dahdi.c: Set option AUDIO MODE, value: OFF(0) on DAHDI/i1/8,XXXXXXXXX1-a
[Oct 2 17:00:23] NOTICE[20472] pbx_spool.c: Call failed to go through, reason (1) Hangup
[Oct 2 17:00:23] NOTICE[20472] pbx_spool.c: Queued call to DAHDI/i1/8,XXXXXXXXX1 expired without completion after 0 attempts
[Oct 2 17:00:23] DEBUG[19303] devicestate.c: Changing state for DAHDI/i1/8,XXXXXXXXX1 - state 2 (In use)
[Oct 2 17:00:23] DEBUG[19303] devicestate.c: device 'DAHDI/i1/8,XXXXXXXXX1' state '2'
[Oct 2 17:00:24] DEBUG[19311] chan_dahdi.c: Enabled echo cancellation on channel 2
[Oct 2 17:00:24] DEBUG[19303] devicestate.c: Changing state for DAHDI/i1/8,XXXXXXXXX1 - state 6 (Ringing)
[Oct 2 17:00:24] DEBUG[19303] devicestate.c: device 'DAHDI/i1/8,XXXXXXXXX1' state '6'
Even though the state shows ringing, the number in question never recives a call. I have tried with and without the “8,” for an outside line… and even internal extensions but nothing seems to work
Any ideas?