Hi,
I’ve got a Digium TDM400P with 1x FXO running on FreeBSD 8.1 with Asterisk 1.4.29 (I also tried in 1.6.0.21 and got the same thing) and I’m having trouble dialing out with the dahdi-freebsd-complete-2.3.0-rc2+2.3.0 drivers. Here are my configs:
“/usr/local/etc/dahdi/system.conf” 4L, 55C
[quote]fxsls=1
loadzone=au
defaultzone=au
echocanceller=mg2,1
[/quote]
“/usr/local/etc/asterisk/chan_dahdi.conf” 16L, 244C
[quote][channels]
context=default
usecallerid=yes
hidecallerid=no
immediate=no
signalling=fxs_ls
callerid=pstn
group=1
channel=>1
echocancel=128
echocancelwhenbridged=yes
echotraining=800
callgroup=1
pickupgroup=1
rxgain=9.0
txgain=-6.0
[/quote]
“/usr/local/etc/asterisk/extensions.conf” [readonly] 614L, 22781C
[quote][outgoing]
exten => 600,1,Playback(demo-echotest) ; Let them know what’s going on
exten => 600,n,Echo ; Do the echo test
exten => 600,n,Playback(demo-echodone) ; Let them know it’s over
exten => 600,n,Goto(s,6) ; Start over
exten => _0X.,1,DIAL(dahdi/1/${EXTEN},60,otr)
exten => _0X.,2,Congestion[/quote]
It’s also being detected fine by the kernel, output of dmesg:
[quote]Telephony Interface Registered on major 196
Version: 2.3.0-rc2
wctdm0: vendor=e159 device=1 subvendor=b100
wctdm0: <Wildcard TDM400P REV E/F> port 0xde00-0xdeff mem 0xfdbff000-0xfdbfffff irq 20 at device 0.0 on pci3
wctdm0: [FILTER]
Freshmaker version: 71
Freshmaker passed register test
Module 0: Installed – AUTO FXO (AUSTRALIA mode)
Module 1: Not installed
Module 2: Not installed
Module 3: Not installed
Found a Wildcard TDM: Wildcard TDM400P REV E/F (1 modules)
Registered echo canceler 'MG2’
Registered tone zone 1 (Australia)[/quote]
Incoming calls work just fine, when I try to make an outgoing call though I just get a long congested “beeep, beeep” tone. Followed by this on the asterisk console:
[quote] – Saved useragent “Ekiga/3.2.6” for peer 1000
– Executing [phoneNumber@outgoing:1] Dial(“SIP/1000-00000000”, “dahdi/1/phoneNumber|60|otr”) in new stack
– Called 1/phoneNumber
– Hungup ‘DAHDI/1-1’
== Spawn extension (outgoing, phoneNumber, 1) exited non-zero on ‘SIP/1000-00000000’
[/quote]
NOTE: I’ve censored the phone number.
I’ve plugged another phoneline in and a cordless phone to that to listen to the signal and I can certainly hear asterisk hanging up and taking the phone off the hook.
I tried the zaptel-1.4.11.3 drivers however found that fxotune was broken (probes all modules /dev/zap/1-254 as opposed to the one with the FXO module and then eventually kernel panics) and while I could make outgoing calls with this and recieve I couldn’t tune my modules, dahdi seems to fix this problem making pstn calls that I receive much clearer, however it’s kind of useless not being able to make any calls.
Also I’ve tried echo "hint.wctdm.0.opermode="AUSTRALIA"" >> /boot/device.hints
this does nothing I had to modify some source code:
diff -ur work/dahdi-freebsd-complete-2.3.0-rc2+2.3.0/freebsd/drivers/dahdi/wctdm.c work.1/dahdi-freebsd-complete-2.3.0-rc2+2.3.0/freebsd/drivers/dahdi/wctdm.c
--- work/dahdi-freebsd-complete-2.3.0-rc2+2.3.0/freebsd/drivers/dahdi/wctdm.c 2010-06-01 18:32:14.000000000 +0930
+++ work.1/dahdi-freebsd-complete-2.3.0-rc2+2.3.0/freebsd/drivers/dahdi/wctdm.c 2010-08-13 18:10:42.000000000 +0930
@@ -338,7 +338,7 @@
static int boostringer = 0;
static int fastringer = 0;
static int _opermode = 0;
-static char *opermode = "FCC";
+static char *opermode = "AUSTRALIA";
static int fxshonormode = 0;
static int alawoverride = 0;
static int fastpickup = 0;