Содержание
FreePBX
Установка
Settings - Advanced settings:
- Browser stats - No
- PHP Timezone - Europe/Moscow
- RSS Feeds - clear
- Country Indication Tones - Russian Federation ?
- Speaking clock time format - 24 hour format
Выкл. комм модули, кроме System Admin
Активировать систему
Настроить Fail2ban
Установка fail2ban:
cd /usr/src wget https://github.com/fail2ban/fail2ban/archive/0.9.4.tar.gz tar xvjf 0.9.4.tar.gz rm -f 0.9.4.tar.gz cd fail2ban-* ./setup.py install
Исправить ошибку Trusted Interface Detected
A network interface that is assigned to the 'Trusted' zone has been detected. This is a misconfiguration. To ensure your system is protected from attacks, please change the default zone of interface 'eth0'. Connectivity – Firewall – Zones – Interfaces – set Internal.
Голосовая русификация
mkdir -p /var/lib/asterisk/sounds/ru/ wget -q --no-check-certificate https://github.com/pbxware/asterisk-sounds/tarball/master -O- \ | tar xzv --strip-components 1 -C /var/lib/asterisk/sounds/ru/ wget -q --no-check-certificate https://github.com/pbxware/asterisk-sounds-additional/tarball/master -O- \ | tar xzv --strip-components 1 -C /var/lib/asterisk/sounds/ru/ chown -R asterisk:asterisk /var/lib/asterisk/sounds/ru/
Admin → Sound languages → Custom languages → add → Language: ru, Description: Russian
Вернуться на вкладку Global language → Russian
Исправить ошибку Missing HTML5 format converters
You are missing support for the following HTML5 codecs: oga,mp3,m4a. To fully support HTML5 browser playback you will need to install programs that can not be distributed with FreePBX. If you'd like to install the binaries needed for these conversions click 'Resolve' in the lower left corner of this message. You can also safely ignore this message but browser playback might not work in your browser.
Установка FFMPEG:
cd /usr/src wget http://ffmpeg.org/releases/ffmpeg-3.0.1.tar.gz tar xvfz ffmpeg-3.0.1.tar.gz rm -f ffmpeg-3.0.1.tar.gz cd ffmpeg-* ./configure --disable-yasm make && make install
Установка LAME:
wget https://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.5.tar.gz tar -zxvf lame-3.99.5.tar.gz cd lame-3.99.5 ./configure make && make install
Admin - System recordings - добавить запись для приветствия Затем указать её в IVR.
Settings - Voicemail admin - Settings:
charset: UTF-8 emailbody: ${VM_NAME},\n\nThere is a new voicemail in mailbox ${VM_MAILBOX}:\n\n\tFrom:\t${VM_CALLERID}\n\tLength:\t${VM_DUR} seconds\n\tDate:\t${VM_DATE}\n\nDial *98 to access your voicemail by phone.\nVisit http://AMPWEBADDRESS/ucp to check your voicemail with a web browser.\n ${VM_NAME},\n\nНовое голосовое сообщение ${VM_MAILBOX}:\n\n\tОт:\t${VM_CALLERID}\n\tДлительноть:\t${VM_DUR} сек.\n\tДата:\t${VM_DATE}\n emailsubject: Голосовая почта fromstring: АТС
Настройки почтового сервера убраны в комм. версию System Admin, соответственно, ставим webmin
Выставляем адрес почтового сервера
Примеры набора номеров на старой АТС
Москва (местные номера) | |||
---|---|---|---|
98 | 495 | 1111111 | |
98 | 499 | 1111111 | |
Киев | |||
9810 | 380 | 44 | 1111111 |
Киев (моб) | |||
9810 | 380 | 68 | 1111111 |
Ереван | |||
9810 | 374 | 10 | 999999 |
Удаление ненужных модулей
Удалить коммерческие модули:
fwconsole ma delete cos bria restapps restapi sng_mcu ucpnode xmpp zulu cxmodule areminder broadcast callerid conferencespro pagingpro parkpro vqplus vmnotify webcallback extensionroutes calllimit sipstation sms recording_report pinsetspro qxact_reports voicemail_report endpoint faxpro freepbx_ha ttsengines
Удалить ненужные бесплатные модули:
fwconsole ma delete superfecta digiumaddoninstaller dahdiconfig digium_phones
+----------------------+--------------+---------+ | Module | Version | Status | +----------------------+--------------+---------+ | accountcodepreserve | 13.0.2 | Enabled | | announcement | 13.0.5 | Enabled | | areminder | 13.0.7 | Enabled | | arimanager | 13.0.3 | Enabled | | asterisk-cli | 13.0.3 | Enabled | | asteriskinfo | 13.0.6 | Enabled | | backup | 13.0.21.7 | Enabled | | blacklist | 13.0.7 | Enabled | | bria | 13.0.12 | Enabled | | broadcast | 13.0.8 | Enabled | | builtin | | Enabled | | bulkdids | 13.0.2 | Enabled | | bulkextensions | 13.0.3 | Enabled | | bulkhandler | 13.0.13 | Enabled | | callback | 13.0.5 | Enabled | | callerid | 13.0.3 | Enabled | | callforward | 13.0.4 | Enabled | | calllimit | 13.0.3 | Enabled | | callrecording | 13.0.9 | Enabled | | callwaiting | 13.0.4 | Enabled | | campon | 13.0.3 | Enabled | | cdr | 13.0.26 | Enabled | | cel | 13.0.22 | Enabled | | certman | 13.0.12 | Enabled | | cidlookup | 13.0.10 | Enabled | | conferences | 13.0.18 | Enabled | | conferencespro | 13.0.19 | Enabled | | configedit | 13.0.7 | Enabled | | contactmanager | 13.0.21 | Enabled | | core | 13.0.67 | Enabled | | customappsreg | 13.0.5 | Enabled | | cxpanel | 4.1.10 | Enabled | | dahdiconfig | 13.0.13 | Enabled | | dashboard | 13.0.21 | Enabled | | daynight | 13.0.9 | Enabled | | dictate | 13.0.4 | Enabled | | digium_phones | 2.11.3.0 | Enabled | | digiumaddoninstaller | 2.11.0.12 | Enabled | | directory | 13.0.11 | Enabled | | disa | 13.0.6 | Enabled | | donotdisturb | 13.0.3 | Enabled | | endpoint | 13.0.38 | Enabled | | extensionroutes | 13.0.8 | Enabled | | fax | 13.0.26 | Enabled | | faxpro | 13.0.27 | Enabled | | featurecodeadmin | 13.0.5 | Enabled | | findmefollow | 13.0.28 | Enabled | | firewall | 13.0.19 | Enabled | | framework | 13.0.100 | Enabled | | freepbx_ha | 13.0.7.2 | Enabled | | fw_langpacks | 12.0.7 | Enabled |
| hotelwakeup | 13.0.12 | Enabled | | iaxsettings | 13.0.3 | Enabled | | infoservices | 13.0.1 | Enabled | | ivr | 13.0.23 | Enabled | | languages | 13.0.5 | Enabled | | logfiles | 13.0.9 | Enabled | | manager | 13.0.2.5 | Enabled | | miscapps | 13.0.2.2 | Enabled | | miscdests | 13.0.2 | Enabled | | music | 13.0.18 | Enabled | | outroutemsg | 13.0.2 | Enabled | | paging | 13.0.12 | Enabled | | pagingpro | 13.0.8 | Enabled | | parking | 13.0.14 | Enabled | | parkpro | 13.0.16 | Enabled | | pbdirectory | 2.11.0.4 | Enabled | | phonebook | 13.0.5.2 | Enabled | | phpinfo | 13.0.2 | Enabled | | pinsets | 13.0.7 | Enabled | | pinsetspro | 13.0.6 | Enabled | | presencestate | 13.0.4 | Enabled | | printextensions | 13.0.3 | Enabled | | queueprio | 13.0.2 | Enabled | | queues | 13.0.20 | Enabled | | qxact_reports | 13.0.11 | Enabled | | recording_report | 13.0.19 | Enabled | | recordings | 13.0.23 | Enabled | | restapi | 13.0.18.3 | Enabled | | restapps | 13.0.8.3 | Enabled | | ringgroups | 13.0.16 | Enabled | | setcid | 13.0.4 | Enabled | | sipsettings | 13.0.18 | Enabled | | sipstation | 13.0.13.9 | Enabled | | sms | 13.0.6 | Enabled | | sng_mcu | 13.0.3 | Enabled | | soundlang | 13.0.10 | Enabled | | speeddial | 2.11.0.3 | Enabled | | superfecta | 13.0.3.9 | Enabled | | sysadmin | 13.0.47.5 | Enabled | | timeconditions | 13.0.26 | Enabled | | ttsengines | 13.0.4.1 | Enabled | | ucp | 13.0.25 | Enabled | | ucpnode | 13.0.22 | Enabled | | userman | 13.0.55 | Enabled | | vmblast | 13.0.7 | Enabled | | vmnotify | 13.0.13 | Enabled | | voicemail | 13.0.36 | Enabled | | voicemail_report | 13.0.9 | Enabled | | vqplus | 13.0.19 | Enabled | | weakpasswords | 13.0.1alpha1 | Enabled | | webcallback | 13.0.10 | Enabled | | webrtc | 13.0.16 | Enabled | | xmpp | 13.0.6 | Enabled | | zulu | 13.0.40 | Enabled | +----------------------+--------------+---------+
Настройка транка
- Добавить SIP транк (скорее всего, chan_sip)
- В настройках → General прописать Trunk Name и Outbound CallerID
- Dialplan Manipulation Rules оставить пустыми
- sip Settings → Outgoing:
- sip Settings → Incoming: заполнить Register String в формате username:secret@ipadress/phonenumber
Настройка исходящих маршрутов
Настройка входящих маршрутов
Дополнительно
Текст автоответчика
Здравствуйте, вы позвонили в компанию Рога и копыта. Если вам известен добавочный номер абонента, наберите его в тональном режиме. Для отправки факса нажмите 9, для соединения с секретарём нажмите 0 или оставайтесь на линии.
Ссылки на хороший text2speech
http://www.oddcast.com/home/demos/tts/tts_example.php?sitepal (Milena)
https://www.ivona.com/us/ - уже недействительно