TDM400P

From LinuxMCE
Jump to: navigation, search

Installing Everything you Need

apt-get install zaptel

apt-get install zaptel-source

m-a a-i zaptel

genzaptelconf -sdvM

Edit Needed Configs

nano /etc/asterisk/zapata.conf

for FXS Ports:

context=from-internal

signalling=fxo_ks # use the correct signalling

channel => 1 # use the correct zaptel channel/port, ranges are possible as well

for FXO Ports:

context=from-pstn

signalling=fxs_ks # use the correct signalling

channel => 1 # use the correct zaptel channel/port, ranges are possible as well

Now get into the AMP Configuration

Web Admin -> Phone Lines -> Deactivate Automatic Configuration -> To Configure AMP, click click here

Add a Trunk for every FXO module.

Click on Trunks -> Add ZAP Trunk

Maximum channels: 1

Zap Identifier (trunk name): <Use the channel number for the FXO port that you created in zapata.conf>

Submit Changes

Add an Inbound Route.

Leave everything blank except for "Set Destination", I setup a Ring Group and selected that. Submit Changes

Now setup your Outbound Route(s), Most likely one per FXO port. I edited the existing route. Setup what ever Dial Patterns you want, I setup "9.|" for one port and "8|." for another port. Setup your Trunk Sequence Submit Changes

Setup FXS Extension for every FXS module: Click on Extension.

Device: Select "Generic ZAP Device"

Submit

User Extension: <put in a number, I started at 300>

Display Name: <put in a name>

This device uses zap technology.

channel <Put in the FXS Port number>

Submit

Now this is a VERY VERY basic setup designed to just get it to work. You will still have to fine tune your FXO ports. I will setup a page for that wants I get mine done.