ВидеоКонф(ВКС)  ::   FAQ  ::   Поиск  ::   Регистрация  ::   Вход

FAX - получение и отправка

Новичком считается только что прочитавший «Астериск - будущее телефонии»
http://asterisk.ru/knowledgebase/books
и пытающийся сделать большее

Модераторы: april22, Zavr2008

FAX - получение и отправка

Сообщение Servo » 26 апр 2012, 13:28

Я прошу не бить меня руками и ногами. Наверное вопрос не первой свежести, но все же... пока чисто теоретический.

есть * 1.6 соединенная по транку h.323 с AVAYA.
хочу поднять прием и отправку FAX на *

В связи с чем вопрос - на каком модуле лучше реализовать работу факса?
попробовал app_fax - с ним беда
Код: выделить все
    -- Executing [receive@fax-rx:15] ReceiveFAX("H323/ip$10.10.100.7:10649/4494"                                                                                                                                , "/var/spool/asterisk/fax/receive/fax-20120426-132414-5698.tif") in new stack
        -- Received Facility message...
        -- ClearCall: Request to clear call with token ip$10.10.100.7:10649/4494, cause EndedByRemoteUser
        -- Sending RELEASE COMPLETE
                channelsOpen = 1
                channelsOpen = 0
        ExternalRTPChannel Destroyed
        ExternalRTPChannel Destroyed
        -- ClearCall: Request to clear call with token ip$10.10.100.7:10649/4494, cause EndedByTransportFail
-- AM48 [10.10.100.7] has cleared the call
        == H.323 Connection deleted.
[Apr 26 13:24:43] WARNING[4400]: app_fax.c:223 phase_e_handler: Error transmitting fax. result=49: The call dropped prematurely.
[Apr 26 13:24:43] WARNING[4400]: app_fax.c:817 transmit: Transmission error
Servo
 
Сообщений: 15
Зарегистрирован: 28 фев 2012, 18:48

Re: FAX - получение и отправка

Сообщение shurskiy » 26 апр 2012, 16:56

Каша из топора.
EndedByTransportFail - проблема. app_fax - нет.
Смотрите в параметр faststart в конфигурации h.323.
+ Кодек разрешите только alaw
shurskiy
 
Сообщений: 107
Зарегистрирован: 31 авг 2010, 16:15

Re: FAX - получение и отправка

Сообщение Servo » 27 апр 2012, 12:42

не знаю насчет топора..но...

попробовал с faststart поиграть - безуспешно.

Есть какие-нибудь идеи?

Код: выделить все
; Open H.323 driver configuration
[general]
port = 1720
bindaddr = 10.118.118.231
disallow=all
allow=alaw
;allow=g729
dtmfmode=inband
gatekeeper = DISABLE
context=default
progress_setup = 8
progress_alert = 8
h245tunneling=yes
language=ru
t83pt_udptl=yes
faxdetect=yes
fastStart=yes

[Avaya]
faxdetect=yes
t83pt_udptl=yes
type=friend
context=default
host=10.10.100.7
port=1720
disallow=all
allow=alaw
;allow=g729
allow=gsm
allow=slinear
language=ru
faxtstart=yes


Код: выделить все
exten => 2904,1,Answer()
exten => 2904,n,Wait(2)
exten => 2904,n,ReceiveFax(/var/spool/asterisk/fax/test.tif)
exten => 2904,n,HangUp()


== New H.323 Connection created.
--Received SETUP message
-- Setting up Call
-- Call token: [ip$10.10.100.7:24726/12801]
-- Calling party name: [AM48]
-- Calling party number: [5698]
-- Called party name: [2904]
-- Called party number: [2904]
-- Calling party IP: [10.10.100.7]
Setting capabilities to 0x8 (alaw)
Capabilities in preference order is (alaw)
DTMF mode is 8
Allowed Codecs for ip$10.10.100.7:24726/12801 (ip$10.118.118.231:1720):
Table:
G.711-ALaw-64k <1>
UserInput/hookflash <2>
UserInput/basicString <3>
Set:
0:
0:
G.711-ALaw-64k <1>
1:
UserInput/hookflash <2>
2:
UserInput/basicString <3>

=-= In OnAnswerCall for call 12801
- Progress Indicator: 0
- Inserting PI of 8 into ALERTING message
-- Started logical channel: sending G.711-ALaw-64k
-- channelsOpen = 1
External RTP Session Starting
RTP channel id 1 parameters:
-- remoteIpAddress: 10.10.100.8
-- remotePort: 9152
-- ExternalIpAddress: 10.118.118.231
-- ExternalPort: 17828
-- Started logical channel: receiving G.711-ALaw-64k
-- channelsOpen = 2
External RTP Session Starting
RTP channel id 1 parameters:
-- remoteIpAddress: 10.10.100.8
-- remotePort: 9152
-- ExternalIpAddress: 10.118.118.231
-- ExternalPort: 17828
-- Executing [2904@default:1] Answer("H323/ip$10.10.100.7:24726/12801", "") in new stack
Answering call ip$10.10.100.7:24726/12801
-- Received Facility message...
Peer capability is G.711-ALaw-64k <1>
Found peer capability G.711-ALaw-64k <1>, Asterisk code is 8, frame size (in ms) is 20
Peer capability is G.729A <2>
Found peer capability G.729A <2>, Asterisk code is 256, frame size (in ms) is 60
Peer capability is G.711-uLaw-64k <3>
Found peer capability G.711-uLaw-64k <3>, Asterisk code is 4, frame size (in ms) is 20
Peer capability is UserInput/dtmf <6>
Peer capabilities = 0x10c (ulaw|alaw|g729), ordered list is (alaw|g729|ulaw)
-- Received Facility message...
-- Received Facility message...
-- Received Facility message...
=-= In OnConnectionEstablished for call 12801
-- Connection Established with "AM48 [10.10.100.7]"
-- Received Facility message...
-- Executing [2904@default:2] Wait("H323/ip$10.10.100.7:24726/12801", "2") in new stack
-- Executing [2904@default:3] ReceiveFAX("H323/ip$10.10.100.7:24726/12801", "/var/spool/asterisk/fax/test.tif") in new stack
-- Received Facility message...
-- ClearCall: Request to clear call with token ip$10.10.100.7:24726/12801, cause EndedByRemoteUser
-- Sending RELEASE COMPLETE
channelsOpen = 1
channelsOpen = 0
ExternalRTPChannel Destroyed
ExternalRTPChannel Destroyed
-- ClearCall: Request to clear call with token ip$10.10.100.7:24726/12801, cause EndedByTransportFail
-- AM48 [10.10.100.7] has cleared the call
== H.323 Connection deleted.
[Apr 27 13:02:05] WARNING[8362]: app_fax.c:223 phase_e_handler: Error transmitting fax. result=49: The call dropped prematurely.
[Apr 27 13:02:05] WARNING[8362]: app_fax.c:817 transmit: Transmission error
== Spawn extension (default, 2904, 3) exited non-zero on 'H323/ip$10.10.100.7:24726/12801'
Servo
 
Сообщений: 15
Зарегистрирован: 28 фев 2012, 18:48


Вернуться в Вопросы новичков

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 6

© 2008 — 2024 Asterisk.ru
Digium, Asterisk and AsteriskNOW are registered trademarks of Digium, Inc.
Design and development by PostMet-Netzwerk GmbH