Hi Marcin,
You need to turn verbose logging on to see what really happens. Check
the command line parameters for rxfax. Lots and lots of people have
problems faxing with TDM cards. The problem is not in spandsp. It seems
to be in the river for the card.
Regards,
Steve
Marcin Kuczera wrote:
> Well, my faxes passes through asterisk successfully, however I still
> have some problems about fax reception by rxfax.
>
> The softfax answers, and negotiates transmission, however then as some
> stage of communiation something is wrong.
> But I have nothing more but this log:
>
> Jun 2 00:10:21 DEBUG[16900]: chan_zap.c:4242 zt_read: DTMF digit: *
> on Zap/10-1
> Jun 2 00:10:22 DEBUG[16900]: chan_zap.c:4242 zt_read: DTMF digit: 1
> on Zap/10-1
> Jun 2 00:10:22 DEBUG[16900]: chan_zap.c:4242 zt_read: DTMF digit: 0
> on Zap/10-1
> Jun 2 00:10:22 DEBUG[16900]: chan_zap.c:4242 zt_read: DTMF digit: 7
> on Zap/10-1
> Jun 2 00:10:23 DEBUG[16900]: chan_zap.c:4242 zt_read: DTMF digit: 8
> on Zap/10-1
> Jun 2 00:10:23 DEBUG[16900]: chan_zap.c:1384 zt_enable_ec: No
> echocancellation requested
> -- Executing SetVar("Zap/10-1", "CALLEDFAX=*1078")
in new stack
> -- Executing Answer("Zap/10-1", "") in new stack
> Jun 2 00:10:23 DEBUG[16900]: chan_zap.c:2484 zt_answer: Took Zap/10-1
> off hook
> -- Executing Goto("Zap/10-1", "fax|*1078|1") in new
stack
> -- Goto (fax,*1078,1)
> -- Executing Macro("Zap/10-1", "faxreceive") in new
stack
> -- Executing SetVar("Zap/10-1",
>
"FAXFILE=/var/spool/asterisk/fax/*1078/asterisk-419-1117663820.32") in
> new stack
> -- Executing RxFAX("Zap/10-1",
> "/var/spool/asterisk/fax/*1078/asterisk-419-1117663820.32.tif")
in new
> stack
> Jun 2 00:10:37 DEBUG[16900]: app_rxfax.c:80 phase_e_handler:
>
==============================================================================
>
> Jun 2 00:10:37 DEBUG[16900]: app_rxfax.c:81 phase_e_handler: Fax
> successfully received.
> Jun 2 00:10:37 DEBUG[16900]: app_rxfax.c:82 phase_e_handler: Remote
> station id:
> Jun 2 00:10:37 DEBUG[16900]: app_rxfax.c:83 phase_e_handler: Local
> station id:
> Jun 2 00:10:37 DEBUG[16900]: app_rxfax.c:84 phase_e_handler: Pages
> transferred: 0
> Jun 2 00:10:37 DEBUG[16900]: app_rxfax.c:85 phase_e_handler: Image
> resolution: 0 x 0
> Jun 2 00:10:37 DEBUG[16900]: app_rxfax.c:86 phase_e_handler: Transfer
> Rate: 9600
> Jun 2 00:10:37 DEBUG[16900]: app_rxfax.c:87 phase_e_handler:
>
==============================================================================
>
> Jun 2 00:10:41 DEBUG[16900]: chan_zap.c:3974 __zt_exception:
> Exception on 28, channel 10
> Jun 2 00:10:41 DEBUG[16900]: chan_zap.c:3286 zt_handle_event: Got
> event On hook(1) on channel 10 (index 0)
> -- Executing System("Zap/10-1",
"/var/lib/asterisk/scripts/mailfax
> "*1076" "*1078" "" ""
> "/var/spool/asterisk/fax/*1078/asterisk-419-1117663820.32"
""") in new
> stack
> Jun 2 00:10:41 WARNING[16900]: app_system.c:70 system_exec_helper:
> Unable to execute '/var/lib/asterisk/scripts/mailfax "*1076"
"*1078"
> "" ""
"/var/spool/asterisk/fax/*1078/asterisk-419-1117663820.32"
""'
> Jun 2 00:10:41 WARNING[16900]: app_system.c:70 system_exec_helper:
> Unable to execute '/var/lib/asterisk/scripts/mailfax "*1076"
"*1078"
> "" ""
"/var/spool/asterisk/fax/*1078/asterisk-419-1117663820.32"
""'
> == Spawn extension (fax, h, 1) exited non-zero on 'Zap/10-1'
> Jun 2 00:10:41 DEBUG[445]: rate_engine.c:708 poster_worker: Rating
> Engine poster thread processing
> Jun 2 00:10:41 DEBUG[445]: rate_engine.c:770 poster_worker:
> Attempting to write queue entry to database
> Jun 2 00:10:41 DEBUG[16900]: chan_zap.c:2164 zt_hangup: Hangup:
> channel: 10 index = 0, normal = 28, callwait = -1, thirdcall = -1
> Jun 2 00:10:41 DEBUG[16900]: chan_zap.c:2577 zt_setoption: Set option
> TDD MODE, value: OFF(0) on Zap/10-1
> Jun 2 00:10:41 DEBUG[16900]: chan_zap.c:1352 update_conf: Updated
> conferencing on 10, with 0 conference users
> -- Hungup 'Zap/10-1'
>
> Asterisk 1.0.7-BRIstuffed-0.2.0-RC7k
> libspandsp-dev 0.0.2pre17-1
> libspandsp0 0.0.2pre17-1
> txfax/rxfax from spandsp-0.0.2pre18
>
> Physical test fax is Panasonic KX-FT908PD connected to TDM400P FXS port
>
> I also tried incomming fax through BRI interface - the same result,
> error code 41 (on Panasonic)
>
>
> Maybe someone meet this problem ?