I’m using Asterisk @ Home 2.8 with a Digium TDM11B in the UK. The fxo card is in port 4, the fxs card is in port 1. I have the phone-line connected to port 4 and the phone unit to port 1.
My /etc/zaptel.conf is:
fxoks=1
fxsks=4
loadzone=uk
loadzone=uk
My /etc/asterisk/zapata.conf includes:
echocancel=yes
echocancelwhenbridged=yes
echotraining=400
callerid=
signalling=fxo_ks
group=1
context=default
channel => 1
signalling=fxs_ks
callerid=asreceived
group=2
context=incoming
channel => 4
My /etc/asterisk/extensions.conf is:
[globals]
OUTBOUNDTRUNK=Zap/4
[incoming]
exten => s,1,Wait(1)
exten => s,2,Answer()
exten => s,3,Playback(hello-world)
exten => s,4,Hangup()
[outbound]
exten => _9XXXXXXXXXXX,1,Dial($(OUTBOUNDTRUNK)/${EXTEN:1})
exten => _9XXXXXXXXXXX,2,Congestion()
exten => _9XXXXXXXXXXX,102,Congestion()
The _9XXXXXXXXXX should allow me to call number like
07770 123456
using a 9 prefix from the phone, if I understand the documentation correctly.
Some of this information was from the supplier of the card and others were from Asterisk O’Reilly book.
Incoming calls work as expected, but as soon as I attempt to use my phone to dial a number, it hangs up. I hear a dial-tone to begin with, but pressing a single button makes it hang up. The log from Asterisk is:
–Starting simple switch on ‘Zap/1-1’
–Hungup ‘Zap/1-1’
What is wrong? This is really confusing. I’m a newbie to Asterisk so if there is something I have missed above, please point it out.