My configuration:
Gentoo Linux 2.6.15-r1
Asterisk 1.2.6 from source
Zaptel 1.2.5 from source
6 analog lines -> TDM2402E -> Asterisk
/etc/zaptel.conf
loadzone=us
defaultzone=us
fxsks=17-24
/etc/asterisk/zapata.conf
[trunkgroups]
; define any trunk groups
[channels]
; hardware channels
; default
;echocancel=no
;busydetect=yes
;busycount=3
;busypattern=500,500
rxgain=5.0
; define channels
context=incoming
signalling=fxs_ks
group = 1
channel => 17-22
/etc/asterisk/extensions.conf
[default]
[incoming]
exten => s,1,Answer()
exten => s,2,Hangup()
[internal]
exten => _NXXXXXX,1,Dial(Zap/22/ww${EXTEN},10)
exten => h,1,NoOP(Call result was ${DIALSTATUS})
Now, if I make a call from my softphone to 540-2179 (one of my own, unused, will never pickup, just ring), I get this at the CLI:
-- Executing Dial("SIP/ryan.mcdonnell-88e1", "Zap/22/ww5402179|10") in new stack
-- Called 22/ww5402179
-- Zap/22-1 answered SIP/ryan.mcdonnell-88e1
The bizarre part is the last line. That line appears before I even hear the first ring. The line continues to ring and ring and ring and does not timeout according the 10 seconds I passed to the Dial() application. Once I hangup via the softphone, this appears on the CLI:
-- Hungup 'Zap/22-1'
== Spawn extension (internal, 5402179, 1) exited non-zero on 'SIP/ryan.mcdonnell-88e1'
-- Executing NoOp("SIP/ryan.mcdonnell-88e1", "Call result was ANSWER") in new stack
I thought this might be caused by the hardware echo cancellation module on my TDM2400P. I removed it and still had the same results.
Can anyone shed some light on this issue?