Freepbx各配置文件关系及用途 下载本文

o This is the old common location for placing the lines needed to enable the nat'ing of

SIP. The new preferred location is sip_general_custom.conf. If you move the lines from this file to sip_general_custom.conf please remove them from this file or you'll experience hair loss as you spend time debugging why things don't work as you expect.

sip_registrations.conf

o General section registrations that are auto-generated by FreePBX.

sip_registrations_custom.conf

o a custom file just in case there is ever a need to override a general registration that

was auto-generated by FreePBX.

sip_custom.conf

? This is the first file that is not under the general context. IT allows you to define

contexts that you need before the contexts that are auto-generated by FreePBX in sip_additional.conf.

sip_additional.conf

o This is where FreePBX puts all sip extensions, sip trunks, etc. If you need to

add a additional parameter to a extension, trunk, etc., see sip_custom_post.conf.

sip_custom_post.conf

o This is the file that allows you to add/remove values to those entries found in

the auto-generated sip_additional.conf file. So for example you have an extension 1000 that needs an additional parameter added. Create a context line: [1000](+) then on the next line add the item(s) you need to add. To remove use (-) instead followed by the line(s) you want removed.

sip_notify.conf skinny.conf voicemail.conf

o This file is both editable by you and by FreePBX, so please be careful. The

structure of this file is as follows:

[general]

#include vm_general.inc #include vm_email.inc [default]

Once you have configured a system with voicemail there will be values after the context [default]. These lines will be generated by FreePBX every time you add/edit/delete a extension.

If you are looking to customize the e-mail message that get's send out with a voice mail please edit the vm_email.inc file. If you need to edit the mail sending parameters edit the vm_general.inc file. 99% of the world needs to edit two lines in the vm_general.inc file at the initial build time.

The most common change to this file is to create a context called [zonemessages]. This context allows you to create timezones so that when you have extensions in multiple time zones they can date time stamp recorded messages properly for any given extension. If you create this context it should be placed after the second #include line and before the [default] line.

[general]

#include vm_general.inc #include vm_email.inc [zonemessages]

eastern = America/New_York|'vm-received' q 'digits/at' IMp central = America/Chicago|'vm-received' q 'digits/at' IMp mountain = America/Denver|'vm-received' q 'digits/at' IMp pacific = America/Tijuana|'vm-received' q 'digits/at' IMp eastern24 = America/New_York|'vm-received' q 'digits/at' R central24 = America/Chicago|'vm-received' q 'digits/at' R mountain24 = America/Denver|'vm-received' q 'digits/at' R pacific24 = America/Tijuana|'vm-received' q 'digits/at' R deutschland = Europe/Berlin | 'vm-received' Q 'digits/at' kM england = Europe/London | 'vm-received' Q 'digits/at' R germany = Europe/Berlin | 'vm-received' Q 'digits/at' kM alberta = Canada/Mountain | 'vm-received' Q 'digits/at' HM madrid = Europe/Paris|'vm-received' Q 'digits/at' R paris = Europe/Paris|'vm-received' Q 'digits/at' R sthlm = Europe/Stockholm|'vm-recieved' Q 'digits/at' R europa = Europe/Berlin|'vm-received' Q 'digits/at' kM

italia = Europe/Rome|'vm-received' Q 'digit/at' HMP

military = Zulu | 'vm-received' q 'digits/at' H N 'hours' 'phonetic/z_p'

[default]

vm_email.inc

o this file contains the e-mail subject line and message body for any voice mails

that are e-mailed.

vm_general.inc

o o

this file contains the e-mail / voice mail configuration parameters.

The most common change to this file is to edit the servermail= line so that it

is from a valid worldly e-mail address or any mail server that has spam and/or spoofing protection will reject the voice mail e-mails.

o other common lines to edit are: maxmessage= this is the max message limit,

maxmsg= limits the total number of messages allowed in a mailbox, operator= if this is set to yes then when a person is leaving a message they can press 0 for the operator (or dial another extension).

zapata.conf zapata-auto.conf

zapata_additional.conf

zapata_custom_chan_default.conf

使用Freepbx连接到pstn