Прошу помощи с настройкой TE220
Сообщений: 30
|
Прошу помощи с настройкой TE220
Всем здравствуйте!
Имеется. CentOS 5.4
dahdi-linux-complete-2.2.1.1+2.2.1.1
asterisk-1.6.2.6.tar.gz
asterisk-addons-1.6.2.0.tar.gz
./dahdi_hardware
pci:0000:05:08.0 wct4xxp+ d161:0220 Wildcard TE220 (4th Gen)
/etc/dahdi/modules
wct4xxp
dahdi_transcode
/etc/dahdi/system.conf
# Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" (MASTER) HDB3/CCS BLUE RED
span=1,1,0,ccs,hdb3,crc4
# termtype: te
bchan=1-15,17-31
dchan=16
echocanceller=mg2,1-15,17-31
# Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2"
span=2,2,0,ccs,hdb3,crc4
# termtype: te
bchan=32-46,48-62
dchan=47
echocanceller=mg2,32-46,48-62
# Global data
loadzone = us
defaultzone = us
делаю
/etc/init.d/dahdi restart
Loading DAHDI hardware modules:
wct4xxp: [ OK ]
dahdi_transcode: [ OK ]
/usr/share/dahdi/waitfor_xpds: Missing astribank_is_starting
Running dahdi_cfg: [ OK ]
В /var/log/messages
Apr 2 19:10:03 sip kernel: dahdi_transcode: Loaded.
Apr 2 19:10:03 sip kernel: About to enter spanconfig!
Apr 2 19:10:03 sip kernel: About to enter startup!
Apr 2 19:10:03 sip kernel: TE2XXP: Span 1 configured for CCS/HDB3/CRC4
Apr 2 19:10:03 sip kernel: wct4xxp 0000:05:08.0: timing source auto
Apr 2 19:10:03 sip kernel: wct4xxp 0000:05:08.0: Evaluating spans for timing source
Apr 2 19:10:03 sip kernel: wct4xxp 0000:05:08.0: All spans in alarm : No validspan to source RCLK from
Apr 2 19:10:03 sip kernel: wct4xxp 0000:05:08.0: RCLK source set to span 1
Apr 2 19:10:03 sip kernel: SPAN 1: Primary Sync Source
Apr 2 19:10:03 sip kernel: Completed startup!
Apr 2 19:10:03 sip kernel: About to enter spanconfig!
Apr 2 19:10:03 sip kernel: About to enter startup!
Apr 2 19:10:03 sip kernel: TE2XXP: Span 2 configured for CCS/HDB3/CRC4
Apr 2 19:10:03 sip kernel: SPAN 2: Secondary Sync Source
Apr 2 19:10:03 sip kernel: Completed startup!
Apr 2 19:10:03 sip kernel: wct4xxp 0000:05:08.0: timing source auto
Apr 2 19:10:03 sip kernel: wct4xxp 0000:05:08.0: Evaluating spans for timing source
Apr 2 19:10:03 sip kernel: wct4xxp 0000:05:08.0: All spans in alarm : No validspan to source RCLK from
Apr 2 19:10:03 sip kernel: wct4xxp 0000:05:08.0: RCLK source set to span 1
в * chand_dahdi.conf
[channels]
language=ru
switchtype=euroisdn
pridialplan=unknown
prilocaldialplan=unknown
resetinterval = 100000000
facilityenable = yes
signalling=pri_cpe
rxwink=300
callwaiting=yes
usecallingpres=yes
usecallerid=yes
cidsignalling=bell
cidstart=ring
hidecallerid=no
sendcalleridafter=1
callwaitingcallerid=yes
callerid = asreceived
restrictcid = no
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
echotraining=800
relaxdtmf=no
rxgain=8.2
txgain=3.0
group=1
context=from_pbx
immediate=no
channel=>1-15
mohsuggest=default
group=2
context=from_pbx
immediate=no
channel=>1-15
mohsuggest=default
при попытке в * сделать
dahdi restart
module load chan_dahdi
== Parsing '/etc/asterisk/chan_dahdi.conf': == Found
== Parsing '/etc/asterisk/users.conf': == Found
[Apr 2 19:17:15] ERROR[4080]: chan_dahdi.c:16563 process_dahdi: Unknown signalling method 'pri_cpe' at line 10.
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 1: Red Alarm
-- Registered channel 1, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 2: Red Alarm
-- Registered channel 2, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 3: Red Alarm
-- Registered channel 3, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 4: Red Alarm
-- Registered channel 4, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 5: Red Alarm
-- Registered channel 5, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 6: Red Alarm
-- Registered channel 6, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 7: Red Alarm
-- Registered channel 7, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 8: Red Alarm
-- Registered channel 8, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 9: Red Alarm
-- Registered channel 9, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 10: Red Alarm
-- Registered channel 10, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 11: Red Alarm
-- Registered channel 11, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 12: Red Alarm
-- Registered channel 12, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 13: Red Alarm
-- Registered channel 13, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 14: Red Alarm
-- Registered channel 14, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 15: Red Alarm
-- Registered channel 15, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 1: Red Alarm
-- Registered channel 1, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 2: Red Alarm
-- Registered channel 2, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 3: Red Alarm
-- Registered channel 3, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 4: Red Alarm
-- Registered channel 4, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 5: Red Alarm
-- Registered channel 5, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 6: Red Alarm
-- Registered channel 6, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 7: Red Alarm
-- Registered channel 7, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 8: Red Alarm
-- Registered channel 8, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 9: Red Alarm
-- Registered channel 9, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 10: Red Alarm
-- Registered channel 10, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 11: Red Alarm
-- Registered channel 11, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 12: Red Alarm
-- Registered channel 12, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 13: Red Alarm
-- Registered channel 13, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 14: Red Alarm
-- Registered channel 14, ISDN PRI signalling
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:5692 handle_alarms: Detected alarm on channel 15: Red Alarm
-- Registered channel 15, ISDN PRI signalling
-- Automatically generated pseudo channel
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:17050 process_dahdi: Ignoring any changes to 'userbase' (on reload) at line 23.
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:17050 process_dahdi: Ignoring any changes to 'vmsecret' (on reload) at line 31.
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:17050 process_dahdi: Ignoring any changes to 'hassip' (on reload) at line 35.
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:17050 process_dahdi: Ignoring any changes to 'hasiax' (on reload) at line 39.
[Apr 2 19:17:15] WARNING[4080]: chan_dahdi.c:17050 process_dahdi: Ignoring any changes to 'hasmanager' (on reload) at line 47.
== Registered channel type 'DAHDI' (DAHDI Telephony Driver)
== Manager registered action DAHDITransfer
== Manager registered action DAHDIHangup
== Manager registered action DAHDIDialOffhook
== Manager registered action DAHDIDNDon
== Manager registered action DAHDIDNDoff
== Manager registered action DAHDIShowChannels
== Manager registered action DAHDIRestart
Loaded chan_dahdi.so => (DAHDI Telephony Driver)
может быть такое из-за того, что провайдер на своей стороне что-то не включил ?
|
Сообщений: 6521
|
Re: Прошу помощи с настройкой TE220
Да нет, не провайдер.
span=1,0,0,ccs,hdb3,crc4 (не факт, что с crc4, может и без отдают)
и
span=2,0,0,ccs,hdb3,crc4
Посмотрите dmesg без загруженного Астериска после применения этих параметров, ну и dahdi_tool должен показать ОК (и статус порта зелёный) если на потоке есть синхронизация. Без Астериска.
Пока не добъётесь порядка на layer 1, нет смысла запускать Астериск и кидаться логами.
почему дважды объявлены каналы
channel=>1-15 ??
ещё ничего не заработало, а громкость уже накручена -
rxgain=8.2
txgain=3.0
Кто это рекомендовал?
|
Сообщений: 30
|
Re: Прошу помощи с настройкой TE220
в system.conf убрал crc4
...
span=1,1,0,ccs,hdb3
...
span=2,2,0,ccs,hdb3
...
в chan_dahdi.conf
...
group=1
context=from_pbx
immediate=no
channel=>1-15,17-31
mohsuggest=default
group=2
context=from_pbx
immediate=no
channel=>32-46,48-62
mohsuggest=default
dmesg
dahdi: Telephony Interface Registered on major 196
dahdi: Version: 2.2.1.1
ACPI: PCI Interrupt 0000:05:08.0[A] -> GSI 17 (level, low) -> IRQ 177
Found TE2XXP at base address b8900000, remapped to f8972000
TE2XXP version c01a016c, burst ON
Octasic optimized!
card 0: FALC framer is v2.1 or earlier.
FALC version: 00000005, Board ID: 00
Reg 0: 0x32915400
Reg 1: 0x32915000
Reg 2: 0x00000000
Reg 3: 0x00000000
Reg 4: 0x00003101
Reg 5: 0x00000000
Reg 6: 0xc01a016c
Reg 7: 0x00001300
Reg 8: 0x00000000
Reg 9: 0x00ff0031
Reg 10: 0x0000004a
Found a Wildcard: Wildcard TE220 (4th Gen)
TE2XXP: Launching card: 0
TE2XXP: Setting up global serial parameters
dahdi_transcode: Loaded.
About to enter spanconfig!
Done with spanconfig!
About to enter spanconfig!
Done with spanconfig!
dahdi_echocan_mg2: Registered echo canceler 'MG2'
dahdi: Registered tone zone 0 (United States / North America)
About to enter startup!
TE2XXP: Span 1 configured for CCS/HDB3
wct4xxp 0000:05:08.0: timing source auto
wct4xxp 0000:05:08.0: Evaluating spans for timing source
wct4xxp 0000:05:08.0: span 1 is green : syncpos 1
wct4xxp 0000:05:08.0: RCLK source set to span 1
wct4xxp 0000:05:08.0: Recovered timing mode, RCLK set to span 1
SPAN 1: Primary Sync Source
VPM400: Not Present
VPM450: echo cancellation for 64 channels
eth0: no IPv6 routers present
VPM450: hardware DTMF disabled.
VPM450: Present and operational servicing 2 span(s)
Completed startup!
About to enter startup!
TE2XXP: Span 2 configured for CCS/HDB3
wct4xxp 0000:05:08.0: timing source auto
wct4xxp 0000:05:08.0: Evaluating spans for timing source
wct4xxp 0000:05:08.0: span 1 is green : syncpos 1
wct4xxp 0000:05:08.0: span 2 is green : syncpos 2
wct4xxp 0000:05:08.0: RCLK source set to span 1
wct4xxp 0000:05:08.0: Recovered timing mode, RCLK set to span 1
SPAN 2: Secondary Sync Source
Completed startup!
eth1: no IPv6 routers present
wct4xxp 0000:05:08.0: Setting yellow alarm span 1
dahdi: Master changed to TE2/0/2
wct4xxp 0000:05:08.0: timing source auto
wct4xxp 0000:05:08.0: Evaluating spans for timing source
wct4xxp 0000:05:08.0: span 2 is green : syncpos 2
wct4xxp 0000:05:08.0: RCLK source set to span 2
wct4xxp 0000:05:08.0: Recovered timing mode, RCLK set to span 2
wct4xxp 0000:05:08.0: Setting yellow alarm span 2
wct4xxp 0000:05:08.0: timing source auto
wct4xxp 0000:05:08.0: Evaluating spans for timing source
wct4xxp 0000:05:08.0: All spans in alarm : No validspan to source RCLK from
wct4xxp 0000:05:08.0: RCLK source set to span 1
|
Сообщений: 6521
|
Re: Прошу помощи с настройкой TE220
Второй раз пишу
span=1,0,0,ccs,hdb3
...
span=2,0,0,ccs,hdb3
Это первый раз - но важно тоже:
loadzone = ru
defaultzone = ru
Первый раз написал dahdi_tool должен показать ОК (и статус порта зелёный)
Второй раз спрошу - какой статус порта?
Третьего раза не будет.
|
Сообщений: 30
|
Re: Прошу помощи с настройкой TE220
прошу прощения за невнимательность с конфигами. конфиги исправил. ребутнул - логи без изменений за исключением языка
T2XXP (PCI) Card 0 Span 1
Current Alarms: Blue Alarm/Red Alarm
Sync Source: Internally clocked
IRQ Misses: 0
Bipolar Viol: 0
Tx/Rx Levels: 0/ 0
Total/Conf/Act: 31/ 31/ 0
1111111111222222222233
1234567890123456789012345678901
T2XXP (PCI) Card 0 Span 2
Current Alarms: Red Alarm
Sync Source: Internally clocked
IRQ Misses: 0
Bipolar Viol: 0
Tx/Rx Levels: 0/ 0
Total/Conf/Act: 31/ 31/ 0
1111111111222222222233
1234567890123456789012345678901
|
Сообщений: 6521
|
Re: Прошу помощи с настройкой TE220
Проверяйте расшивку TX/RX на патч корде Е1 на Span 1 (первый порт).
(Вас ведь Александр зовут?)
|
Сообщений: 30
|
Re: Прошу помощи с настройкой TE220
ded: Проверяйте расшивку TX/RX на патч корде Е1 на Span 1 (первый порт).
(Вас ведь Александр зовут?)
Ок. Спасибо
Алексей
|
Сообщений: 30
|
Re: Прошу помощи с настройкой TE220
кстати на матери гигабитный Ethernet адаптер e1000. может тут еще собака порылась ?
|
Сообщений: 6521
|
Re: Прошу помощи с настройкой TE220
А Вы потоковый патчкорд Е1 вставляете в гигабитный Ethernet адаптер e1000?
Если бы были аппаратные проблемы - это было бы видно в dmesg
Сделайте
cat /proc/interrupts
|
Сообщений: 30
|
Re: Прошу помощи с настройкой TE220
ded:
А Вы потоковый патчкорд Е1 вставляете в гигабитный Ethernet адаптер e1000?
говорят, что в Digium воткнули :) в понедельник проверю на всякий случай..
CPU0
0: 902443570 XT-PIC timer
1: 1761 XT-PIC i8042
2: 0 XT-PIC cascade
6: 5 XT-PIC floppy
8: 1 XT-PIC rtc
9: 3161469978 XT-PIC uhci_hcd:usb4, pata_marvell, eth1
10: 2763900180 XT-PIC ehci_hcd:usb1, ehci_hcd:usb2, uhci_hcd:usb5, uhci_hcd:usb7, eth0
11: 264 XT-PIC uhci_hcd:usb3, uhci_hcd:usb6, HDA Intel
12: 263 XT-PIC i8042
105: 73625655 PCI-MSI ahci
NMI: 0
LOC: 841462105
ERR: 1595
MIS: 0
|
|