View previous topic :: View next topic |
Author |
Message |
vadim Member
Joined: 16 Oct 2008 Posts: 40
|
Posted: Mon Aug 10, 2009 3:21 pm Post subject: Avantfax problem |
|
|
Dear friend,
We tried to install new fax server,
we use SMS 1.4.4.
We installed Hylafax
then we installed these packages:
http://sms.it-ccs.com/isos/SMS-Current/extra/packages/avantfax-3.1.6-i486-1sms.txz
http://sms.it-ccs.com/isos/SMS-Current/slackware/x/libXrender-0.9.4-i486-2.txz
The programm both with faxes start working successfully, we start receiving the information through fax. However out attempt to open in Avant fax a received file, we came across a following mistake:
Invalid file type: /var/www/htdocs/avantfax/faxes/recvd/2009/08/04/XXXXXXX/000000001/fax.tif
It seems to us that the problem was because of a mistake in MIME type . This mistake occured in the file below:
/var/www/htdocs/avantfax/file.php
in the following part of the file:
Code: |
}
$mime_content_type = get_filetype($file);
switch($mime_content_type) {
case 'application/pdf':
case 'image/gif':
case 'image/jpeg':
case 'image/png':
case 'image/tiff':
break;
default:
exit("Invalid file type: $file $mime_content_type");
}
|
How do you thing the best solution of this problem?
BR
Vadim |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Mon Aug 10, 2009 3:30 pm Post subject: |
|
|
try to add
case 'image/tif':
under
case 'image/tiff':
to see what will happened.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
vadim Member
Joined: 16 Oct 2008 Posts: 40
|
Posted: Fri Aug 14, 2009 2:54 pm Post subject: Avantfax problem |
|
|
Hi,
We tryed to follow you suggestion but it faild. It doen't help us with this difficulty.
Also we have the same problem with files PDF type and server version 1.4.5. Unfortunately they still can't be open even with your advise.
Probably you have some more ideas how to deal with this problem?
Thank you beforehand
BR
Vadim |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
|
Back to top |
|
vadim Member
Joined: 16 Oct 2008 Posts: 40
|
Posted: Mon Aug 17, 2009 3:24 pm Post subject: |
|
|
Hi,
Unfortunately the new version Image magic, but it didn't help and our main problem still doesn't solved.
br
Vadim |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Mon Aug 17, 2009 4:56 pm Post subject: |
|
|
I see the problem now...
Just do a
ln -s /etc/file/magic /etc/magic
You shouldn't have preview at all in inbox view.
That should fix it.
I'll update install script as well in avantfax package.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
vadim Member
Joined: 16 Oct 2008 Posts: 40
|
Posted: Wed Aug 19, 2009 11:06 am Post subject: |
|
|
Hi.
Thank you for the help. We made amendments and now everything works properly. We continue testing.
Will inform you accordingly.
BR
Vadim |
|
Back to top |
|
vadim Member
Joined: 16 Oct 2008 Posts: 40
|
Posted: Fri Aug 21, 2009 2:46 pm Post subject: |
|
|
We noticed that you've renewed Avantfax and we tried to istall it to distributiv 1.4.5.
However we came across one mistacke with THUMB pictures:
http://www.medargo.ru/sms/avantfax.png |
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Aug 21, 2009 3:57 pm Post subject: |
|
|
If you notice the changelog:
ap/ilmbase-1.0.1-i486-1sms.txz: Added. Required by AvantFax.
ap/expect-5.44.1.11-i486-3.txz: Added. Required by AvantFax.
ap/imagemagick-6.5.3_3-i486-1.txz: Added. Required by AvantFax.
ap/djvulibre-3.5.22-i486-1sms.txz: Added. Required by AvantFax.
extra/packages/avantfax-3.1.6-i486-2sms.txz: Removed expect, imagemagick, ghostscript packages
fixed wrong symlink to /etc/file/magic.
Have you install ilmbase, djvulibre, imagemagick, and expect before installing the new avantfax package?
If you haven't, install them after.
Those changes will be applied to SMS-1.4.6.
gerasimos_h _________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
|