Posted: Sun Mar 20, 2005 2:33 pm Post subject: Asterisk: Where the #$ZAP%@ do I put this?
Hi, I have a TDM400 with the 2 FXO and FXS's.
I can make an inbound call find to the handset.
I do ZAP SHOW CHANNELS and it has the 4 channels setup for the hardware but they dont have an extension number assigned to them.
I set it up so dialing 1 would dial the phone fine for the handset 1 aka ZAP/1 but how do I set it up properly so that ZAP SHOW CHANNELS shows the right channel for the hardware ZAP?
Hiya,
Thanks for dropping by! good to see new members
As for your extensions - you need to edit your extensions.conf file.
This file tells * what to listen for, with respect of dialed numbers and answering calls, and what to do with them.
As you start to use *, you will see that when you dial an extension, you are actually executing a series of commands to connect your source phone/device/channel to the destination phone/device/channel. This is where * starts to show power over a traditional pbx as these commands are completely at your control.
back to your example...
All your channels, Zap/1 -> Zap/4 are in your 'default' context so - to start with - you need to look for your [default] section in extensions.conf.
Then, under that heading, add somthing like...
You need to to a 'reload' from the command line to get these changes into *.
Basicly - this tells * that when you dial an extention from one of your channels - dial another and attempt to connect the two.
Each of the extensions (10 and 20) have two commands for each - the first attempts to dial a channel, the second sends the call to voicemail if the first times out (the '60' on the dial command is the timeout).
The '10' and '20' can be changed to any numbers you want * to look out for - my internal extentions start at 100 - but your free to choose.
Have a look on the Asterisk Wiki - theres a lot more info on extensions.conf there. It can be a bit overwhelming to start - but if you need some more pointers - drop back here and we'll give it a go.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum