Freepbx各配置文件关系及用途

9.1 DIGIUM WILDCARD X100P FXO PCI CARD

This card allows you to connect a POTS (plain Old Telephone System) line to your Asterisk@Home box (See Notes for Patch information).

If this card is added after Asterisk has been configured, it may be necessary to configure it by using the zaptel card auto-config utility so the correct zaptel driver will be set up. To do that, enter the following from the command line.

rebuild_zaptel (restart after each command)

genzaptelconf (see notes re command switch)

Next go into the AMP web interface to create a trunk and you will notice that there is already a trunk called ZAP/g0. You need to edit this.

1. 2. 3. 4. 5.

Enter the phone number for you pots line in the Caller ID field Enter 1 for Maximum channels Set a dial rule you want for this trunk

Select an outbound dial prefix to select this trunk when dialing Set the Zap Identifier to 1 (the default is g0)

Once the card is configured, you must add a route for Incoming Calls or asterisk will not answer this line

Click on Incoming Calls in AMP and set up an incoming route. To make outbound calls you will need to set an outbound route as well.

If you have this card installed, you will need to edit the

following files; zapata.conf, zaptel.conf and modules.conf for AAH 1.x or modprobe.conf for AAH 2.x. The last 2 files live in the /etc directory – use a text editor to edit them.

9.1.1 zapata.conf

Under [channels] edit the following lines:

[channels]

busydetect=yes

busycount=6

For my installation to function correctly, I have also changed the following setting to obtain a good compromise on volume/echoing:

rxgain=10.0 (you may have to experiment a little with this setting)

txgain=8.0 (you may have to experiment a little with this setting)

Ensure the following exist in zapata.conf. It is located at the end of the file.

;Include AMP Configs

channel => 1

#include zapata_additional.conf

Leave the rest of the file as it is.

9.1.2 zaptel.conf

Change the loadzone and defaultzone to 'au'

# Global data

loadzone = au

defaultzone = au

9.1.3 modules.conf (modprobe.conf for AAH 2.x)

For AAH 1.x, locate the post-install wcfxo entry and edit it to reflect this:

post-install wcfxo /sbin/ztcfg opermode=AUSTRALIA

For AAH 2.x, add the line highlighted in Bold below:

.

alias char-major-196 torisa

options wcfxo opermode=AUSTRALIA ; add this line

install tor2 /sbin/modprobe --ignore-install tor2 && /sbin/ztcfg

.

9.2 DIGIUM TDM400P FXO/FXS CARD

Like the Digium Wildcard X100P, this card allows you to connect a POTS (plain Old Telephone System) line to your Asterisk@Home box. Unlike the X100P, this card has 4 module ports that can be loaded with FXS or FXO modules. Channel 1 is the top RJ-45 on the back of the TDM400P card.

If this card is installed after Asterisk has been loaded, you will

need to configure it just like the X100P by using the following command on the command line:

genzaptelconf

9.2.1 zapata-auto.conf

Next, using config edit, look in the zapata-auto.conf file and you will see a list of all your channels in your TDM400P. Set up the trunks as trunks and the extensions as extensions in AMP.

When you open the zapata_auto.conf file, it will look something like the illustration below (see the red highlight)

zapata-auto.conf

; Span 1: WCTDM/0 'Wildcard TDM400P REV E/F Board 1'

signaling=fxo_ks

; Note - this is an extension. Create a ZAP extension in AMP for Channel 1

channel => 1 < - -this would have been defined already by the config

signaling=fxs_ks

;Note - this is a trunk. Create a ZAP trunk in AMP for Channel 2

context=from-pstnchannel => 2 < - -this would have been defined already by the config

联系客服:779662525#qq.com(#替换为@)