[Freeswitch-users] Fax processing not successful - result (41)TIFF/F file cannot be opened.

envelopes envelopes sunwood360 at gmail.com
Sun Feb 27 23:14:18 MSK 2011


yes!  that is it.

the tif file that I used was copied from a sample file included in windows 7
installation.  C:\Users\xyz\Documents\Fax\Inbox\WelcomeFax.tif

per your tip, I generated the tif file by myself and it worked now.

1) grab a pdf file.
2) sudo apt-get install imagemagick
3) convert -density 204x98 -resize 1728x1186\! -monochrome -compress Fax
./test.pdf ./test.tiff
4) originate loopback/9979 &txfax(/tmp/test.tiff)

whoever has FS wiki edit permission please update mod_spandsp. don't let
future users frustrated by this damn stupid issue.
I also believe this is a bug in mod_spandsp since it can't handle standard
windows tif file.

Johannes, thanks a lot for your great tip.




On Sun, Feb 27, 2011 at 1:37 AM, Johannes Jakob <jjj at 3js.de> wrote:

> Hi,
>
> I'm quite new to the list and don't feel like an expert, so I'm not going
> to reply to the list, but to you directly.
>
> I had a similar problem some days ago and I think the problem was the tif
> file itself.
> I had converted a normal picture into tiff format and FS couldn't read it
> the way it wanted to.
>
> I then changed to a file that FS had written himself (a received fax) and
> that worked just fine.
>
> Maybe this helps ;)
>
> Greetings,
>  John
>
>
> On 27.02.2011, at 08:37, envelopes envelopes wrote:
>
> > It seems not  a permission issue.
> >
> > please look at line 49 & 50 @ pastebin
> >
> > http://pastebin.com/M2LhT1zD
> >
> >
> > 49. 2011-02-26 23:30:40.964962 [DEBUG] mod_spandsp_fax.c:335 Fax
> processing not successful - result (17) Received a DCN while waiting for a
> DIS.
> > 50. 2011-02-26 23:30:40.964962 [DEBUG] mod_spandsp_fax.c:335 Fax
> processing not successful - result (41) TIFF/F file cannot be opened.
> >
> >
> >
> > On Sat, Feb 26, 2011 at 10:57 PM, Madovsky <infos at madovsky.org> wrote:
> > > If this is bug, please fix it.  If there is a catch, please post the
> solution and summarize on wiki page.
> > hjey, cool man, it's an open source mailing list....
> > /tmp is usually not a folder to execute anything.
> > try to change the folder with write permssion...
> > ----- Original Message -----
> > From: envelopes envelopes
> > To: FreeSWITCH Users Help
> > Sent: Sunday, February 27, 2011 1:46 AM
> > Subject: Re: [Freeswitch-users] Fax processing not successful - result
> (41)TIFF/F file cannot be opened.
> >
> >
> http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg06601.html
> >
> > in fact, I am running as a root. so the reason in that thread doesn't
> apply to my case.
> >
> > root     22613  9.5  0.7  40064 15724 pts/2    SLl+ 22:35   0:41
> ./bin/freeswitch
> >
> > /tmp directory has worldwide write permission:
> > drwxrwxrwt  20 root root  4096 2011-02-26 22:17 tmp
> >
> > If this is bug, please fix it.  If there is a catch, please post the
> solution and summarize on wiki page.
> >
> > One of the particular reason that i like FS is prompt support and
> enthusiasm from FS developers.
> > please do not lost your momentum.
> >
> >
> > thanks!
> >
> > On Sat, Feb 26, 2011 at 10:10 PM, Madovsky <infos at madovsky.org> wrote:
> > look at the the emailist archive,
> > I remember that one had the same problem
> > but don't remember the solution
> > ----- Original Message -----
> > From: envelopes envelopes
> > To: FreeSWITCH Users Help
> > Sent: Sunday, February 27, 2011 12:53 AM
> > Subject: Re: [Freeswitch-users] Fax processing not successful - result
> (41)TIFF/F file cannot be opened.
> >
> > no one had similar issue?
> >
> > On Fri, Feb 25, 2011 at 11:33 AM, envelopes envelopes <
> sunwood360 at gmail.com> wrote:
> > I don't see any permission issue here.
> >
> >
> > /tmp$ ls -l /tmp/a.tif
> > -rwxrwxrwx 1 root root 179378 2011-02-02 05:30 /tmp/a.tif
> >
> > receive side also writes to /tmp directroy.
> >
> > It is really weird.
> >
> >
> >
> >
> > On Fri, Feb 25, 2011 at 11:30 AM, Madovsky <infos at madovsky.org> wrote:
> > check permissions
> > ----- Original Message -----
> > From: envelopes envelopes
> > To: FreeSWITCH Users Help
> > Sent: Friday, February 25, 2011 2:23 PM
> > Subject: [Freeswitch-users] Fax processing not successful - result
> (41)TIFF/F file cannot be opened.
> >
> > I have the extension in default.xml;
> >
> > <extension name="fax_receive2">
> >      <condition field="destination_number" expression="^(9979)$">
> >        <action application="answer" />
> >        <action application="playback" data="silence_stream://2000"/>
> >        <action application="rxfax" data="/tmp/fax-${uuid}.rxfax.tiff"/>
> >        <action application="hangup"/>
> >      </condition>
> >    </extension>
> >
> > then in fs_cli : originate loopback/9979 &txfax(/tmp/a.tif)
> >
> > in fact, the file /tmp/a.tif does exist.
> >
> > /tmp$ ls -l /tmp/a.tif
> > -rwxrwxrwx 1 root root 179378 2011-02-02 05:30 /tmp/a.tif
> >
> >
> > 2011-02-25 11:17:39.444902 [DEBUG] mod_spandsp_fax.c:1108 Raw write codec
> activation Success L16
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:323
> ==============================================================================
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:335 Fax processing
> not successful - result (17) Received a DCN while waiting for a DIS.
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:340 Remote station
> id:
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:341 Local station
> id:  SpanDSP Fax Ident
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:342 Pages
> transferred: 0
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:344 Total fax pages:
>   0
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:345 Image
> resolution:  0x0
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:346 Transfer Rate:
>   14400
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:348 ECM status
>   off
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:349 remote country:
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:350 remote vendor:
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:351 remote model:
> > 2011-02-25 11:17:46.805168 [DEBUG] mod_spandsp_fax.c:353
> ==============================================================================
> > 2011-02-25 11:17:46.825158 [DEBUG] mod_spandsp_fax.c:323
> ==============================================================================
> > 2011-02-25 11:17:46.825158 [DEBUG] mod_spandsp_fax.c:335 Fax processing
> not successful - result (41) TIFF/F file cannot be opened.
> > 2011-02-25 11:17:46.825158 [DEBUG] mod_spandsp_fax.c:340 Remote station
> id: SpanDSP Fax Ident
> > 2011-02-25 11:17:46.825158 [DEBUG] mod_spandsp_fax.c:341 Local station
> id:  SpanDSP Fax Ident
> >
> >
> > what is going wrong??
> >
> > thanks
> >
> >
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
> >
> >
> >
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
> >
> >
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110227/369c05bd/attachment-0001.html 


More information about the FreeSWITCH-users mailing list