Hello!
I set up Email to fax and it works great with .pdf and .tif documents. Now I want to send .txt or .doc or any other file type that can be converted by libreoffice to .pdf.
I installed: "libreoffice libreoffice-base libreoffice-common libreoffice-java-common" and added at Default Settings --> Fax --> allowed_extension .txt, .doc --> Reload
When I send a fax file "NotPdfFax.txt' or "DOCFax.docx" (both are attached) from the web-page via the "New" (using app/fax/fax_send.php script) it works, but when I send an email to use email-to-fax and run the script https://SERVERS_IP/app/fax/fax_emails.php, I got the error at fs_cli:
2021-01-25 18:44:55.218929 [ERR] mod_spandsp_fax.c:1430 Cannot send non-existant fax file [/var/lib/freeswitch/storage/fax/fortest/2005/temp/e4288435-88a6-405f-a9b2-1567af53e70f.tif]
and:
2021-01-25 18:45:49.978922 [ERR] mod_lua.cpp:202 ...eeswitch/scripts/app/fax/resources/script
s/hangup_rx.lua:62: attempt to index local 'x' (a nil value)
stack traceback:
...eeswitch/scripts/app/fax/resources/scripts/hangup_rx.lua:62: in function 'shell_esc'
...eeswitch/scripts/app/fax/resources/scripts/hangup_rx.lua:212: in main chunk
I looked at the lua script, line 212:
cmd = cmd .. "name="..quote(shell_esc(fax_file)).." ";
It looks like /app/fax/fax_send.php script didn't convert the file from .txt to .pdf and then to .tif and that's why scripts can't find it.
So, my question is: is it possible to send a fax using email to fax functionality from the "vanilla installation" with .txt attachment or I have to change the scripts to make it possible?
Thanks in advance!
I set up Email to fax and it works great with .pdf and .tif documents. Now I want to send .txt or .doc or any other file type that can be converted by libreoffice to .pdf.
I installed: "libreoffice libreoffice-base libreoffice-common libreoffice-java-common" and added at Default Settings --> Fax --> allowed_extension .txt, .doc --> Reload
When I send a fax file "NotPdfFax.txt' or "DOCFax.docx" (both are attached) from the web-page via the "New" (using app/fax/fax_send.php script) it works, but when I send an email to use email-to-fax and run the script https://SERVERS_IP/app/fax/fax_emails.php, I got the error at fs_cli:
2021-01-25 18:44:55.218929 [ERR] mod_spandsp_fax.c:1430 Cannot send non-existant fax file [/var/lib/freeswitch/storage/fax/fortest/2005/temp/e4288435-88a6-405f-a9b2-1567af53e70f.tif]
and:
2021-01-25 18:45:49.978922 [ERR] mod_lua.cpp:202 ...eeswitch/scripts/app/fax/resources/script
s/hangup_rx.lua:62: attempt to index local 'x' (a nil value)
stack traceback:
...eeswitch/scripts/app/fax/resources/scripts/hangup_rx.lua:62: in function 'shell_esc'
...eeswitch/scripts/app/fax/resources/scripts/hangup_rx.lua:212: in main chunk
I looked at the lua script, line 212:
cmd = cmd .. "name="..quote(shell_esc(fax_file)).." ";
It looks like /app/fax/fax_send.php script didn't convert the file from .txt to .pdf and then to .tif and that's why scripts can't find it.
So, my question is: is it possible to send a fax using email to fax functionality from the "vanilla installation" with .txt attachment or I have to change the scripts to make it possible?
Thanks in advance!