3CX. Параметры соединения и формат данных SMDR/CDR
Данные ниже соответствуют только программе Advanced PBX Data Logger и могут быть не применимы для других программных продуктов.
Enable CDR
To enable CDR, access the 3CX Management console. Go to "Settings > CDR", choose "Generate CDR". Select the "Active Socket" output type.

Configuring the CDR fields
Our software is configured for the following STRUCTURE and the position of the CDR data
historyid
callid
duration
time-start
time-answered
time-end
reason-terminated
from-no
to-no
from-dn
to-dn
dial-no
reason-changed
final-number
final-dn
bill-code
bill-rate
bill-cost
bill-name
chain
from-type
to-type
final-type
from-dispname
to-dispname
final-dispname
More info about the CDR format and settings you may find here.
Configuring Advanced PBX Data Logger
Advanced PBX Data Logger should be configured to the TCP server mode and listen on 0.0.0.0:2002 (see below). The port number should match the value from the SMDR settings in 3CX.
Данные, извлекаемые PBX Data Logger
Описание | Тип данных | Имя колонки |
Record No | string | FLAG4 |
Идентификатор вызова | string | FLAG1 |
Длительность звонка | datetime | CALL_DURATION |
Длительность звонка (с) | integer | CALL_DURATION_S |
Время звонка | datetime | CALL_TIME |
Ожидания ответа | datetime | RING |
Terminated | string | FLAG5 |
Тип звонка | string | DIRECTION |
Расширение | string | EXT |
Линия | string | TRUNK |
Вызванный номер | string | CALLER_PHONE |
Расширение name | string | EXT_NAME |
Набранный номер | string | DIALED_PHONE |
Call charge | float | COST |
Caller name | string | FLAG2 |
Change reason | string | FLAG6 |
Chain (full) | string | CHAIN |
Chain | string | FLAG3 |
Display name (from) | string | DISPNAME_FROM |
Display name (to) | string | DISPNAME_TO |
Display name (final) | string | DISPNAME_FINAL |
Missed queue calls | string | MISSED_QUEUE |
Замечание: Продукты и компании, указанные здесь используются только для обозначение и идентификации и могут быть торговыми и/или зарегистрированными марками соответствующих компаний.