Yeastar MyPBX Enterprise. Параметры соединения и формат данных SMDR/CDR
Данные ниже соответствуют только программе Advanced PBX Data Logger и могут быть не применимы для других программных продуктов.
Customized configuration
Introduction
The system configuration files included asterisk configurations are stored into database first and then logistically generated by the background applications. If you would like to manually modify the configurations in /etc/asterisk/, the configuration file will be updated when customers apply the changes on WEB GUI next time. Reboot the device will result in the update of configuration file as well. Namely, the customized modifications by clients can't be saved successfully.
Solution
If you want to save the user-defined data, you must save it to the database. In the directory of "/persistent/var/lib/asterisk/db/", you may find a directory "custom-cfg" to store user-defined data. You should place an appropriate configuration file under this directory. Modified data must saved in "/persistent/var/lib/asterisk/db/custom-cfg/manager_custom.conf".
Step 1
1. Go to WEB GUI → Network Preferences → LAN Settings.
2. Enable SSH temporarily.
3. Remember the SSH port number.
4. Save and apply the changes.
Step 2
1. Go to WEB GUI → Security Settings → AMI Settings.
2. Specify the user name: ami (you may change the user name, but remember it. It will be used below).
3. Specify any strong password.
4. Specify the permitted IP address and subnet mask. This is the IP address of the computer with Advanced PBX Data Logger. Therefore this computer must have the static IP address. Only the specified computer can use the AMI interface.
5. Save the changes, but do not apply the changes yet.
Step 3
1. Open any telnet utility with SSH support. We recommend to use PuTTY.
2. Connect to your PBX. Use your PBX IP address and the SSH port from "Step 1".
3. Login as root. The default password for root is ys123456.
4. Type in the command prompt cd /persistent/var/lib/asterisk/db/custom-cfg/ to change the current directory.
5. Type in the command prompt vi manager_custom.conf to open a simple editor.
6. In the editor you must add 2 new rows (see below). Note: you must specify the user name from "Step 2" in the square brackets.
[ami]
read = all
7. Press the <ESC> button and type :wq to save the changes. The corresponding file must be on the PBX.
Step 4
1. Go to WEB GUI → Network Preferences → LAN Settings.
2. Disable SSH.
3. Save and apply the changes.
PBX Data Logger Settings
1. The logger should work in TCP client mode. The PBX being in permanent listening on port 5038, therefore you need to specify x.x.x.x:5038, where x.x.x.x should be the IP address of your PCX (e.g. 10.0.0.150).
2. Select the corresponding data query and parser plugin.
3. Click the "Setup" button near the "Data query" box.
4. Specify your login and password.
5. Clock "OK" and save all changes.
Данные, извлекаемые PBX Data Logger
Описание
Тип данных
Имя колонки
Код абонента
string
ACC
Конечный number
string
DIALED_PHONE
Caller ID Name
string
FLAG1
Вызывающий телефон
string
CALLER_PHONE
Тип звонка
string
CALL_TYPE
Направление
string
DIRECTION
Линия
string
TRUNK
Расширение
string
EXT
Время звонка
datetime
CALL_TIME
Длительность звонка (sec)
integer
CALL_DURATION_S
Длительность звонка
datetime
CALL_DURATION
Total duration (sec)
integer
TOTAL_DURATION_S
Длительность ожидания ответа (с)
integer
RING_S
Длительность ожидания ответа
datetime
RING
Идентификатор вызова
string
FLAG2
Интересуют отчеты об использовании АТС?
Мы предлагаем утилиту PBX Reports с разнообразными ручными и автоматизированными отчетами, с возможностью вывода на печать, в файлы Excel или PDF, или отправкой по электронной почте, встроенный веб-сервер, и другие возможности. Смотрите тут
Нужна история звонков в базе данных?
Это стандартная функция нашего логгер, который получает и экспортирует данные SMDR или CDR в реальном времени в вашу базу данных. Проследуйте по ссылке
Замечание: Продукты и компании, указанные здесь используются только для обозначение и идентификации и могут быть торговыми и/или зарегистрированными марками соответствующих компаний.