Помогите про диагностировать, не могу понять сломана плата или ошибки в настройках.
Код: Выделить всё
# lspci -v | grep Ethernet
00:07.0 Bridge: NVIDIA Corporation MCP61 Ethernet (rev a2)
01:05.0 Ethernet controller: Digium, Inc. Wildcard TDM800P 8-port analog card (rev 11)
Код: Выделить всё
[1]
active=yes
alarms=OK
description=Wildcard TDM800P
name=WCTDM/0
manufacturer=Digium
devicetype=Wildcard TDM800P
location=PCI Bus 01 Slot 06
basechan=1
totchans=8
irq=0
type=analog
port=1,FXO
port=2,FXO
port=3,FXO
port=4,FXO
port=5,FXS
port=6,FXS
port=7,FXS
port=8,FXS
Код: Выделить всё
# Span 1: WCTDM/0 "Wildcard TDM800P" (MASTER)
fxoks=1
echocanceller=mg2,1
fxoks=2
echocanceller=mg2,2
fxoks=3
echocanceller=mg2,3
fxoks=4
echocanceller=mg2,4
fxsks=5
echocanceller=mg2,5
fxsks=6
echocanceller=mg2,6
fxsks=7
echocanceller=mg2,7
fxsks=8
echocanceller=mg2,8
# Global data
loadzone = ru
defaultzone = ru
Код: Выделить всё
-- Начат процесс запуска юнита dahdi.service.
сен 05 02:27:13 localhost.localdomain dahdi[14035]: Loading DAHDI hardware modules:
сен 05 02:27:13 localhost.localdomain dahdi[14035]: wctdm24xxp: [ OK ]
сен 05 02:27:13 localhost.localdomain dahdi[14035]: wcfxo: [ OK ]
сен 05 02:27:13 localhost.localdomain dahdi[14035]: /usr/share/dahdi/waitfor_xpds: line 106: astribank_is_starting: команда не
сен 05 02:27:13 localhost.localdomain dahdi[14035]: D: auto '/sys/bus/dahdi_devices/devices/pci:0000:01:05.0'
сен 05 02:27:13 localhost.localdomain dahdi[14035]: auto-assign /sys/bus/dahdi_devices/devices/pci:0000:01:05.0
сен 05 02:27:13 localhost.localdomain kernel: dahdi_devices pci:0000:01:05.0: local span 1 is already assigned span 1
сен 05 02:27:13 localhost.localdomain dahdi[14035]: Running dahdi_cfg: DAHDI_CHANCONFIG failed on channel 1: Invalid argument
сен 05 02:27:13 localhost.localdomain dahdi[14035]: Selected signaling not supported
сен 05 02:27:13 localhost.localdomain dahdi[14035]: Possible causes:
сен 05 02:27:13 localhost.localdomain dahdi[14035]: FXO signaling is being used on a FXO interface (use a FXS signaling varian
сен 05 02:27:13 localhost.localdomain dahdi[14035]: RBS signaling is being used on a E1 CCS span
сен 05 02:27:13 localhost.localdomain dahdi[14035]: Signaling is being assigned to channel 16 of an E1 CAS span
сен 05 02:27:13 localhost.localdomain dahdi[14035]: [СБОЙ ]
сен 05 02:27:13 localhost.localdomain systemd[1]: dahdi.service: control process exited, code=exited status=1
сен 05 02:27:13 localhost.localdomain systemd[1]: Failed to start LSB: DAHDI kernel modules.
-- Subject: Ошибка юнита dahdi.service
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Произошел сбой юнита dahdi.service.
--
-- Результат: failed.
сен 05 02:27:13 localhost.localdomain systemd[1]: Unit dahdi.service entered failed state.
сен 05 02:27:13 localhost.localdomain systemd[1]: dahdi.service failed.
сен 05 02:27:13 localhost.localdomain polkitd[789]: Unregistered Authentication Agent for unix-process:14030:1422355 (system b
сен 05 02:27:16 localhost.localdomain systemd[1]: Created slice user-10ХХ.slice
Код: Выделить всё
# Span 1: WCTDM/0 "Wildcard TDM800P" (MASTER)
fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
fxsks=3
echocanceller=mg2,3
fxsks=4
echocanceller=mg2,4
fxoks=5
echocanceller=mg2,5
fxoks=6
echocanceller=mg2,6
fxoks=7
echocanceller=mg2,7
fxoks=8
echocanceller=mg2,8
# Global data
loadzone = ru
defaultzone = ru
Конфиг файла chan_dahdi.conf в директории /etc/asterisk/
Как видите некоторые строки закоменчены типа:
; signalling=fxo_ks
; signalling=fxs_ks
попытка запустить DAHDI в CLI Asterisk в разными параметрами FXO и FXS для портов от 1-4 до 5-8.
Попытка запустить DAHDI с настройками: signalling=fxo_ks – для портов 1-4 и signalling=fxs_ks – для 5-8 потерпела не удачу, хотя ориентация была по данным утилиты dahdi_scan.
Рабочие настройки файла chan_dahdi.conf в директории /etc/asterisk/ следующие:
Код: Выделить всё
[trunkgroup]
[channels]
language=ru
; include dahdi extensions defined in FreePBX
#include chan_dahdi_additional.conf
; XTDM20B Port #1,2 plugged into PSTN
;AMPLABEL:Channel %c - Button %n
;context=from-zaptel
; signalling=fxo_ks
rxwink=300
busydetect=yes
busycount=7
usecallerid=yes
hidecallerid=no
callwaiting=no
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
rxgain=0.0
txgain=0.0
;group=0
callgroup=1
pickupgroup=1
immediate=no
faxdetect=no
; # echocancelwhenbridged=no
; # group=0
; # channel=1-2
;FXS Modules
group=1
echocancel=yes
signalling=fxs_ks
; signalling=fxo_ks
;context=Internal
context=Incoming
channel=1-4
;FXO Modules
group=2
echocancel=yes
signalling=fxo_ks
; signalling=fxs_ks
;context=Incoming
context=from-internal
channel=5-8
Код: Выделить всё
; Span 1: WCTDM/0 "Wildcard TDM800P" (MASTER)
;;; line="1 WCTDM/0/0 FXSKS (EC: MG2 - INACTIVE)"
signalling=fxs_ks
; signalling=fxo_ks
callerid=asreceived
;group=0
context=from-pstn
channel => 1
callerid=
group=1
context=default
;;; line="2 WCTDM/0/1 FXSKS (EC: MG2 - INACTIVE)"
signalling=fxs_ks
; signalling=fxo_ks
callerid=asreceived
;group=0
context=from-pstn
channel => 2
callerid=
group=1
context=default
;;; line="3 WCTDM/0/2 FXSKS (EC: MG2 - INACTIVE)"
signalling=fxs_ks
; signalling=fxo_ks
callerid=asreceived
;group=0
context=from-pstn
channel => 3
callerid=
group=1
context=default
;;; line="4 WCTDM/0/3 FXSKS (EC: MG2 - INACTIVE)"
signalling=fxs_ks
; signalling=fxo_ks
callerid=asreceived
;group=0
context=from-pstn
channel => 4
callerid=
group=1
context=default
;;; line="5 WCTDM/0/4 FXOKS (EC: MG2 - INACTIVE)"
; signalling=fxs_ks
signalling=fxo_ks
callerid="Channel 5" <4005>
mailbox=4005
;group=5
context=from-internal
channel => 5
callerid=
mailbox=
group=2
context=default
;;; line="6 WCTDM/0/5 FXOKS (EC: MG2 - INACTIVE)"
signalling=fxo_ks
; signalling=fxs_ks
callerid="Channel 6" <4006>
mailbox=4006
;group=5
context=from-internal
channel => 6
callerid=
mailbox=
group=2
context=default
;;; line="7 WCTDM/0/6 FXOKS (EC: MG2 - INACTIVE)"
signalling=fxo_ks
; signalling=fxs_ks
callerid="Channel 7" <4007>
mailbox=4007
;group=5
context=from-internal
channel => 7
callerid=
mailbox=
group=2
context=default
;;; line="8 WCTDM/0/7 FXOKS (EC: MG2 - INACTIVE)"
signalling=fxo_ks
; signalling=fxs_ks
extension=1018
callerid="1018" <1018>
mailbox=1018
;group=5
context=from-internal
channel => 8
callerid=1018
mailbox=
group=2
context=default
context=Internal
Код: Выделить всё
### Span 1: WCTDM/0 "Wildcard TDM800P" (MASTER)
1 FXO FXSKS (In use) (EC: MG2 - INACTIVE) RED
2 FXO FXSKS (In use) (EC: MG2 - INACTIVE) RED
3 FXO FXSKS (In use) (EC: MG2 - INACTIVE) RED
4 FXO FXSKS (In use) (EC: MG2 - INACTIVE) RED
5 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
6 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
7 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
8 FXS FXOKS (In use) (EC: MG2 - INACTIVE)
Код: Выделить всё
[2016-09-03 17:17:45] ERROR[14787]: chan_dahdi.c:12058 mkintf: Signalling requested on channel 1 is FXO Kewlstart but line is in FXS Kewlstart signalling
[2016-09-03 17:17:45] ERROR[14787]: chan_dahdi.c:17451 build_channels: Unable to register channel '1'
[2016-09-03 17:17:45] WARNING[14787]: chan_dahdi.c:17658 process_dahdi: Channel '1' failure ignored: ignore_failed_channels.
[2016-09-03 17:17:45] ERROR[14787]: chan_dahdi.c:12058 mkintf: Signalling requested on channel 2 is FXO Kewlstart but line is in FXS Kewlstart signalling
..... ну и так далее для всех портов.
Код: Выделить всё
;;;;;;[1011]
signalling=fxs_ks
namedpickupgroup=
namedcallgroup=
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
context=from-internal
callprogress=no
callerid=1011 <1011>
busydetect=yes
busycount=7
accountcode=
channel=>1
;;;;;;[1012]
signalling=fxs_ks
namedpickupgroup=
namedcallgroup=
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
context=Incoming
callprogress=no
callerid=1012 <1012>
busydetect=yes
busycount=7
accountcode=
channel=>2
;;;;;;[1013]
signalling=fxs_ks
namedpickupgroup=
namedcallgroup=
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
context=Incoming
callprogress=no
callerid=1013 <1013>
busydetect=yes
busycount=7
accountcode=
channel=>3
;;;;;;[1014]
signalling=fxs_ks
namedpickupgroup=
namedcallgroup=
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
context=Incoming
callprogress=no
callerid=1014 <1014>
busydetect=yes
busycount=7
accountcode=
channel=>4
;;;;;;[1015]
signalling=fxo_ks
namedpickupgroup=
namedcallgroup=
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
context=from-internal
callprogress=no
callerid=1015 <1015>
busydetect=yes
busycount=7
accountcode=
channel=>5
;;;;;;[1016]
signalling=fxo_ks
namedpickupgroup=
namedcallgroup=
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
context=from-internal
callprogress=no
callerid=1016 <1016>
busydetect=yes
busycount=7
accountcode=
channel=>6
;;;;;;[1017]
signalling=fxo_ks
namedpickupgroup=
namedcallgroup=
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
context=Internal
callprogress=no
callerid=1017 <1017>
busydetect=yes
busycount=7
accountcode=
channel=>7
;;;;;;[1018]
signalling=fxo_ks
namedpickupgroup=
namedcallgroup=
immediate=no
echotraining=800
echocancelwhenbridged=yes
echocancel=yes
context=from-internal
callprogress=no
callerid=1018 <1018>
busydetect=yes
busycount=7
accountcode=
channel=>8
dahdi restart
Код: Выделить всё
Destroying channels and reloading DAHDI configuration.
> Initial softhangup of all DAHDI channels complete.
> Final softhangup of all DAHDI channels complete.
-- Unregistered channel -2
-- Unregistered channel 1
-- Unregistered channel 2
-- Unregistered channel 3
-- Unregistered channel 4
-- Unregistered channel 5
-- Unregistered channel 6
-- Unregistered channel 7
-- Unregistered channel 8
== Parsing '/etc/asterisk/chan_dahdi.conf': Found
== Parsing '/etc/asterisk/chan_dahdi_additional.conf': Found
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 1: Red Alarm
-- Reconfigured channel 1, FXS Kewlstart signalling
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 2: Red Alarm
-- Reconfigured channel 2, FXS Kewlstart signalling
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 3: Red Alarm
-- Reconfigured channel 3, FXS Kewlstart signalling
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 4: Red Alarm
-- Reconfigured channel 4, FXS Kewlstart signalling
-- Reconfigured channel 5, FXO Kewlstart signalling
-- Reconfigured channel 6, FXO Kewlstart signalling
-- Reconfigured channel 7, FXO Kewlstart signalling
-- Reconfigured channel 8, FXO Kewlstart signalling
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:12401 mkintf: Attempt to configure channel 1 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 1: Red Alarm
-- Reconfigured channel 1, FXS Kewlstart signalling
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:12401 mkintf: Attempt to configure channel 2 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 2: Red Alarm
-- Reconfigured channel 2, FXS Kewlstart signalling
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:12401 mkintf: Attempt to configure channel 3 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 3: Red Alarm
-- Reconfigured channel 3, FXS Kewlstart signalling
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:12401 mkintf: Attempt to configure channel 4 with signaling FXS Kewlstart ignored because it is already configured to be FXS Kewlstart.
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:7285 handle_alarms: Detected alarm on channel 4: Red Alarm
-- Reconfigured channel 4, FXS Kewlstart signalling
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:12401 mkintf: Attempt to configure channel 5 with signaling FXO Kewlstart ignored because it is already configured to be FXO Kewlstart.
-- Reconfigured channel 5, FXO Kewlstart signalling
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:12401 mkintf: Attempt to configure channel 6 with signaling FXO Kewlstart ignored because it is already configured to be FXO Kewlstart.
-- Reconfigured channel 6, FXO Kewlstart signalling
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:12401 mkintf: Attempt to configure channel 7 with signaling FXO Kewlstart ignored because it is already configured to be FXO Kewlstart.
-- Reconfigured channel 7, FXO Kewlstart signalling
[2016-09-08 02:04:38] WARNING[8024]: chan_dahdi.c:12401 mkintf: Attempt to configure channel 8 with signaling FXO Kewlstart ignored because it is already configured to be FXO Kewlstart.
-- Reconfigured channel 8, FXO Kewlstart signalling
Код: Выделить всё
Opened pseudo dahdi interface, measuring accuracy...
99.997% 99.979% 99.991% 99.995% 99.994% 99.995% 99.995% 99.996%
99.996% 99.992% 99.995% 99.996% 99.995% 99.995% 99.996% 99.996%
99.995% ^C
--- Results after 17 passes ---
Best: 99.997% -- Worst: 99.979% -- Average: 99.993941%
Cummulative Accuracy (not per pass): 99.994
Код: Выделить всё
Chan Extension Context Language MOH Interpret Blocked In Service Description
pseudo default default Yes
1 Incoming ru default Yes
2 Incoming ru default Yes
3 Incoming ru default Yes
4 Incoming ru default Yes
5 from-internal ru default Yes
6 from-internal ru default Yes
7 from-internal ru default Yes
8 from-internal ru default Yes
dahdi show channels 8:
Код: Выделить всё
Channel: 8
Description:
File Descriptor: 21
Span: 1
Extension:
Dialing: no
Context: from-internal
Caller ID: 1018
Calling TON: 0
Caller ID subaddress:
Caller ID name: 1018
Mailbox: none
Destroy: 0
InAlarm: 0
Signalling Type: FXO Kewlstart
Radio: 0
Owner: <None>
Real: <None>
Callwait: <None>
Threeway: <None>
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Busy Detection: yes
Busy Count: 7
Busy Pattern: 0,0,0,0
TDD: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
HW Gains (RX/TX): Disabled/Disabled
SW Gains (RX/TX): 0.00/0.00
Dynamic Range Compression (RX/TX): 0.00/0.00
DND: no
Echo Cancellation:
128 taps
(unless TDM bridged) currently OFF
Wait for dialtone: 0ms
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook