[AsteriskBrasil] Fax app_rxfax e app_txfax
Daviramos Roussenq Fortunato
daviramosrf em gmail.com
Quarta Dezembro 17 15:43:46 BRST 2008
Olá Lista.
Até momento sempre usei o iaxmodem para envio e recebimento de fax.
Mas agora instalei o app_rxfax + app_txfax para conhecer e estudar suas
funcionalidades.
Só que nem o envio nem o recebimento estão funcionando.
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.
Alguém com experiencia poderia me auxiliar.
Asterisk 1.4.22
spandsp-0.0.4
extensions
[receber-fax]
exten =>
44444733,1,Set(FAXFILE=/var/spool/asterisk/fax/Fax-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${CALLERIDNUM}.tif)
exten
=>44444733,n,Set(FAXFILENOEXT=/var/spool/asterisk/fax/Fax-${EXTEN}-${STRFTIME(${EPOCH},,%Y%m%d-%H%M%S)}-${CALLERIDNUM})
exten => 44444733,n,rxfax(${FAXFILE})
exten => 44444003,n,Hangup
[envio-fax]
exten => s,1,Answer()
exten => s,2,Set(FAXFILE=/home/fax/mydocument.tif)
exten => s,3,Set(LOCALHEADERINFO=Daviramos)
exten => s,4,Set(LOCALSTATIONID=Daviramos)
exten => s,5,txfax(${FAXFILE}|caller)
exten => s,6,Hangup
LOGs
-- Executing [s em envio-fax:1] Answer("SIP/44444732-088adeb8", "") in new
stack
-- Executing [s em envio-fax:2] Set("SIP/44444732-088adeb8",
"FAXFILE=/home/fax/mydocument.tif") in new stack
-- Executing [s em envio-fax:3] Set("SIP/44444732-088adeb8",
"LOCALHEADERINFO=Daviramos") in new stack
-- Executing [s em envio-fax:4] Set("SIP/44444732-088adeb8",
"LOCALSTATIONID=Daviramos") in new stack
-- Executing [s em envio-fax:5] TxFAX("SIP/44444732-088adeb8",
"/home/fax/mydocument.tif|caller") in new stack
[Dec 17 15:21:35] DEBUG[9917]: rtp.c:743 process_rfc2833: Ignoring RTP 2833
Event: 00000036. Not a DTMF Digit.
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'mrtg' logged on from 127.0.0.1
== Manager 'mrtg' logged off from 127.0.0.1
[Dec 17 15:22:08] DEBUG[9917]: app_txfax.c:261 txfax_exec: Got hangup
[Dec 17 15:22:08] DEBUG[9917]: app_txfax.c:96 phase_e_handler:
==============================================================================
[Dec 17 15:22:08] DEBUG[9917]: app_txfax.c:97 phase_e_handler: Fax send not
successful - result (51) The call dropped prematurely.
[Dec 17 15:22:08] DEBUG[9917]: app_txfax.c:98 phase_e_handler:
==============================================================================
-- Executing [h em envio-fax:1] Hangup("SIP/34314732-088adeb8", "") in new
stack
== Spawn extension (envio-fax, h, 1) exited non-zero on
'SIP/44444732-088adeb8'
[Dec 17 15:22:08] NOTICE[9917]: pbx_spool.c:365 attempt_thread: Call
completed to SIP/44444732
-- Executing [44444733 em from-sip:1] Set("SIP/44444732-087f27d8",
"FAXFILE=/var/spool/asterisk/fax/Fax-34314733-20081217-152220-.tif") in new
stack
-- Executing [44444733 em from-sip:2] Set("SIP/44444732-087f27d8",
"FAXFILENOEXT=/var/spool/asterisk/fax/Fax-34314733-20081217-152220-") in new
stack
-- Executing [44444733 em from-sip:3] RxFAX("SIP/44444732-087f27d8",
"/var/spool/asterisk/fax/Fax-34314733-20081217-152220-.tif") in new stack
== Parsing '/etc/asterisk/manager.conf': Found
== Manager 'mrtg' logged on from 127.0.0.1
== Manager 'mrtg' logged off from 127.0.0.1
[Dec 17 15:23:31] DEBUG[9994]: app_rxfax.c:333 rxfax_exec: Got hangup
[Dec 17 15:23:31] DEBUG[9994]: app_rxfax.c:131 phase_e_handler:
==============================================================================
[Dec 17 15:23:31] DEBUG[9994]: app_rxfax.c:132 phase_e_handler: Fax receive
not successful - result (13) Unexpected message received.
[Dec 17 15:23:31] DEBUG[9994]: app_rxfax.c:133 phase_e_handler:
==============================================================================
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20081217/f4f2f2a3/attachment-0001.htm
Mais detalhes sobre a lista de discussão AsteriskBrasil