Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

спросил 2012-10-06 20:44:40 +0400

Sergey Melnik Gravatar Sergey Melnik flag of Russian Federation

Fax через DAHDI, Asterisk. "Unexpected message received"

Всем привет.

Настраиваю факсы в филиалах. Используется чистый Asterisk и немного скриптов для приёма/пересылки факсов на почту.В данный момент на сервере A всё работает стабильно, факсы уходят и приходят, что через SIP, что через DAHDI. На сервере Б работает приём факсов по SIP, но через DAHDI - завершается с ошибкой "Unexpected message received".

В серверах установлены платы Digium TE420, связь осуществляется через внешнего оператора.

При этом известно, что аналоговый факс подключенный к станции принимает факсы через оба типа соединения.

Faxdetect отключен, эхоподавление тоже. На слух всё звучит "как-надо".

Помогите, что ещё настроить, что проверить?

Fax через DAHDI, Asterisk. "Unexpected message received"

Всем привет.

Настраиваю факсы в филиалах. Используется чистый Asterisk и немного скриптов для приёма/пересылки факсов на почту.В данный момент на сервере A всё работает стабильно, факсы уходят и приходят, что через SIP, что через DAHDI. На сервере Б работает приём факсов по SIP, но через DAHDI - завершается с ошибкой "Unexpected message received".

В серверах установлены платы Digium TE420, связь осуществляется через внешнего оператора.

При этом известно, что аналоговый факс подключенный к станции принимает факсы через оба типа соединения.

Faxdetect отключен, эхоподавление тоже. На слух всё звучит "как-надо".

Помогите, что ещё настроить, что проверить?

 -- Executing [2222222@pstn:1] Set("DAHDI/i3/4951111111-42f6", "fname=calls/2012/10/06/2012100620%") in new stack
-- Executing [2222222@pstn:2] MixMonitor("DAHDI/i3/4951111111-42f6", "/rec/calls/2012/10/06/2012100620%.wav") in new stack
-- Executing [2222222@pstn:3] Goto("DAHDI/i3/4951111111-42f6", "call-fax,666,1") in new stack
== Begin MixMonitor Recording DAHDI/i3/4951111111-42f6
-- Goto (call-fax,666,1)
-- Executing [666@call-fax:1] Set("DAHDI/i3/4951111111-42f6", "INIT_EXTEN=666") in new stack
-- Executing [666@call-fax:2] Goto("DAHDI/i3/4951111111-42f6", "fax,s,1") in new stack
-- Goto (fax,s,1)
-- Executing [s@fax:1] Answer("DAHDI/i3/4951111111-42f6", "") in new stack
-- Executing [s@fax:2] Macro("DAHDI/i3/4951111111-42f6", "recvfax") in new stack
-- Executing [s@macro-recvfax:1] Set("DAHDI/i3/4951111111-42f6", "FAXFILE=/var/spool/asterisk/fax/2012101155-4951111111-666") in new stack
-- Executing [s@macro-recvfax:2] ReceiveFAX("DAHDI/i3/4951111111-42f6", "/var/spool/asterisk/fax/2012101155-4951111111-666.tif,f") in new stack
-- Channel 'DAHDI/i3/4951111111-42f6' receiving FAX '/var/spool/asterisk/fax/2012101155-4951111111-666.tif'
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.118845 ], channel sent 9 frames (180 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.220027 ], stack sent 10 frames (200 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.638940 ], channel sent 26 frames (520 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 002.820078 ], stack sent 130 frames (2600 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 002.880025 ], stack sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 004.960025 ], stack sent 104 frames (2080 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 005.099760 ], channel sent 223 frames (4460 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 007.020115 ], channel sent 96 frames (1920 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 007.080125 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 010.000663 ], channel sent 146 frames (2920 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 010.080026 ], stack sent 256 frames (5120 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 011.200026 ], stack sent 56 frames (1120 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 011.340909 ], channel sent 67 frames (1340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 013.281266 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 013.341278 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 016.261815 ], channel sent 146 frames (2920 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 016.360026 ], stack sent 258 frames (5160 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 017.460025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 017.602061 ], channel sent 67 frames (1340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 019.542417 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 019.602429 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 022.522967 ], channel sent 146 frames (2920 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 022.620026 ], stack sent 258 frames (5160 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 023.720025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 023.863213 ], channel sent 67 frames (1340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 025.803571 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 025.883586 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 027.663913 ], channel sent 89 frames (1780 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 027.740026 ], stack sent 201 frames (4020 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 028.860025 ], stack sent 56 frames (1120 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 029.024164 ], channel sent 68 frames (1360 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 030.964521 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 031.024532 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 033.965072 ], channel sent 147 frames (2940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 034.040026 ], stack sent 259 frames (5180 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 035.140025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 035.465349 ], channel sent 75 frames (1500 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 037.405705 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 037.465717 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 040.406257 ], channel sent 147 frames (2940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 040.480026 ], stack sent 267 frames (5340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 041.600025 ], stack sent 56 frames (1120 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 041.766508 ], channel sent 68 frames (1360 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 043.706865 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 043.786880 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 045.547204 ], channel sent 88 frames (1760 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 045.640026 ], stack sent 202 frames (4040 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 046.740025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 047.067483 ], channel sent 76 frames (1520 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 049.007840 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 049.087855 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 050.848179 ], channel sent 88 frames (1760 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 050.940026 ], stack sent 210 frames (4200 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 052.040025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 052.348455 ], channel sent 75 frames (1500 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 054.288812 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 054.368827 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 056.149154 ], channel sent 89 frames (1780 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 056.220026 ], stack sent 209 frames (4180 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 057.340025 ], stack sent 56 frames (1120 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 057.489400 ], channel sent 67 frames (1340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 059.449763 ], channel sent 98 frames (1960 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 059.529777 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 061.790191 ], channel sent 113 frames (2260 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 061.860026 ], stack sent 226 frames (4520 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 062.960025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 063.090431 ], channel sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 065.030788 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 065.130806 ], channel sent 5 frames (100 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 067.631266 ], channel sent 125 frames (2500 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 067.700026 ], stack sent 237 frames (4740 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 068.800025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 068.931506 ], channel sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 070.031708 ], channel sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 070.100025 ], stack sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 071.171918 ], channel sent 57 frames (1140 ms) of silence.
-- Span 3: Channel 0/26 got hangup request, cause 16
== Spawn extension (macro-recvfax, s, 2) exited non-zero on 'DAHDI/i3/4951111111-42f6' in macro 'recvfax'
== Spawn extension (fax, s, 2) exited non-zero on 'DAHDI/i3/4951111111-42f6'
-- Executing [h@fax:1] System("DAHDI/i3/4951111111-42f6", "/usr/bin/fax2mail --cid-number "4951111111"  --dest-exten "666"   -f "/var/spool/asterisk/fax/2012101155-4951111111-666"") in new stack
-- Executing [h@fax:2] NoOp("DAHDI/i3/4951111111-42f6", "Unexpected message received") in new stack
-- Hungup 'DAHDI/i3/4951111111-42f6'
== MixMonitor close filestream (mixed)
== End MixMonitor Recording DAHDI/i3/4951111111-42f6

Fax через DAHDI, Asterisk. "Unexpected message received"

Всем привет.

Настраиваю факсы в филиалах. Используется чистый Asterisk и немного скриптов для приёма/пересылки факсов на почту.В данный момент на сервере A всё работает стабильно, факсы уходят и приходят, что через SIP, что через DAHDI. На сервере Б работает приём факсов по SIP, но через DAHDI - завершается с ошибкой "Unexpected message received".

В серверах установлены платы Digium TE420, связь осуществляется через внешнего оператора.

При этом известно, что аналоговый факс подключенный к станции принимает факсы через оба типа соединения.

Faxdetect отключен, эхоподавление тоже. Минимальную скорость выставлял. На слух всё звучит "как-надо".

Помогите, что ещё настроить, что проверить?

Лог приёма:

 -- Executing [2222222@pstn:1] Set("DAHDI/i3/4951111111-42f6", "fname=calls/2012/10/06/2012100620%") in new stack
-- Executing [2222222@pstn:2] MixMonitor("DAHDI/i3/4951111111-42f6", "/rec/calls/2012/10/06/2012100620%.wav") in new stack
-- Executing [2222222@pstn:3] Goto("DAHDI/i3/4951111111-42f6", "call-fax,666,1") in new stack
== Begin MixMonitor Recording DAHDI/i3/4951111111-42f6
-- Goto (call-fax,666,1)
-- Executing [666@call-fax:1] Set("DAHDI/i3/4951111111-42f6", "INIT_EXTEN=666") in new stack
-- Executing [666@call-fax:2] Goto("DAHDI/i3/4951111111-42f6", "fax,s,1") in new stack
-- Goto (fax,s,1)
-- Executing [s@fax:1] Answer("DAHDI/i3/4951111111-42f6", "") in new stack
-- Executing [s@fax:2] Macro("DAHDI/i3/4951111111-42f6", "recvfax") in new stack
-- Executing [s@macro-recvfax:1] Set("DAHDI/i3/4951111111-42f6", "FAXFILE=/var/spool/asterisk/fax/2012101155-4951111111-666") in new stack
-- Executing [s@macro-recvfax:2] ReceiveFAX("DAHDI/i3/4951111111-42f6", "/var/spool/asterisk/fax/2012101155-4951111111-666.tif,f") in new stack
-- Channel 'DAHDI/i3/4951111111-42f6' receiving FAX '/var/spool/asterisk/fax/2012101155-4951111111-666.tif'
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.118845 ], channel sent 9 frames (180 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.220027 ], stack sent 10 frames (200 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.638940 ], channel sent 26 frames (520 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 002.820078 ], stack sent 130 frames (2600 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 002.880025 ], stack sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 004.960025 ], stack sent 104 frames (2080 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 005.099760 ], channel sent 223 frames (4460 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 007.020115 ], channel sent 96 frames (1920 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 007.080125 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 010.000663 ], channel sent 146 frames (2920 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 010.080026 ], stack sent 256 frames (5120 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 011.200026 ], stack sent 56 frames (1120 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 011.340909 ], channel sent 67 frames (1340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 013.281266 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 013.341278 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 016.261815 ], channel sent 146 frames (2920 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 016.360026 ], stack sent 258 frames (5160 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 017.460025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 017.602061 ], channel sent 67 frames (1340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 019.542417 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 019.602429 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 022.522967 ], channel sent 146 frames (2920 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 022.620026 ], stack sent 258 frames (5160 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 023.720025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 023.863213 ], channel sent 67 frames (1340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 025.803571 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 025.883586 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 027.663913 ], channel sent 89 frames (1780 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 027.740026 ], stack sent 201 frames (4020 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 028.860025 ], stack sent 56 frames (1120 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 029.024164 ], channel sent 68 frames (1360 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 030.964521 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 031.024532 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 033.965072 ], channel sent 147 frames (2940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 034.040026 ], stack sent 259 frames (5180 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 035.140025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 035.465349 ], channel sent 75 frames (1500 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 037.405705 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 037.465717 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 040.406257 ], channel sent 147 frames (2940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 040.480026 ], stack sent 267 frames (5340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 041.600025 ], stack sent 56 frames (1120 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 041.766508 ], channel sent 68 frames (1360 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 043.706865 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 043.786880 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 045.547204 ], channel sent 88 frames (1760 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 045.640026 ], stack sent 202 frames (4040 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 046.740025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 047.067483 ], channel sent 76 frames (1520 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 049.007840 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 049.087855 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 050.848179 ], channel sent 88 frames (1760 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 050.940026 ], stack sent 210 frames (4200 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 052.040025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 052.348455 ], channel sent 75 frames (1500 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 054.288812 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 054.368827 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 056.149154 ], channel sent 89 frames (1780 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 056.220026 ], stack sent 209 frames (4180 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 057.340025 ], stack sent 56 frames (1120 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 057.489400 ], channel sent 67 frames (1340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 059.449763 ], channel sent 98 frames (1960 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 059.529777 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 061.790191 ], channel sent 113 frames (2260 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 061.860026 ], stack sent 226 frames (4520 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 062.960025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 063.090431 ], channel sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 065.030788 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 065.130806 ], channel sent 5 frames (100 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 067.631266 ], channel sent 125 frames (2500 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 067.700026 ], stack sent 237 frames (4740 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 068.800025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 068.931506 ], channel sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 070.031708 ], channel sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 070.100025 ], stack sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 071.171918 ], channel sent 57 frames (1140 ms) of silence.
-- Span 3: Channel 0/26 got hangup request, cause 16
== Spawn extension (macro-recvfax, s, 2) exited non-zero on 'DAHDI/i3/4951111111-42f6' in macro 'recvfax'
== Spawn extension (fax, s, 2) exited non-zero on 'DAHDI/i3/4951111111-42f6'
-- Executing [h@fax:1] System("DAHDI/i3/4951111111-42f6", "/usr/bin/fax2mail --cid-number "4951111111"  --dest-exten "666"   -f "/var/spool/asterisk/fax/2012101155-4951111111-666"") in new stack
-- Executing [h@fax:2] NoOp("DAHDI/i3/4951111111-42f6", "Unexpected message received") in new stack
-- Hungup 'DAHDI/i3/4951111111-42f6'
== MixMonitor close filestream (mixed)
== End MixMonitor Recording DAHDI/i3/4951111111-42f6

Fax через DAHDI, Asterisk. "Unexpected message received"

Всем привет.

Настраиваю факсы в филиалах. Используется чистый Asterisk и немного скриптов для приёма/пересылки факсов на почту.В данный момент на сервере A всё работает стабильно, факсы уходят и приходят, что через SIP, что через DAHDI. На сервере Б работает приём факсов по SIP, но через DAHDI - завершается с ошибкой "Unexpected message received".

В серверах установлены платы Digium TE420, связь осуществляется через внешнего оператора.

При этом известно, что аналоговый факс подключенный к станции принимает факсы через оба типа соединения.

Faxdetect отключен, эхоподавление тоже. Минимальную скорость выставлял. На слух всё звучит "как-надо".

Помогите, что ещё настроить, что проверить?

Лог приёма:

-- Executing [2222222@pstn:1] Set("DAHDI/i3/4951111111-42f6", "fname=calls/2012/10/06/2012100620%") in new stack
-- Executing [2222222@pstn:2] MixMonitor("DAHDI/i3/4951111111-42f6", "/rec/calls/2012/10/06/2012100620%.wav") in new stack
-- Executing [2222222@pstn:3] Goto("DAHDI/i3/4951111111-42f6", "call-fax,666,1") in new stack
== Begin MixMonitor Recording DAHDI/i3/4951111111-42f6
-- Goto (call-fax,666,1)
-- Executing [666@call-fax:1] Set("DAHDI/i3/4951111111-42f6", "INIT_EXTEN=666") in new stack
-- Executing [666@call-fax:2] Goto("DAHDI/i3/4951111111-42f6", "fax,s,1") in new stack
-- Goto (fax,s,1)
-- Executing [s@fax:1] Answer("DAHDI/i3/4951111111-42f6", "") in new stack
-- Executing [s@fax:2] Macro("DAHDI/i3/4951111111-42f6", "recvfax") in new stack
-- Executing [s@macro-recvfax:1] Set("DAHDI/i3/4951111111-42f6", "FAXFILE=/var/spool/asterisk/fax/2012101155-4951111111-666") in new stack
-- Executing [s@macro-recvfax:2] ReceiveFAX("DAHDI/i3/4951111111-42f6", "/var/spool/asterisk/fax/2012101155-4951111111-666.tif,f") in new stack
-- Channel 'DAHDI/i3/4951111111-42f6' receiving FAX '/var/spool/asterisk/fax/2012101155-4951111111-666.tif'
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.118845 ], channel sent 9 frames (180 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.220027 ], stack sent 10 frames (200 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.638940 ], channel sent 26 frames (520 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 002.820078 ], stack sent 130 frames (2600 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 002.880025 ], stack sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 004.960025 ], stack sent 104 frames (2080 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 005.099760 ], channel sent 223 frames (4460 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 007.020115 ], channel sent 96 frames (1920 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 007.080125 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 010.000663 ], channel sent 146 frames (2920 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 010.080026 ], stack sent 256 frames (5120 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 011.200026 ], stack sent 56 frames (1120 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 011.340909 ], channel sent 67 frames (1340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 013.281266 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 013.341278 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 016.261815 ], channel sent 146 frames (2920 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 016.360026 ], stack sent 258 frames (5160 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 017.460025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 017.602061 ], channel sent 67 frames (1340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 019.542417 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 019.602429 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 022.522967 ], channel sent 146 frames (2920 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 022.620026 ], stack sent 258 frames (5160 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 023.720025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 023.863213 ], channel sent 67 frames (1340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 025.803571 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 025.883586 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 027.663913 ], channel sent 89 frames (1780 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 027.740026 ], stack sent 201 frames (4020 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 028.860025 ], stack sent 56 frames (1120 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 029.024164 ], channel sent 68 frames (1360 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 030.964521 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 031.024532 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 033.965072 ], channel sent 147 frames (2940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 034.040026 ], stack sent 259 frames (5180 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 035.140025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 035.465349 ], channel sent 75 frames (1500 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 037.405705 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 037.465717 ], channel sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 040.406257 ], channel sent 147 frames (2940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 040.480026 ], stack sent 267 frames (5340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 041.600025 ], stack sent 56 frames (1120 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 041.766508 ], channel sent 68 frames (1360 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 043.706865 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 043.786880 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 045.547204 ], channel sent 88 frames (1760 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 045.640026 ], stack sent 202 frames (4040 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 046.740025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 047.067483 ], channel sent 76 frames (1520 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 049.007840 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 049.087855 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 050.848179 ], channel sent 88 frames (1760 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 050.940026 ], stack sent 210 frames (4200 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 052.040025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 052.348455 ], channel sent 75 frames (1500 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 054.288812 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 054.368827 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 056.149154 ], channel sent 89 frames (1780 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 056.220026 ], stack sent 209 frames (4180 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 057.340025 ], stack sent 56 frames (1120 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 057.489400 ], channel sent 67 frames (1340 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 059.449763 ], channel sent 98 frames (1960 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 059.529777 ], channel sent 4 frames (80 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 061.790191 ], channel sent 113 frames (2260 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 061.860026 ], stack sent 226 frames (4520 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 062.960025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 063.090431 ], channel sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 065.030788 ], channel sent 97 frames (1940 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 065.130806 ], channel sent 5 frames (100 ms) of silence.

...skip...

   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 067.631266 ], channel sent 125 frames (2500 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 067.700026 ], stack sent 237 frames (4740 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 068.800025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 068.931506 ], channel sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 070.031708 ], channel sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 070.100025 ], stack sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 071.171918 ], channel sent 57 frames (1140 ms) of silence.
-- Span 3: Channel 0/26 got hangup request, cause 16
== Spawn extension (macro-recvfax, s, 2) exited non-zero on 'DAHDI/i3/4951111111-42f6' in macro 'recvfax'
== Spawn extension (fax, s, 2) exited non-zero on 'DAHDI/i3/4951111111-42f6'
-- Executing [h@fax:1] System("DAHDI/i3/4951111111-42f6", "/usr/bin/fax2mail --cid-number "4951111111"  --dest-exten "666"   -f "/var/spool/asterisk/fax/2012101155-4951111111-666"") in new stack
-- Executing [h@fax:2] NoOp("DAHDI/i3/4951111111-42f6", "Unexpected message received") in new stack
-- Hungup 'DAHDI/i3/4951111111-42f6'
== MixMonitor close filestream (mixed)
== End MixMonitor Recording DAHDI/i3/4951111111-42f6

Fax через DAHDI, Asterisk. "Unexpected message received"

Всем привет.

Настраиваю факсы в филиалах. Используется чистый Asterisk и немного скриптов для приёма/пересылки факсов на почту.В данный момент на сервере A всё работает стабильно, факсы уходят и приходят, что через SIP, что через DAHDI. На сервере Б работает приём факсов по SIP, но через DAHDI - завершается с ошибкой "Unexpected message received".

В серверах установлены платы Digium TE420, связь осуществляется через внешнего оператора.

При этом известно, что аналоговый факс подключенный к станции принимает факсы через оба типа соединения.

Faxdetect отключен, эхоподавление тоже. Минимальную скорость выставлял. На слух всё звучит "как-надо".

Помогите, что ещё настроить, что проверить?

Лог приёма:

-- Executing [2222222@pstn:1] Set("DAHDI/i3/4951111111-42f6", "fname=calls/2012/10/06/2012100620%") in new stack
-- Executing [2222222@pstn:2] MixMonitor("DAHDI/i3/4951111111-42f6", "/rec/calls/2012/10/06/2012100620%.wav") in new stack
-- Executing [2222222@pstn:3] Goto("DAHDI/i3/4951111111-42f6", "call-fax,666,1") in new stack
== Begin MixMonitor Recording DAHDI/i3/4951111111-42f6
-- Goto (call-fax,666,1)
-- Executing [666@call-fax:1] Set("DAHDI/i3/4951111111-42f6", "INIT_EXTEN=666") in new stack
-- Executing [666@call-fax:2] Goto("DAHDI/i3/4951111111-42f6", "fax,s,1") in new stack
-- Goto (fax,s,1)
-- Executing [s@fax:1] Answer("DAHDI/i3/4951111111-42f6", "") in new stack
-- Executing [s@fax:2] Macro("DAHDI/i3/4951111111-42f6", "recvfax") in new stack
-- Executing [s@macro-recvfax:1] Set("DAHDI/i3/4951111111-42f6", "FAXFILE=/var/spool/asterisk/fax/2012101155-4951111111-666") in new stack
-- Executing [s@macro-recvfax:2] ReceiveFAX("DAHDI/i3/4951111111-42f6", "/var/spool/asterisk/fax/2012101155-4951111111-666.tif,f") in new stack
-- Channel 'DAHDI/i3/4951111111-42f6' receiving FAX '/var/spool/asterisk/fax/2012101155-4951111111-666.tif'
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.118845 ], channel sent 9 frames (180 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.220027 ], stack sent 10 frames (200 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.638940 ], channel sent 26 frames (520 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 002.820078 ], stack sent 130 frames (2600 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 002.880025 ], stack sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 004.960025 ], stack sent 104 frames (2080 ms) of energy.

...skip...

   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 067.631266 ], channel sent 125 frames (2500 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 067.700026 ], stack sent 237 frames (4740 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 068.800025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 068.931506 ], channel sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 070.031708 ], channel sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 070.100025 ], stack sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 071.171918 ], channel sent 57 frames (1140 ms) of silence.
-- Span 3: Channel 0/26 got hangup request, cause 16
== Spawn extension (macro-recvfax, s, 2) exited non-zero on 'DAHDI/i3/4951111111-42f6' in macro 'recvfax'
== Spawn extension (fax, s, 2) exited non-zero on 'DAHDI/i3/4951111111-42f6'
-- Executing [h@fax:1] System("DAHDI/i3/4951111111-42f6", "/usr/bin/fax2mail --cid-number "4951111111"  --dest-exten "666"   -f "/var/spool/asterisk/fax/2012101155-4951111111-666"") in new stack
-- Executing [h@fax:2] NoOp("DAHDI/i3/4951111111-42f6", "Unexpected message received") in new stack
-- Hungup 'DAHDI/i3/4951111111-42f6'
== MixMonitor close filestream (mixed)
== End MixMonitor Recording DAHDI/i3/4951111111-42f6

UPD

Dumping Info For Channel: DAHDI/i3/4951111111-42fa:
================================================================================
Info:
Name=               DAHDI/i3/4951111111-42fa
Type=               DAHDI
UniqueID=           1349545876.82934
LinkedID=           1349545876.82934
CallerIDNum=        4951111111
CallerIDName=       (N/A)
ConnectedLineIDNum= (N/A)
ConnectedLineIDName=(N/A)
DNIDDigits=         2222222
RDNIS=              (N/A)
Parkinglot=         
Language=           en
State=              Up (6)
Rings=              1
NativeFormat=       (alaw)
WriteFormat=        alaw
ReadFormat=         alaw
RawWriteFormat=     alaw
RawReadFormat=      alaw
WriteTranscode=     No 
ReadTranscode=      No 
1stFileDescriptor=  101
Framesin=           5896 
Framesout=          5892 
TimetoHangup=       0
ElapsedTime=        0h1m59s
DirectBridge=       <none>
IndirectBridge=     <none>
Context=            fax
Extension=          h
Priority=           3
CallGroup=          
PickupGroup=        
Application=        DumpChan
Data=               (Empty)
Blocking_in=        (Not Blocking)

Variables:
SYSTEMSTATUS=APPERROR
MACRO_DEPTH=0
FAXPAGES=0
FAXRESOLUTION=8031x7700
FAXBITRATE=9600
LOCALSTATIONID=unknown
REMOTESTATIONID=unknown
FAXSTATUSSTRING=Received a DCN while waiting for a DIS
FAXERROR=Received a DCN while waiting for a DIS
FAXSTATUS=FAILED
FAXFILE=/var/spool/asterisk/fax/2012105116-4951111111-666
INIT_EXTEN=666
fname=calls/2012/10/06/2012100621%
CALLEDTON=65
PRIREDIRECTREASON=UNKNOWN
ANI2=0
TRANSFERCAPABILITY=SPEECH
================================================================================

Fax через DAHDI, Asterisk. "Unexpected message received"

Всем привет.

Настраиваю факсы в филиалах. Используется чистый Asterisk и немного скриптов для приёма/пересылки факсов на почту.В данный момент на сервере A всё работает стабильно, факсы уходят и приходят, что через SIP, что через DAHDI. На сервере Б работает приём факсов по SIP, но через DAHDI - завершается с ошибкой "Unexpected message received".

В серверах установлены платы Digium TE420, связь осуществляется через внешнего оператора.

При этом известно, что аналоговый факс подключенный к станции принимает факсы через оба типа соединения.

Faxdetect отключен, эхоподавление тоже. Минимальную скорость выставлял. На слух всё звучит "как-надо".

Помогите, что ещё настроить, что проверить?

Лог приёма:

-- Executing [2222222@pstn:1] Set("DAHDI/i3/4951111111-42f6", "fname=calls/2012/10/06/2012100620%") in new stack
-- Executing [2222222@pstn:2] MixMonitor("DAHDI/i3/4951111111-42f6", "/rec/calls/2012/10/06/2012100620%.wav") in new stack
-- Executing [2222222@pstn:3] Goto("DAHDI/i3/4951111111-42f6", "call-fax,666,1") in new stack
== Begin MixMonitor Recording DAHDI/i3/4951111111-42f6
-- Goto (call-fax,666,1)
-- Executing [666@call-fax:1] Set("DAHDI/i3/4951111111-42f6", "INIT_EXTEN=666") in new stack
-- Executing [666@call-fax:2] Goto("DAHDI/i3/4951111111-42f6", "fax,s,1") in new stack
-- Goto (fax,s,1)
-- Executing [s@fax:1] Answer("DAHDI/i3/4951111111-42f6", "") in new stack
-- Executing [s@fax:2] Macro("DAHDI/i3/4951111111-42f6", "recvfax") in new stack
-- Executing [s@macro-recvfax:1] Set("DAHDI/i3/4951111111-42f6", "FAXFILE=/var/spool/asterisk/fax/2012101155-4951111111-666") in new stack
-- Executing [s@macro-recvfax:2] ReceiveFAX("DAHDI/i3/4951111111-42f6", "/var/spool/asterisk/fax/2012101155-4951111111-666.tif,f") in new stack
-- Channel 'DAHDI/i3/4951111111-42f6' receiving FAX '/var/spool/asterisk/fax/2012101155-4951111111-666.tif'
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.118845 ], channel sent 9 frames (180 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.220027 ], stack sent 10 frames (200 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 000.638940 ], channel sent 26 frames (520 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 002.820078 ], stack sent 130 frames (2600 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 002.880025 ], stack sent 3 frames (60 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 004.960025 ], stack sent 104 frames (2080 ms) of energy.

...skip...

   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 067.631266 ], channel sent 125 frames (2500 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 067.700026 ], stack sent 237 frames (4740 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 068.800025 ], stack sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 068.931506 ], channel sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 070.031708 ], channel sent 55 frames (1100 ms) of energy.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 070.100025 ], stack sent 65 frames (1300 ms) of silence.
   > Channel 'DAHDI/i3/4951111111-42f6' fax session '8', [ 071.171918 ], channel sent 57 frames (1140 ms) of silence.
-- Span 3: Channel 0/26 got hangup request, cause 16
== Spawn extension (macro-recvfax, s, 2) exited non-zero on 'DAHDI/i3/4951111111-42f6' in macro 'recvfax'
== Spawn extension (fax, s, 2) exited non-zero on 'DAHDI/i3/4951111111-42f6'
-- Executing [h@fax:1] System("DAHDI/i3/4951111111-42f6", "/usr/bin/fax2mail --cid-number "4951111111"  --dest-exten "666"   -f "/var/spool/asterisk/fax/2012101155-4951111111-666"") in new stack
-- Executing [h@fax:2] NoOp("DAHDI/i3/4951111111-42f6", "Unexpected message received") in new stack
-- Hungup 'DAHDI/i3/4951111111-42f6'
== MixMonitor close filestream (mixed)
== End MixMonitor Recording DAHDI/i3/4951111111-42f6

UPD

Dumping Info For Channel: DAHDI/i3/4951111111-42fa:
================================================================================
Info:
Name=               DAHDI/i3/4951111111-42fa
Type=               DAHDI
UniqueID=           1349545876.82934
LinkedID=           1349545876.82934
CallerIDNum=        4951111111
CallerIDName=       (N/A)
ConnectedLineIDNum= (N/A)
ConnectedLineIDName=(N/A)
DNIDDigits=         2222222
RDNIS=              (N/A)
Parkinglot=         
Language=           en
State=              Up (6)
Rings=              1
NativeFormat=       (alaw)
WriteFormat=        alaw
ReadFormat=         alaw
RawWriteFormat=     alaw
RawReadFormat=      alaw
WriteTranscode=     No 
ReadTranscode=      No 
1stFileDescriptor=  101
Framesin=           5896 
Framesout=          5892 
TimetoHangup=       0
ElapsedTime=        0h1m59s
DirectBridge=       <none>
IndirectBridge=     <none>
Context=            fax
Extension=          h
Priority=           3
CallGroup=          
PickupGroup=        
Application=        DumpChan
Data=               (Empty)
Blocking_in=        (Not Blocking)

Variables:
SYSTEMSTATUS=APPERROR
MACRO_DEPTH=0
FAXPAGES=0
FAXRESOLUTION=8031x7700
FAXBITRATE=9600
LOCALSTATIONID=unknown
REMOTESTATIONID=unknown
FAXSTATUSSTRING=Received a DCN while waiting for a DIS
FAXERROR=Received a DCN while waiting for a DIS
FAXSTATUS=FAILED
FAXFILE=/var/spool/asterisk/fax/2012105116-4951111111-666
INIT_EXTEN=666
fname=calls/2012/10/06/2012100621%
CALLEDTON=65
PRIREDIRECTREASON=UNKNOWN
ANI2=0
TRANSFERCAPABILITY=SPEECH
================================================================================

UPD2

FAX Session Details:
--------------------

session                : 14
operation              : Receive
state                  : Active
Last Status            : OK
ECM Mode               : Yes
Data Rate              : 9600
Image Resolution       : 8031x7700
Page Number            : 1
File Name              : /var/spool/asterisk/fax/2012100031-4957858448-666.tif

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.