[Freeswitch-users] root privs for mod_fax

Gabriel Kuri gkuri at ieee.org
Tue Dec 9 00:43:12 PST 2008


I've been experimenting with mod_fax and discovered it doesn't appear to
receive faxes unless freeswitch is running as root? it fails trying to
open the tiff file for writing (see the logs below). I'm using the
dialplan as prescribed in the wiki without any changes and the user the
freeswitch process is running under has privs to write to /tmp, but it
still fails to receive faxes. I haven't tried sending any faxes yet.

I'm running r10609.

any ideas?


2008-12-09 00:29:41 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW
T.30 Get document at 14400bps, modem 7
2008-12-09 00:29:41 [WARNING] mod_fax.c:133 spanfax_log_message()
WARNING T.30 Cannot open target TIFF file 'rxfax.tiff'
2008-12-09 00:29:41 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW
T.30 Changing from state 17 to 3
2008-12-09 00:29:41 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW
T.30 Tx:  DCN with final frame tag
2008-12-09 00:29:41 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW
T.30 Tx:  ff 13 fa
2008-12-09 00:29:42 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW
T.30 HDLC carrier down in state 3
2008-12-09 00:29:42 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW
T.30 Changing from phase T30_PHASE_B_RX to T30_PHASE_D
_TX
2008-12-09 00:29:42 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW FAX
Set rx type 0
2008-12-09 00:29:42 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW FAX
Set tx type 4
2008-12-09 00:29:43 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW
T.30 Send complete in phase T30_PHASE_D_TX, state 3
2008-12-09 00:29:43 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW
T.30 Send complete in phase T30_PHASE_D_TX, state 3
2008-12-09 00:29:43 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW
T.30 Disconnecting
2008-12-09 00:29:43 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW
T.30 Changing from phase T30_PHASE_D_TX to T30_PHASE_E
2008-12-09 00:29:43 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW FAX
Set rx type 0
2008-12-09 00:29:43 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW FAX
Set tx type 1
2008-12-09 00:29:43 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW
T.30 Changing from state 3 to 2
2008-12-09 00:29:44 [DEBUG] mod_fax.c:133 spanfax_log_message() FLOW
T.30 Send complete in phase T30_PHASE_E, state 2
2008-12-09 00:29:44 [DEBUG] mod_fax.c:163 phase_e_handler()
===============================================================
===============
2008-12-09 00:29:44 [DEBUG] mod_fax.c:176 phase_e_handler() Fax
processing not successful - result (41) TIFF/F file cannot
be opened.



Gabe




More information about the FreeSWITCH-users mailing list