Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
Avantfax problem
View previous topic :: View next topic  
Author Message
vadim
Member


Joined: 16 Oct 2008
Posts: 40

PostPosted: Mon Aug 10, 2009 3:21 pm    Post subject: Avantfax problem Reply with quote

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
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Mon Aug 10, 2009 3:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
vadim
Member


Joined: 16 Oct 2008
Posts: 40

PostPosted: Fri Aug 14, 2009 2:54 pm    Post subject: Avantfax problem Reply with quote

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
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Fri Aug 14, 2009 4:06 pm    Post subject: Reply with quote

try upgrading imagemagick from
http://slackware.mirrors.tds.net/pub/slackware/slackware-current/slackware/xap/imagemagick-6.5.3_3-i486-1.txz
and see if that's help
I'll try to find time to test it myself.

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
vadim
Member


Joined: 16 Oct 2008
Posts: 40

PostPosted: Mon Aug 17, 2009 3:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Mon Aug 17, 2009 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
vadim
Member


Joined: 16 Oct 2008
Posts: 40

PostPosted: Wed Aug 19, 2009 11:06 am    Post subject: Reply with quote

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
View user's profile Send private message
vadim
Member


Joined: 16 Oct 2008
Posts: 40

PostPosted: Fri Aug 21, 2009 2:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Fri Aug 21, 2009 3:57 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional