ded писал(а):А приложение ReceiveFAX есть?
CLI> core show application ReceiveFAX ??
Да, есть.
-= Info about application 'ReceiveFAX' =-
[Synopsis]
Receive a FAX and save as a TIFF/F file.
[Description]
ReceiveFAX(filename[,options]):
The ReceiveFAX() application receives a FAX as a TIFF/F file with specified filename.
The application arguments are:
'd' - enables FAX debugging
'f' - allow audio fallback FAX transfer on T.38 capable channels
's' - send progress Manager events (overrides statusevents setting in res_fax.conf)
Use the FAXOPT function to specify session arguments prior to calling ReceiveFAX()
and use FAXOPT after ReceiveFAX completes to query result status for the session.
The ReceiveFAX() is provided by res_fax, which is a FAX technology agnostic module
that utilizes FAX technology resource modules to complete a FAX transmission.
[Syntax]
Not available
[Arguments]
Not available
[See Also]
Not available
изменил в extensions.conf - оставил только exten=>s,1,Goto(fax-rx,receive,1)
После этого уже в консоль пошло следующее:
Код: Выделить всё
Executing [s@gts-out:1] Goto("SIP/gts-sip-0000001b", "fax-rx,receive,1") in new stack
-- Goto (fax-rx,receive,1)
-- Executing [receive@fax-rx:1] NoOp("SIP/gts-sip-0000001b", "***RECEIVING FAX***") in new stack
[Nov 8 10:20:57] WARNING[2155]: ast_expr2.fl:445 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '+', expecting $end; Input:
+ 1
^
[Nov 8 10:20:57] WARNING[2155]: ast_expr2.fl:449 ast_yyerror: If you have questions, please refer to doc/tex/channelvariables.tex.
-- Executing [receive@fax-rx:2] Set("SIP/gts-sip-0000001b", "GLOBAL(FAXCOUNT)=") in new stack
== Setting global variable 'FAXCOUNT' to ''
-- Executing [receive@fax-rx:3] Set("SIP/gts-sip-0000001b", "FAXCOUNT=") in new stack
-- Executing [receive@fax-rx:4] Set("SIP/gts-sip-0000001b", "FAXFILE=fax--rx.tif") in new stack
-- Executing [receive@fax-rx:5] Set("SIP/gts-sip-0000001b", "FAXOPT(ecm)=yes") in new stack
-- Executing [receive@fax-rx:6] Set("SIP/gts-sip-0000001b", "FAXOPT(headerinfo)=MY FAXBACK RX") in new stack
-- Executing [receive@fax-rx:7] Set("SIP/gts-sip-0000001b", "FAXOPT(localstationid)=1234567890") in new stack
-- Executing [receive@fax-rx:8] Set("SIP/gts-sip-0000001b", "FAXOPT(maxrate)=14400") in new stack
-- Executing [receive@fax-rx:9] Set("SIP/gts-sip-0000001b", "FAXOPT(minrate)=2400") in new stack
-- Executing [receive@fax-rx:10] ReceiveFAX("SIP/gts-sip-0000001b", "/var/spool/asterisk/fax/fax--rx.tif") in new stack
-- Channel 'SIP/gts-sip-0000001b' receiving FAX '/var/spool/asterisk/fax/fax--rx.tif'
[Nov 8 10:20:59] NOTICE[2155]: chan_sip.c:7236 sip_read: FAX CNG detected but no fax extension
[Nov 8 10:21:00] WARNING[2155]: res_fax.c:1387 receivefax_t38_init: channel 'SIP/gts-sip-0000001b' refused to negotiate T.38
[Nov 8 10:21:00] WARNING[2155]: res_fax.c:1408 receivefax_t38_init: Audio FAX not allowed on channel 'SIP/gts-sip-0000001b' and T.38 negotiation failed; aborting.
[Nov 8 10:21:00] ERROR[2155]: res_fax.c:1612 receivefax_exec: error initializing channel 'SIP/gts-sip-0000001b' in T.38 mode
== Spawn extension (fax-rx, receive, 10) exited non-zero on 'SIP/gts-sip-0000001b'
Не понимаю, как при звонке обнаружить входящий факс. Помогите пожалуйста!