ReceiveFAX problem


#1

Ive been trying all day to get fax2email working…

Faxreceive seems to work fine, but when the fax is received and stored as TIFF file, the Call hangs up or my dialplan finishes before it gets to send me the Tiff file by mail. Here’s a paste from my Asterisk CLI and mailfax macro from Dialplan:

-- Executing [s@macro-mailfax:1] Set("SIP/194.6.238.85-00000000", "EMAILADDR=mfk@vitel.no") in new stack
-- Executing [s@macro-mailfax:2] Set("SIP/194.6.238.85-00000000", "CHANNEL(transfercapability)=3K1AUDIO") in new stack
-- Executing [s@macro-mailfax:3] Answer("SIP/194.6.238.85-00000000", "") in new stack
-- Executing [s@macro-mailfax:4] ReceiveFAX("SIP/194.6.238.85-00000000", "/var/spool/asterisk/fax/mfk@vitel.no.voip02-1291816888.0.tif") in new stack

[Dec 8 15:01:28] NOTICE[3018]: channel.c:3079 __ast_read: Dropping incompatible voice frame on SIP/194.6.238.85-00000000 of format ulaw since our native format has changed to 0x8 (alaw)
[Dec 8 15:01:28] WARNING[3018]: app_fax.c:432 transmit_audio: channel ‘SIP/194.6.238.85-00000000’ refused to negotiate T.38
[Dec 8 15:01:39] WARNING[3018]: app_fax.c:173 span_message: WARNING T.30 ECM carrier not found
[Dec 8 15:01:40] WARNING[3018]: app_fax.c:173 span_message: WARNING T.30 ECM carrier not found
[Dec 8 15:01:40] WARNING[3018]: app_fax.c:173 span_message: WARNING T.30 ECM carrier not found
[Dec 8 15:02:02] WARNING[3018]: app_fax.c:817 transmit: Transmission error
== Spawn extension (macro-mailfax, s, 4) exited non-zero on ‘SIP/194.6.238.85-00000000’ in macro ‘mailfax’
== Spawn extension (from-trunk, 4733501771, 17) exited non-zero on ‘SIP/194.6.238.85-00000000’

[macro-mailfax]
exten => s,1,Set(EMAILADDR=${ARG1})
exten => s,n,Set(CHANNEL(transfercapability)=3K1AUDIO)
exten => s,n,Answer
exten => s,n,ReceiveFAX(/var/spool/asterisk/fax/${EMAILADDR}.${UNIQUEID}.tif)
exten => s,n,Hangup()

exten => h,1,System(/var/lib/asterisk/scripts/mailfax “${CALLERID(number)}” “${MACRO_EXTEN}” “${EMAILADDR}” "/var/spool/asterisk/fax/${EMAILA$
exten => h,n,NoOp(### FAXSTATUS: ${FAXSTATUS})
exten => h,n,NoOp(### FAXERROR: ${FAXERROR})
exten => h,n,NoOp(### FAXMODE: ${FAXMODE})
exten => h,n,NoOp(### FAXPAGES: ${FAXPAGES})
exten => h,n,NoOp(### FAXBITRATE: ${FAXBITRATE})
exten => h,n,NoOp(### FAXRESOLUTION: ${FAXRESOLUTION})
exten => h,n,NoOp(### REMOTESTATIONID: ${REMOTESTATIONID})
exten => h,n,Hangup()


#2

So, now I’ve upgraded Asterisk from 1.6.2.14 to 1.8.0, deselected the App_fax from Install and selected res_fax & res_fax_spandsp instead… Now i get these errors while trying to Receive Fax:

-- Executing [s@macro-mailfax:4] ReceiveFAX("SIP/xxxxxxxxxxx-00000002", "/var/spool/asterisk/fax/joachim@comvie.no.voip02-1291889503.2.tif") in new stack
-- Channel 'SIP/xxxxxxxx-00000002' receiving FAX '/var/spool/asterisk/fax/joachim@comvie.no.voip02-1291889503.2.tif'

[Dec 9 11:11:49] NOTICE[14301]: res_fax.c:1319 receivefax_t38_init: Negotiating T.38 for receive on SIP/194.6.238.81-00000002
[Dec 9 11:11:49] WARNING[14301]: res_fax.c:1368 receivefax_t38_init: channel ‘SIP/xxxxxxxxxx-00000002’ refused to negotiate T.38
[Dec 9 11:11:49] WARNING[14301]: res_fax.c:1389 receivefax_t38_init: Audio FAX not allowed on channel ‘SIP/194.6.238.81-00000002’ and T.38 negotiation failed; aborting.
[Dec 9 11:11:49] ERROR[14301]: res_fax.c:1560 receivefax_exec: error initializing channel ‘SIP/xxxxxxxxx-00000002’ in T.38 mode
== Spawn extension (macro-mailfax, s, 4) exited non-zero on ‘SIP/xxxxxxxxxxx-00000002’ in macro ‘mailfax’
== Spawn extension (from-trunk, 4733501771, 20) exited non-zero on ‘SIP/xxxxxxxxxxx-00000002’


#3

i get exactly the same error (refused to negotiate T.38 -> audio FAX not allowed).
were you able to solve it?

regards,
astrakid


#4

Does the sender support T.38?