I'm attempting to set a small PBX system. I'm using Asterisk @ Home 2.8 with a Digium TDM11B card. 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=<my 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.
--
Ashley T. Howes, Ph.D. http://www.ashleyhowes.com/
"The proper function of man is to live, not to exist." - Jack London
On Sat, May 13, 2006 at 02:34:07PM +0100, Ashley T. Howes, Ph.D. wrote:
I'm attempting to set a small PBX system. I'm using Asterisk @ Home 2.8 with a Digium TDM11B card. 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=<my 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.
A quick glance and a rough guess suggests to me that where you have context=default you probably want context=outbound.
That, however, is a lazy Sat afternoon random guess of doom, so could be wildly inaccurate (and I'd want my asterisk book handy to find out)...
JOOI, where did you get your digium card from?
Cheers,
On 13 May 2006, at 15:18, Brett Parker wrote:
A quick glance and a rough guess suggests to me that where you have context=default you probably want context=outbound.
Doh :) I can now dial on the phone, but I still get an error message once the phone number is fully input:
--Executing Dial ("Zap/1-1", "$(OUTBOUNDTRUNK)/${EXTEN:1}") in new stack ==Everyone is busy/congested at this time (1:0/0/1)
So, I've got a little further, but haven't won the prize yet :(
JOOI, where did you get your digium card from?
myphonecall.co.uk. Very quick. Delivered the next morning after order.
--
Ashley T. Howes, Ph.D. http://www.ashleyhowes.com/
"Before I practised the Way, a cloud was just a cloud and a mountain was just a mountain. After I'd studied the Way, the cloud was no longer a cloud, a mountain no longer a mountain. Now that I understand the Way, a cloud is again just a cloud, a mountain is just a mountain." - Zen tradition
On 13 May 2006, at 16:49, Ashley T. Howes, Ph.D. wrote:
On 13 May 2006, at 15:18, Brett Parker wrote:
A quick glance and a rough guess suggests to me that where you have context=default you probably want context=outbound.
Doh :) I can now dial on the phone, but I still get an error message once the phone number is fully input:
--Executing Dial ("Zap/1-1", "$(OUTBOUNDTRUNK)/${EXTEN:1}") in new stack ==Everyone is busy/congested at this time (1:0/0/1)
Nothing like replying to your own posts :) It is now working. For reference of others searching the archives later, the problem's final hurdle was the following line in /etc/asterisk/extensions.conf :
exten => _9XXXXXXXXXXX,1,Dial($(OUTBOUNDTRUNK)/${EXTEN:1})
needed to be:
exten => _9XXXXXXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
Now that I've got basic incoming and outgoing calls to work, I am now progress further and actually start to build what I wanted to at the beginning of the day :)
--
Ashley T. Howes, Ph.D. http://www.ashleyhowes.com/
"To float in totality, to have no technique, is to have all technique." - Bruce Lee
On Sat, May 13, 2006 at 06:02:47PM +0100, Ashley T. Howes, Ph.D. lists@ashleyhowes.com wrote:
Nothing like replying to your own posts :) It is now working. For reference of others searching the archives later, the problem's final hurdle was the following line in /etc/asterisk/extensions.conf :
exten => _9XXXXXXXXXXX,1,Dial($(OUTBOUNDTRUNK)/${EXTEN:1})
needed to be:
exten => _9XXXXXXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1})
Ahh - I missed that on my quick scan, that was careless - good ol' brackets verses braces - fun :)
Glad that you've got that much working :)
Now that I've got basic incoming and outgoing calls to work, I am now progress further and actually start to build what I wanted to at the beginning of the day :)
Cool.
Cheers, Brett.