Проблема старая и избитая, тем не менее, перечитав и перепробовав все рекомендации на форумах положительного результата не добился.
Поэтому господа, взываю к помощи, может у кого получилось.
ПО следующее: OS Ubuntu Server 12.04 LTS, Asterisk 11.4.0
Железо: Digium TE133 PCIe (E1 поток)
Изначально всё работало по SIP протоколу. Сейчас захотели перейти на другого провайдера, используя E1 поток.
Поставил всё по мануалу: libpri, настроил DAHDI.
Обжал кабель для E1: 12 -> 12, 45 -> 45. Работает только с прямым, с кроссом не поднимается.
Параметры по синхронизации и таймингам уточнял у провайдера: синхра от них, используют crc4
/etc/dahdi/system.conf
Код: Выделить всё
span=1,1,0,CCS,HDB3,CRC4
bchan=1-15,17-31
dchan=16
loadzone=ru
defaultzone=ru
Код: Выделить всё
[2014-01-28 09:59:38] VERBOSE[1322] sig_pri.c: == Primary D-Channel on span 1 up
[2014-01-28 09:59:52] VERBOSE[1322][color=#FF0000] chan_dahdi.c: PRI Span: 1 TEI=0 MDL-ERROR (I): T200 expired N200 times sending RR/RNR in state 8(Timer recovery)[/color]
[2014-01-28 09:59:52] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending SABME
[2014-01-28 09:59:52] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 Changing from state 8(Timer recovery) to 5(Awaiting establishment)
[2014-01-28 09:59:52] VERBOSE[1322] sig_pri.c: Span 1: Processing event PRI_EVENT_DCHAN_DOWN(2)
[2014-01-28 09:59:52] VERBOSE[1322] [color=#FF8000]sig_pri.c: == Primary D-Channel on span 1 down[/color]
[2014-01-28 09:59:52] WARNING[1322] [color=#FF8000]sig_pri.c: Span 1: D-channel is down![/color]
[2014-01-28 09:59:52] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Got SABME from network peer.
[2014-01-28 09:59:52] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending UA
[2014-01-28 09:59:53] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending SABME
[2014-01-28 09:59:53] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Got SABME from network peer.
[2014-01-28 09:59:53] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending UA
[2014-01-28 09:59:54] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending SABME
[2014-01-28 09:59:54] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Got SABME from network peer.
[2014-01-28 09:59:54] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending UA
[2014-01-28 09:59:55] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending SABME
[2014-01-28 09:59:56] VERBOSE[1322] [color=#FF0000]chan_dahdi.c: PRI Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)[/color]
[2014-01-28 09:59:56] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 Changing from state 5(Awaiting establishment) to 4(TEI assigned)
[2014-01-28 09:59:56] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)
[2014-01-28 09:59:57] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 SAPI/TEI=0/0 Kick starting link
[2014-01-28 09:59:57] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending SABME
[2014-01-28 09:59:57] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
[2014-01-28 09:59:57] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Got UA
[2014-01-28 09:59:57] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 Changing from state 5(Awaiting establishment) to 7(Multi-frame established)
[2014-01-28 09:59:57] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_ESTABLISH_CONFIRM(2)
[2014-01-28 09:59:57] VERBOSE[1322] sig_pri.c: Span 1: Processing event PRI_EVENT_DCHAN_UP(1)
[2014-01-28 09:59:57] VERBOSE[1322] sig_pri.c: == Primary D-Channel on span 1 up
[2014-01-28 10:00:11] VERBOSE[1322] [color=#FF8000]chan_dahdi.c: PRI Span: 1 TEI=0 MDL-ERROR (I): T200 expired N200 times sending RR/RNR in state 8(Timer recovery)[/color]
[2014-01-28 10:00:11] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending SABME
[2014-01-28 10:00:11] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 Changing from state 8(Timer recovery) to 5(Awaiting establishment)
[2014-01-28 10:00:11] VERBOSE[1322] sig_pri.c: Span 1: Processing event PRI_EVENT_DCHAN_DOWN(2)
[2014-01-28 10:00:11] VERBOSE[1322] sig_pri.c: == Primary D-Channel on span 1 down
[2014-01-28 10:00:11] WARNING[1322] sig_pri.c: Span 1: D-channel is down!
[2014-01-28 10:00:11] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Got UA
[2014-01-28 10:00:11] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 Changing from state 5(Awaiting establishment) to 7(Multi-frame established)
[2014-01-28 10:00:11] VERBOSE[1322] sig_pri.c: Span 1: Processing event PRI_EVENT_DCHAN_UP(1)
[2014-01-28 10:00:11] VERBOSE[1322] sig_pri.c: == Primary D-Channel on span 1 up
[2014-01-28 10:00:25] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 MDL-ERROR (I): T200 expired N200 times sending RR/RNR in state 8(Timer recovery)
[2014-01-28 10:00:25] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending SABME
[2014-01-28 10:00:25] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 Changing from state 8(Timer recovery) to 5(Awaiting establishment)
[2014-01-28 10:00:25] VERBOSE[1322] sig_pri.c: Span 1: Processing event PRI_EVENT_DCHAN_DOWN(2)
[2014-01-28 10:00:25] VERBOSE[1322] [color=#FF8000]sig_pri.c: == Primary D-Channel on span 1 down[/color]
[2014-01-28 10:00:25] WARNING[1322] [color=#FF8000]sig_pri.c: Span 1: D-channel is down![/color]
[2014-01-28 10:00:26] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending SABME
[2014-01-28 10:00:27] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending SABME
[2014-01-28 10:00:28] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending SABME
[2014-01-28 10:00:29] VERBOSE[1322] [color=#FF0000]chan_dahdi.c: PRI Span: 1 TEI=0 MDL-ERROR (G): T200 expired N200 times sending SABME in state 5(Awaiting establishment)[/color]
[2014-01-28 10:00:29] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 Changing from state 5(Awaiting establishment) to 4(TEI assigned)
[2014-01-28 10:00:29] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_RELEASE_IND(3)
[2014-01-28 10:00:30] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 SAPI/TEI=0/0 Kick starting link
[2014-01-28 10:00:30] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Sending SABME
[2014-01-28 10:00:30] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 Changing from state 4(TEI assigned) to 5(Awaiting establishment)
[2014-01-28 10:00:30] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 Got UA
[2014-01-28 10:00:30] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 Changing from state 5(Awaiting establishment) to 7(Multi-frame established)
[2014-01-28 10:00:30] VERBOSE[1322] chan_dahdi.c: PRI Span: 1 TEI=0 DL event: Q931_DL_EVENT_DL_ESTABLISH_CONFIRM(2)
[2014-01-28 10:00:30] VERBOSE[1322] sig_pri.c: Span 1: Processing event PRI_EVENT_DCHAN_UP(1)
[2014-01-28 10:00:30] VERBOSE[1322] [color=#FF8000]sig_pri.c: == Primary D-Channel on span 1 up[/color]
Так как железка сейчас висит на одном прерывании с USB:
cat /proc/interrupts
Код: Выделить всё
CPU0 CPU1 CPU2 CPU3
0: 235 0 0 0 IR-IO-APIC-edge timer
8: 1 0 0 0 IR-IO-APIC-edge rtc0
9: 0 0 0 0 IR-IO-APIC-fasteoi acpi
16: 56192200 0 0 0 IR-IO-APIC-fasteoi ehci_hcd:usb1, wcte13xp0
23: 142 0 0 0 IR-IO-APIC-fasteoi ehci_hcd:usb2
40: 0 0 0 0 DMAR_MSI-edge dmar0
43: 5664 153987 0 0 IR-PCI-MSI-edge ahci
44: 2496078 0 0 0 IR-PCI-MSI-edge eth0-rx-0
45: 1600111 0 0 0 IR-PCI-MSI-edge eth0-tx-0
46: 3 0 0 0 IR-PCI-MSI-edge eth0
NMI: 1760 106 104 122 Non-maskable interrupts
LOC: 2985930 2232919 2671416 3559712 Local timer interrupts
SPU: 0 0 0 0 Spurious interrupts
PMI: 1760 106 104 122 Performance monitoring interrupts
IWI: 0 0 0 0 IRQ work interrupts
RES: 60615 133633 83982 61356 Rescheduling interrupts
CAL: 167 194 156 169 Function call interrupts
TLB: 2846 2970 2307 3266 TLB shootdowns
TRM: 0 0 0 0 Thermal event interrupts
THR: 0 0 0 0 Threshold APIC interrupts
MCE: 0 0 0 0 Machine check exceptions
MCP: 189 189 189 189 Machine check polls
ERR: 0
MIS: 0