planetWayne.com - Forums
Rants and Raves and Generally Anything
Asterisk: Where the #$ZAP%@ do I put this?

 
Post new topic   Reply to topic    planetWayne.com - Forums Forum Index -> VoIP
View previous topic :: View next topic  
Author Message
ChrisOZ
planetFreshman


Joined: 20 Mar 2005
Posts: 2

PostPosted: Sun Mar 20, 2005 2:33 pm    Post subject: Asterisk: Where the #$ZAP%@ do I put this? Reply with quote

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?

Absolutely Puzzled.

- Chris
Back to top
View user's profile Send private message
ChrisOZ
planetFreshman


Joined: 20 Mar 2005
Posts: 2

PostPosted: Sun Mar 20, 2005 2:35 pm    Post subject: Reply with quote

asterisk1*CLI> zap show channels
Chan Extension Context Language MusicOnHold
pseudo default en
1 default en
2 default en
3 default en
4 default en
Back to top
View user's profile Send private message
planetWayne
Site Admin


Joined: 30 Jan 2003
Posts: 280

PostPosted: Mon Mar 21, 2005 6:28 pm    Post subject: Reply with quote

Hiya,
Thanks for dropping by! good to see new members Very Happy

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...

Code:

exten => 10,1,dial(zap/1,60)
exten => 10,2,voicemail,u10

exten => 20,1,dial(zap/2,60)
exten => 20,2,voicemail,u20


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.

Hope this has helped.
Wayne.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    planetWayne.com - Forums Forum Index -> VoIP All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group