Olá Lista.<br><br> Até momento sempre usei o iaxmodem para envio e recebimento de fax.<br> Mas agora instalei o app_rxfax + app_txfax para conhecer e estudar suas funcionalidades.<br><br> Só que nem o envio nem o recebimento estão funcionando.<br>
Meu cenário de teste e o seguinte, tenho um fax conectado em um ATA ligado ao servidor, o envio de fax para outro fax comum funciona perfeitamente. Mas no servidor nada.<br><br> Alguém com experiencia poderia me auxiliar.<br>
<br>Asterisk 1.4.22<br>spandsp-0.0.4<br><br><br>extensions<br><br><br>[receber-fax]<br>exten => 44444733,1,Set(FAXFILE=/var/spool/asterisk/fax/Fax-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${CALLERIDNUM}.tif)<br>exten =>44444733,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/Fax-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${CALLERIDNUM})<br>
exten => 44444733,n,rxfax(${FAXFILE})<br>exten => 44444003,n,Hangup<br><br><br>[envio-fax]<br>exten => s,1,Answer()<br>exten => s,2,Set(FAXFILE=/home/fax/mydocument.tif)<br>exten => s,3,Set(LOCALHEADERINFO=Daviramos)<br>
exten => s,4,Set(LOCALSTATIONID=Daviramos)<br>exten => s,5,txfax(${FAXFILE}|caller)<br>exten => s,6,Hangup<br><br><br><br><br><br>LOGs<br><br><br> -- Executing [s@envio-fax:1] Answer("SIP/44444732-088adeb8", "") in new stack<br>
-- Executing [s@envio-fax:2] Set("SIP/44444732-088adeb8", "FAXFILE=/home/fax/mydocument.tif") in new stack<br> -- Executing [s@envio-fax:3] Set("SIP/44444732-088adeb8", "LOCALHEADERINFO=Daviramos") in new stack<br>
-- Executing [s@envio-fax:4] Set("SIP/44444732-088adeb8", "LOCALSTATIONID=Daviramos") in new stack<br> -- Executing [s@envio-fax:5] TxFAX("SIP/44444732-088adeb8", "/home/fax/mydocument.tif|caller") in new stack<br>
[Dec 17 15:21:35] DEBUG[9917]: rtp.c:743 process_rfc2833: Ignoring RTP 2833 Event: 00000036. Not a DTMF Digit.<br> == Parsing '/etc/asterisk/manager.conf': Found<br> == Manager 'mrtg' logged on from 127.0.0.1<br>
== Manager 'mrtg' logged off from 127.0.0.1<br>[Dec 17 15:22:08] DEBUG[9917]: app_txfax.c:261 txfax_exec: Got hangup<br>[Dec 17 15:22:08] DEBUG[9917]: app_txfax.c:96 phase_e_handler: ==============================================================================<br>
[Dec 17 15:22:08] DEBUG[9917]: app_txfax.c:97 phase_e_handler: Fax send not successful - result (51) The call dropped prematurely.<br>[Dec 17 15:22:08] DEBUG[9917]: app_txfax.c:98 phase_e_handler: ==============================================================================<br>
-- Executing [h@envio-fax:1] Hangup("SIP/34314732-088adeb8", "") in new stack<br> == Spawn extension (envio-fax, h, 1) exited non-zero on 'SIP/44444732-088adeb8'<br>[Dec 17 15:22:08] NOTICE[9917]: pbx_spool.c:365 attempt_thread: Call completed to SIP/44444732<br>
-- Executing [44444733@from-sip:1] Set("SIP/44444732-087f27d8", "FAXFILE=/var/spool/asterisk/fax/Fax-34314733-20081217-152220-.tif") in new stack<br> -- Executing [44444733@from-sip:2] Set("SIP/44444732-087f27d8", "FAXFILENOEXT=/var/spool/asterisk/fax/Fax-34314733-20081217-152220-") in new stack<br>
-- Executing [44444733@from-sip:3] RxFAX("SIP/44444732-087f27d8", "/var/spool/asterisk/fax/Fax-34314733-20081217-152220-.tif") in new stack<br> == Parsing '/etc/asterisk/manager.conf': Found<br>
== Manager 'mrtg' logged on from 127.0.0.1<br> == Manager 'mrtg' logged off from 127.0.0.1<br>[Dec 17 15:23:31] DEBUG[9994]: app_rxfax.c:333 rxfax_exec: Got hangup<br>[Dec 17 15:23:31] DEBUG[9994]: app_rxfax.c:131 phase_e_handler: ==============================================================================<br>
[Dec 17 15:23:31] DEBUG[9994]: app_rxfax.c:132 phase_e_handler: Fax receive not successful - result (13) Unexpected message received.<br>[Dec 17 15:23:31] DEBUG[9994]: app_rxfax.c:133 phase_e_handler: ==============================================================================<br>
<br>