Re: [Asterisk-Users] A software FAX modem - imap

2003-10-28 Thread Garry Adkins
Wouldn't it be interesting to combine this with the discussions on putting
voicemails in imap?

Use the mailbox for both, and you can store faxes and voicemails in the same
mailbox.  Just make voicemail skip it with "message 3 is a fax" or something
similar.

-G


- Original Message - 
From: "Steven Critchfield" <[EMAIL PROTECTED]>

> Also I was able to take the resulting tiff file and create a sample call
> file that then sent the file back out to the real fax machine
> successfully. The output was nearly identical to the original with the
> exception of being darker. I'll attribute that to cheap fax machine with
> crappy scan head.


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-26 Thread Ulexus
This sounds like the fax resolution is incorrect.  Basically, there are only 
two resolutions for faxes, normal and fine.  The only difference in these two 
is the number of lines, or the "Y" dimension.  With "fine" resolution, you 
simply have twice the lines.  Unfortunately, I do not believe there is any 
header information telling which resolution the file is.  The resolution _is_ 
communicated before sending the fax, however, as part of the initial 
communication negotiation.  This basically means that, if it does not yet 
have the facility, the softfax application needs to record what resolution 
the fax is.

On Wednesday, 22 October, 2003 10:49, Steven Critchfield wrote:
> Figured the group would like to hear this. I just faxed a sample
> document from a real fax machine to asterisk semi successfully. I'll
> consider it just semi successfully for now because either I haven't
> found a viewer that puts the image in proper aspect ratio or the storage
> is screwy. I'm thinking it may be the fact that image apps expect the
> file to be in X by X dpi not X by Y. Otherwise it was readable.
>
> Also I was able to take the resulting tiff file and create a sample call
> file that then sent the file back out to the real fax machine
> successfully. The output was nearly identical to the original with the
> exception of being darker. I'll attribute that to cheap fax machine with
> crappy scan head.
>
> Otherwise, Great job.
>
> So far this is my bug list.
>
> 1. Makefile uses a include and library directory from /home/steveu.
>
> 2. Shouldn't make install for the spandsp library put the headers and
> libraries in the proper locations so we don't have to make special
> include links?
>
> Basically if #2 is fixed, then #1 will not need those paths.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-24 Thread marrandy
On Friday 24 October 2003 12:54 pm, Dave Cotton wrote:
> On Fri, 2003-10-24 at 18:27, Johnson, Randy wrote:
> > I would really, really love to get past the "I got a fax!" step with
> > this...
> 
> Hey folks what distributions are you compiling on?
> 
> I can't even get spandsp compiled on Mandrake 9.0 or 9.2 [But don't
> mention MDK to Steve C]
> -- 
> Dave Cotton <[EMAIL PROTECTED]>

Hello David.

Unfortunately, I don't have the spare equipment, either computers or telephony 
hardware to build on other dist's.  My other Linux dists are on older and 
more challenged hardware.
I used to run a lot Linux variants, but am down to only 6 now.
Plus the BSD's and commercial unixes keep me busy.

I don't see why it should be a problem, it's a server, no gui needed so 
something that builds on one Linux dist, should build, trivially on the 
others.

Google is your friend if you like to use the rpm's, but can't find them on 
your mandrake CD's.  That goes for any other dist.

e.g. filename mandrake rpm   will give you a decent list to download the 
relevent missing rpm.

Regards...Martin

-- 
Do not worry about which side your bread is buttered on: you eat BOTH sides.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-24 Thread marrandy
On Friday 24 October 2003 03:19 pm, Dave Cotton wrote:

> Unfortunately you broke the thread with your second post, so your
> message did not appear in the thread. That's why Steve C and I are so
> ready to jump on bad posting. :)
> 
> -- 
> Dave Cotton <[EMAIL PROTECTED]>

Dave  :-)

That was only because there is a significant delay, several minutes, between 
posting and receiving the mail to this list.  
I noticed the error very shortly after posting and couldn't wait for it to 
arrive to correct myself.  Other things to do.  :-)

-- 
One man's constant is another man's variable.
-- A.J. Perlis

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-24 Thread Dave Cotton
On Fri, 2003-10-24 at 20:11, marrandy wrote:
> On Friday 24 October 2003 01:45 pm, Dave Cotton wrote:
> 
> > > Basically, if in doubt, install any devs/src as well.
> > 
> > Good answer, but not to the question asked. The thread is "A software
> > FAX modem"
> > 
> > -- 
> > Dave Cotton <[EMAIL PROTECTED]>
> 
> 
> Ugh...I noticed that and posted a follow-up 3 minutes later at 1:33pm, some 12 
> minutes earlier than your mail.

Unfortunately you broke the thread with your second post, so your
message did not appear in the thread. That's why Steve C and I are so
ready to jump on bad posting. :)

-- 
Dave Cotton <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] A software FAX modem

2003-10-24 Thread Steven Critchfield
On Fri, 2003-10-24 at 11:54, Dave Cotton wrote:
> On Fri, 2003-10-24 at 18:27, Johnson, Randy wrote:
> > I would really, really love to get past the "I got a fax!" step with
> > this...
> 
> Hey folks what distributions are you compiling on?
> 
> I can't even get spandsp compiled on Mandrake 9.0 or 9.2 [But don't
> mention MDK to Steve C]

I don't mind Mandrake as much as the users that get attracted to it for
starters. Not all Mandrake users are bad.

As most people know, I built mine on debian. I had to get the libtiff
source file to get a few extra header files that are not included in the
-dev package. If I had time to deal with it, I'd file a bug report about
it.

As for the setup I tested. I have a T100P connected to a Zhone10b
channel bank. The fax machine is some el cheapo thing my boss picked up
recently so we didn't have to deal with the film transfer crap.

I set up a fax extension 107 and dialed it directly to send the fax. I
set up a sample.call file to send the tiff file back to the fax machine.

Outside of the tiff files, the rest of it was fairly simple for me to
set up. 
-- 
Steven Critchfield  <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-24 Thread Steven Critchfield
On Fri, 2003-10-24 at 10:56, sparc wrote:
> Steven Critchfield wrote:
> 
> >On Fri, 2003-10-24 at 10:19, sparc wrote:
> >  
> >
> >>Hi all
> >>
> >>i just test the /Steve Underwood software fax modem
> >>it works with my CVS version of asterik ( 20 october 2003 )
> >>
> >>I can receive fax into tiff file :
> >>in my extension.conf , i put this line : exten => 
> >>fax,1,RxFAX(/home/steveu/testfax2.tif)
> >>and i can receive fax
> >>
> >>now my problem, is how can i do to send fax ?
> >>I cannot see how to send a fax .
> >>
> >>
> >
> >The way I did it was to use a sample.call file like below to use the
> >tiff file you have listed above.
> >
> >
> >Channel: Zap/g2/XXX
> >
> >Application: txfax
> >Data: /home/steveu/testfax2.tif
> >
> >
> >  
> >
> Ok, so what i need to put in my extension.conf to activate the 
> sample.call file ?

You don't put anything in the extensions.conf file. You drope the
sample.call file in /var/spool/asterisk/outgoing. When asterisk sees
this file, it will read it and make the call and connect the txfax
application to the line.
-- 
Steven Critchfield  <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-24 Thread marrandy
On Friday 24 October 2003 01:45 pm, Dave Cotton wrote:

> > Basically, if in doubt, install any devs/src as well.
> 
> Good answer, but not to the question asked. The thread is "A software
> FAX modem"
> 
> -- 
> Dave Cotton <[EMAIL PROTECTED]>


Ugh...I noticed that and posted a follow-up 3 minutes later at 1:33pm, some 12 
minutes earlier than your mail.

-- 
All most men really want in life is a wife, a house, two kids and a car,
a cat, no maybe a dog.  Ummm, scratch one of the kids and add a dog.
Definitely a dog.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-24 Thread Dave Cotton
On Fri, 2003-10-24 at 19:30, marrandy wrote:
> On Friday 24 October 2003 12:54 pm, Dave Cotton wrote:
> > On Fri, 2003-10-24 at 18:27, Johnson, Randy wrote:
> > > I would really, really love to get past the "I got a fax!" step with
> > > this...
> > 
> > Hey folks what distributions are you compiling on?
> > 
> > I can't even get spandsp compiled on Mandrake 9.0 or 9.2 [But don't
> > mention MDK to Steve C]
> > -- 
> > Dave Cotton <[EMAIL PROTECTED]>
> 
> 
> Mandrake v9.1 works fine.
> 
> Make sure you have :-
> 
> a)   the same kernel plus source
> b)   readline plus devel
> c)   openssl plus devel
> d)   bison
> e)   Doxygen
> 
> If you want the progdocs then graphviz but that needs more libraries.
> 
> Basically, if in doubt, install any devs/src as well.

Good answer, but not to the question asked. The thread is "A software
FAX modem"

-- 
Dave Cotton <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Fwd: Re: [Asterisk-Users] A software FAX modem

2003-10-24 Thread marrandy
Oop's.

You were talking about the Fax build.

Disregard my previous mail.

-- 
I want a WESSON OIL lease!!
--- Begin Message ---
On Friday 24 October 2003 12:54 pm, Dave Cotton wrote:
> On Fri, 2003-10-24 at 18:27, Johnson, Randy wrote:
> > I would really, really love to get past the "I got a fax!" step with
> > this...
> 
> Hey folks what distributions are you compiling on?
> 
> I can't even get spandsp compiled on Mandrake 9.0 or 9.2 [But don't
> mention MDK to Steve C]
> -- 
> Dave Cotton <[EMAIL PROTECTED]>


Mandrake v9.1 works fine.

Make sure you have :-

a)   the same kernel plus source
b)   readline plus devel
c)   openssl plus devel
d)   bison
e)   Doxygen

If you want the progdocs then graphviz but that needs more libraries.

Basically, if in doubt, install any devs/src as well.

Regards...Martin

-- 
But like the Good Book says... There's BIGGER DEALS to come!
--- End Message ---


Re: [Asterisk-Users] A software FAX modem

2003-10-24 Thread marrandy
On Friday 24 October 2003 12:54 pm, Dave Cotton wrote:
> On Fri, 2003-10-24 at 18:27, Johnson, Randy wrote:
> > I would really, really love to get past the "I got a fax!" step with
> > this...
> 
> Hey folks what distributions are you compiling on?
> 
> I can't even get spandsp compiled on Mandrake 9.0 or 9.2 [But don't
> mention MDK to Steve C]
> -- 
> Dave Cotton <[EMAIL PROTECTED]>


Mandrake v9.1 works fine.

Make sure you have :-

a)   the same kernel plus source
b)   readline plus devel
c)   openssl plus devel
d)   bison
e)   Doxygen

If you want the progdocs then graphviz but that needs more libraries.

Basically, if in doubt, install any devs/src as well.

Regards...Martin

-- 
But like the Good Book says... There's BIGGER DEALS to come!

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] A software FAX modem

2003-10-24 Thread Dave Cotton
On Fri, 2003-10-24 at 18:27, Johnson, Randy wrote:
> I would really, really love to get past the "I got a fax!" step with
> this...

Hey folks what distributions are you compiling on?

I can't even get spandsp compiled on Mandrake 9.0 or 9.2 [But don't
mention MDK to Steve C]
-- 
Dave Cotton <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] A software FAX modem

2003-10-24 Thread Johnson, Randy
Title: RE: [Asterisk-Users] A software FAX modem






> -Original Message-
> From: Steven Critchfield [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, October 24, 2003 11:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Asterisk-Users] A software FAX modem
> 
> 
> On Fri, 2003-10-24 at 10:19, sparc wrote:
> > Hi all
> > 
> > i just test the /Steve Underwood software fax modem
> > it works with my CVS version of asterik ( 20 october 2003 )
> > 
> > I can receive fax into tiff file :
> > in my extension.conf , i put this line : exten => 
> > fax,1,RxFAX(/home/steveu/testfax2.tif)
> > and i can receive fax
> > 


I'm just not having any success receiving faxes--what are you guys doing differently?  After trying various fax machines will calls coming in to Asterisk over a T100P, I've tried a fax modem directly on an Asterisk USB FXS port, and the modems still never properly negotiate and transmit the fax.  I'm just wondering what your setup is--type of fax machine or modem, T1 or analog incoming, TDM400P FXS port or a channel bank, CPU speed, etc.  I would really, really love to get past the "I got a fax!" step with this...

Thanks,
Randy Johnson





Re: [Asterisk-Users] A software FAX modem

2003-10-24 Thread sparc
Steven Critchfield wrote:

On Fri, 2003-10-24 at 10:19, sparc wrote:
 

Hi all

i just test the /Steve Underwood software fax modem
it works with my CVS version of asterik ( 20 october 2003 )
I can receive fax into tiff file :
in my extension.conf , i put this line : exten => 
fax,1,RxFAX(/home/steveu/testfax2.tif)
and i can receive fax

now my problem, is how can i do to send fax ?
I cannot see how to send a fax .
   

The way I did it was to use a sample.call file like below to use the
tiff file you have listed above.
Channel: Zap/g2/XXX

Application: txfax
Data: /home/steveu/testfax2.tif
 

Ok, so what i need to put in my extension.conf to activate the 
sample.call file ?

Thanks for the answer

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-24 Thread Rainer Jochem
On Fri, Oct 24, 2003 at 05:19:39PM +0200, sparc wrote:
> Hi all
> 
> i just test the /Steve Underwood software fax modem
> it works with my CVS version of asterik ( 20 october 2003 )
> 
> I can receive fax into tiff file :
> in my extension.conf , i put this line : exten => 
> fax,1,RxFAX(/home/steveu/testfax2.tif)
> and i can receive fax
> 
> now my problem, is how can i do to send fax ?
> I cannot see how to send a fax .

If you want to send a fax, you first need a suitable
tiff-file. You can create such a file from a *.ps
using

 gs -q -sDEVICE=tiffg3 -dNOPAUSE \
   -sOutputFile=letter.%03d letter.ps  1234,1,txfax(/home/steveu/testfax.tif)

Then go to your fax machine, dial 1234 and you will receive
your fax (depending on your fax machine it might be neccessary
to hit the "start/dial" button again, if the asterisk answers). 
It should also be possible to send the fax straight
from asterisk, but currently I don't know how.


HTH

 Rainer

-- 
http://graphics.cs.uni-sb.de/VoIP/

pgp0.pgp
Description: PGP signature


Re: [Asterisk-Users] A software FAX modem

2003-10-24 Thread Steven Critchfield
On Fri, 2003-10-24 at 10:19, sparc wrote:
> Hi all
> 
> i just test the /Steve Underwood software fax modem
> it works with my CVS version of asterik ( 20 october 2003 )
> 
> I can receive fax into tiff file :
> in my extension.conf , i put this line : exten => 
> fax,1,RxFAX(/home/steveu/testfax2.tif)
> and i can receive fax
> 
> now my problem, is how can i do to send fax ?
> I cannot see how to send a fax .

The way I did it was to use a sample.call file like below to use the
tiff file you have listed above.


Channel: Zap/g2/XXX

Application: txfax
Data: /home/steveu/testfax2.tif


-- 
Steven Critchfield <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] A software FAX modem

2003-10-23 Thread Edwin Silva
Thanks Steven :)

-Original Message-
From: Steven Critchfield [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2003 10:40 AM
To: [EMAIL PROTECTED]
Subject: RE: [Asterisk-Users] A software FAX modem


On Thu, 2003-10-23 at 09:07, Edwin Silva wrote:
> Same here. Could someone who has the latest tarball post a mirror? 
> thanx

Done, These are from when I downloaded them for my use. These are the
originals, and not the slightly modified versions to make it work on my
system.

http://www.drunkenlogic.com/asterisk/

> -Original Message-
> From: Brian Capouch [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 23, 2003 1:07 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Asterisk-Users] A software FAX modem
> 
> 
> Steve Underwood wrote:
> > 
> > You can find the software at <http://www.opencall.org>. It currently

> > consists of two parts:
> > 
> 
> 
> I cannot get that domain to resolve tonight.
> 
> FYI.
> 
> B.
> 
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED] 
> http://lists.digium.com/mailman/listinfo/asterisk-users
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED] 
> http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Steven Critchfield  <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] A software FAX modem

2003-10-23 Thread Steven Critchfield
On Thu, 2003-10-23 at 09:07, Edwin Silva wrote:
> Same here. Could someone who has the latest tarball post a mirror?
> thanx

Done, These are from when I downloaded them for my use. These are the
originals, and not the slightly modified versions to make it work on my
system.

http://www.drunkenlogic.com/asterisk/

> -Original Message-
> From: Brian Capouch [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 23, 2003 1:07 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Asterisk-Users] A software FAX modem
> 
> 
> Steve Underwood wrote:
> > 
> > You can find the software at <http://www.opencall.org>. It currently
> > consists of two parts:
> > 
> 
> 
> I cannot get that domain to resolve tonight.
> 
> FYI.
> 
> B.
> 
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
-- 
Steven Critchfield  <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] A software FAX modem

2003-10-23 Thread Edwin Silva
Same here. Could someone who has the latest tarball post a mirror?
thanx

-Original Message-
From: Brian Capouch [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 23, 2003 1:07 AM
To: [EMAIL PROTECTED]
Subject: Re: [Asterisk-Users] A software FAX modem


Steve Underwood wrote:
> 
> You can find the software at <http://www.opencall.org>. It currently
> consists of two parts:
> 


I cannot get that domain to resolve tonight.

FYI.

B.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-22 Thread Brian Capouch
Steve Underwood wrote:
You can find the software at . It currently 
consists of two parts:



I cannot get that domain to resolve tonight.

FYI.

B.

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-22 Thread Steve Underwood
Steven Critchfield wrote:

[...]

Now I just wish it was robust enough to work over my IAX connection
without problem. I'm sure it is the GSM compression that is biting it.
I'll run some more tests and then maybe I'll move it to a machine
located in the same rack as my phone gateway machine. At that time, it
shouldn't be a big deal for me to use G711 for the transport. I'm just
wary of putting it on my production switch at this moment. 
 

Any compression below G.711 will screw most modems. GSM certainly will. 
If you use G,711 you still need to beware of any data slips. Even a 
single sample hop will kill a modem faster than 1200bps. They encode 
data as phase, and the phase will jump irrecoverably with even a single 
sample of slip.

Regards,
Steve
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-22 Thread Steven Critchfield
On Wed, 2003-10-22 at 11:32, Steve Underwood wrote:
> Hi Steven,
> 
> I think I have the tagging right for the aspect ratio. A lot of display 
> software gets it wrong, including some well regarded things like the 
> GIMP. KFax displayed my fine and standard test FAXes properly.

kfax works well as you suggested. Also when I used the TIFF tools to
split the tiff, then gv would view it with appropriate aspect ratio. So
I think you are correctly writing the file. I was just using quirky
image apps.  

Now I just wish it was robust enough to work over my IAX connection
without problem. I'm sure it is the GSM compression that is biting it.
I'll run some more tests and then maybe I'll move it to a machine
located in the same rack as my phone gateway machine. At that time, it
shouldn't be a big deal for me to use G711 for the transport. I'm just
wary of putting it on my production switch at this moment. 
-- 
Steven Critchfield  <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-22 Thread Steve Underwood
Hi Steven,

I think I have the tagging right for the aspect ratio. A lot of display 
software gets it wrong, including some well regarded things like the 
GIMP. KFax displayed my fine and standard test FAXes properly.

Steven Critchfield wrote:

Figured the group would like to hear this. I just faxed a sample
document from a real fax machine to asterisk semi successfully. I'll
consider it just semi successfully for now because either I haven't
found a viewer that puts the image in proper aspect ratio or the storage
is screwy. I'm thinking it may be the fact that image apps expect the
file to be in X by X dpi not X by Y. Otherwise it was readable.
Also I was able to take the resulting tiff file and create a sample call
file that then sent the file back out to the real fax machine
successfully. The output was nearly identical to the original with the
exception of being darker. I'll attribute that to cheap fax machine with
crappy scan head.
Otherwise, Great job.

So far this is my bug list. 

1. Makefile uses a include and library directory from /home/steveu.

My install notes mention that.

2. Shouldn't make install for the spandsp library put the headers and
libraries in the proper locations so we don't have to make special
include links?
Lots of nice things should happen in time :-)

Basically if #2 is fixed, then #1 will not need those paths.

Obviously.

Well, it seems my own success is not unique. However, several people 
seem to be getting a similar crashing problem, and I haven't worked out 
the cause yet. It never crashes for me.

Regards,
Steve
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-22 Thread tom
This sounds very promising. Looks like something along the lines of
store-and-forward fax might not be too far off : ).

Thanks,

Tom

On Wed, 2003-10-22 at 08:49, Steven Critchfield wrote:
> Figured the group would like to hear this. I just faxed a sample
> document from a real fax machine to asterisk semi successfully. I'll
> consider it just semi successfully for now because either I haven't
> found a viewer that puts the image in proper aspect ratio or the storage
> is screwy. I'm thinking it may be the fact that image apps expect the
> file to be in X by X dpi not X by Y. Otherwise it was readable.
> 
> Also I was able to take the resulting tiff file and create a sample call
> file that then sent the file back out to the real fax machine
> successfully. The output was nearly identical to the original with the
> exception of being darker. I'll attribute that to cheap fax machine with
> crappy scan head.
> 
> Otherwise, Great job.
> 
> So far this is my bug list. 
> 
> 1. Makefile uses a include and library directory from /home/steveu.
> 
> 2. Shouldn't make install for the spandsp library put the headers and
> libraries in the proper locations so we don't have to make special
> include links?
> 
> Basically if #2 is fixed, then #1 will not need those paths.
> 

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-22 Thread Steven Critchfield
Figured the group would like to hear this. I just faxed a sample
document from a real fax machine to asterisk semi successfully. I'll
consider it just semi successfully for now because either I haven't
found a viewer that puts the image in proper aspect ratio or the storage
is screwy. I'm thinking it may be the fact that image apps expect the
file to be in X by X dpi not X by Y. Otherwise it was readable.

Also I was able to take the resulting tiff file and create a sample call
file that then sent the file back out to the real fax machine
successfully. The output was nearly identical to the original with the
exception of being darker. I'll attribute that to cheap fax machine with
crappy scan head.

Otherwise, Great job.

So far this is my bug list. 

1. Makefile uses a include and library directory from /home/steveu.

2. Shouldn't make install for the spandsp library put the headers and
libraries in the proper locations so we don't have to make special
include links?

Basically if #2 is fixed, then #1 will not need those paths.


-- 
Steven Critchfield  <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-22 Thread Steven Critchfield
On Tue, 2003-10-21 at 09:22, Steve Underwood wrote:
> Hi,
> 
> I did say this was a first test release :-)  I can't be held responsible 
> for libtiff being empty on your machine, but they other issues are my 
> fault. I have put a new tarball up, which should need nothing more than 
> libtiff for the library to work. All the other libraries you had issues 
> with are only needed by the test programs. "./configure" will now only 
> set things up to build the library. "./configure --enable-doc 
> --enable-tests --enable-itutests" will set things up to be everything.
> 
> This newer tarball also has improvements in the software. The V.29 modem 
> now works at all three speeds - 9600, 7200, and 4800bps. Previously I 
> had only debugged the 9600bps mode. FAX doesn't actually use the 4800bps 
> mode, but I thought I ought to fully implement the spec. (thats another 
> way of saying it was easy to do after getting 9600 and 7200 working :-) 
> ). I also fixed something that could cause crashes if you tried to send 
> a non-existant TIFF file.
> 
> I'm sorry if I disappointed the early adopters, but it *will* get better.

Early adopters should be used to this. Any comments are just to help get
the bugs worked out so we all can enjoy.

BTW, Mark just added app_cut.so to the Makefile and this has caused your
patch to not apply cleanly. It was minor for me to fix it by hand, but
this will need to be updated.
-- 
Steven Critchfield  <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-22 Thread Maik Schmitt
> We tried to use it witch our AVM Fritz!Card with chan_capi but
> asterisk always crashes after our fax-machines shows the ID of the
> soft-fax (12345678). Here's a backtrace:

I just found out, that it was my own fault. The apps were linked
against an older version of libtiff (3.5.5) which was installed in
/usr/lib. The newer Version was in /usr/local/lib. I recompiled the
apps with LD_RUN_PATH set to /usr/local/lib and now it works.

I've just send a fax over our pstn<->sip router to our asterisk :)

-- 
Maik Schmitthttp://graphics.cs.uni-sb.de/VoIP

pgp0.pgp
Description: PGP signature


RE: [Asterisk-Users] A software FAX modem

2003-10-22 Thread Johnson, Randy
Title: RE: [Asterisk-Users] A software FAX modem





> -Original Message-
> From: Steve Underwood [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, October 21, 2003 8:23 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Asterisk-Users] A software FAX modem
> 
> 
> Hi,
> 
> Interesting. I am using RH9 for testing. The only piece of 
> libtiff that 
> was missing for me was tiffiop.h. That is why I put a copy on the FTP 
> site. Do you have the libtiff-devel package installed? None of the 
> libraries can be used to build anything on RH without the -devel 
> package installed.


The biggest TIFF related problem for me was that tif_dir.h was included from tiffiop.h, but not installed in /usr/local/include.  I built from the original spandsp-20031020.tgz tarball on RH9 with some help from the tiff-v3.5.7 tarball.

> 
> It seems you are not the only one getting this coredump. I assume you 
> are using exactly the same libtiff as me, since you are using RH9. 


I never saw a coredump or crash.  I did rebuild libtiff from source while I was looking for the missing header file, but I'm still linking against the stock RH9 libtiff.so in /usr/lib (my built libtiff is in /usr/local/lib).

> Strange. Still, it seems people are getting some communication at the 
> V.21 and V.29 modem level now. That is certainly progress :-)


Yep.  I couldn't successfully receive a fax from a faxmodem, but app_rxfax is definitely communicating at the FAX level.  Here is an example from the Asterisk console on my test system:

*CLI> -- Starting simple switch on 'Zap/1-1'
    -- Hungup 'Zap/1-1'
    -- Starting simple switch on 'Zap/1-1'
    -- Executing RxFAX("Zap/1-1", "/tmp/testfax.tif") in new stack
Changed from phase 0 to 1
Start receiving document
Changed from phase 1 to 4
Sending ident
>>> CSI: 40 38 37 36 35 34 33 32 31 20 20 20 20 20 20 20 20 20 20 20 20
DIS:
Store and forward Internet fax: no
Real-time Internet fax: no
Preferred octets: 256
Can receive fax
Data signalling rate: V.29
R8x7.7lines/mm and/or 200x200pels/25.4mm OK
2D coding OK
Scan line length: 215mm
Recording length: A4 (297mm)
Receiver's minimum scan line time: 0ms at 3.85 l/mm: T7.7 = T3.85
R8x15.4lines/mm OK
Inch-based resolution preferred: no
Metric-based resolution preferred: no
Minimum scan line time for higher resolutions: T15.4 = T7.7
>>> DIS: 80 00 c6 f0 80 80 01
HDLC underflow in state 9
Changed from phase 4 to 3
<<< TSI: 43 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 78 61 46
TSI without final frame tag
Remote fax gave TSI as: "Fax "
<<< DCS: 83 00 c6 70
DCS with final frame tag
In state 9
DCS:
Store and forward Internet fax: no
Real-time Internet fax: no
Can receive fax
Data signalling rate: V.29, 9600bps
R8x7.7lines/mm and/or 200x200pels/25.4mm OK
2D coding OK
Scan line length: 215mm
Recording length: A4 (297mm)
Minimum scan line time: 0ms
Get at V.29
Changed from phase 3 to 5
Fast carrier up
Fast carrier down
Changed from phase 5 to 4
0 bad bits in trainability test
Start rx document - compression 2
Start rx page
>>> CFR: 84
HDLC underflow in state 5
Post trainability
Changed from phase 4 to 5
Fast carrier up
Fast carrier down
Fast carrier up
Fast carrier down
Fast carrier up
Fast carrier training failed
Fast carrier down
Fast carrier up
Fast carrier down
Fast carrier up
Fast carrier training failed
Fast carrier down
Fast carrier up
Fast carrier down
Fast carrier up
Fast carrier down
    -- Hungup 'Zap/1-1'


> 
> I will try to provoke the software some more, and see if I 
> can reproduce 
> this problem. I have sent a couple of rolls of FAX 
> successfully from my 
> soft-fax to a real FAX machine (plus some that didn't go so well, of 
> course), and quite a few files the other way. This thing really is 
> basically capable of working in its current state.
> 


Any luck with receiving from fax modems?  The example above was a transmission from an old Hayes Optima 288.  I can test with a variety of Hayes, Megahertz, USR, and MultiTech modems if that information would be useful to you.

Thanks for the great work, Steve.  This is going to be killer when it gets polished up.


Randy Johnson





Re: [Asterisk-Users] A software FAX modem

2003-10-21 Thread Steve Underwood
Hi,

Interesting. I am using RH9 for testing. The only piece of libtiff that 
was missing for me was tiffiop.h. That is why I put a copy on the FTP 
site. Do you have the libtiff-devel package installed? None of the 
libraries can be used to build anything on RH without the -devel 
package installed.

It seems you are not the only one getting this coredump. I assume you 
are using exactly the same libtiff as me, since you are using RH9. 
Strange. Still, it seems people are getting some communication at the 
V.21 and V.29 modem level now. That is certainly progress :-)

I will try to provoke the software some more, and see if I can reproduce 
this problem. I have sent a couple of rolls of FAX successfully from my 
soft-fax to a real FAX machine (plus some that didn't go so well, of 
course), and quite a few files the other way. This thing really is 
basically capable of working in its current state.

Regards,
Steve
Alex Zarubin wrote:

Found tif_dir.h, make and install look OK. Now it's a coredump:

#0  0x4b4ba652 in _TIFFFax3fillruns () from /usr/lib/libtiff.so.3
(gdb) bt
#0  0x4b4ba652 in _TIFFFax3fillruns () from /usr/lib/libtiff.so.3
#1  0x4b4074d4 in t4_rx_end_page () from 
/usr/lib/asterisk/modules/app_rxfax.so
#2  0x4b40062e in key () from /usr/lib/asterisk/modules/app_rxfax.so
#3  0x4b4055c1 in v29_rx () from /usr/lib/asterisk/modules/app_rxfax.so
#4  0x4b40399b in fax_rx_process () from 
/usr/lib/asterisk/modules/app_rxfax.so
#5  0x4b400145 in rxfax_exec (chan=0x81b68a8, data=0x4b8ffb6c) at 
app_rxfax.c:183
#6  0x080633ca in pbx_exec (c=0x81b68a8, app=0x81b1580, 
data=0x4b8ffb6c, newstack=1) at pbx.c:396
#7  0x0806a611 in pbx_extension_helper (c=0x81b68a8, context=0x81b69fc 
"webley_pstn",
exten=0x4b8ffb6c "/usr/tmp/asteriskfax.tif", priority=1, 
callerid=0x80d6d58 "8478106018",
action=136013992) at pbx.c:1151
#8  0x0806528c in ast_pbx_run (c=0x81b68a8) at pbx.c:1635
#9  0x0806acd1 in pbx_thread (data=0x74) at pbx.c:1856
#10 0x4003e9b1 in pthread_start_thread () from /lib/i686/libpthread.so.0
(gdb)

Comments are welcome.
Thank you.
Alex Zarubin
-Original Message-
From: Dave Cotton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 21, 2003 11:45 AM
To: Asterisk List
Subject: Re: [Asterisk-Users] A software FAX modem
On Tue, 2003-10-21 at 16:22, Steve Underwood wrote:

> I did say this was a first test release :-)  I can't be held 
responsible
> for libtiff being empty on your machine, but they other issues are my
> fault. I have put a new tarball up, which should need nothing more than
> libtiff for the library to work. All the other libraries you had issues
> with are only needed by the test programs. "./configure" will now only
> set things up to build the library. "./configure --enable-doc
> --enable-tests --enable-itutests" will set things up to be everything.

Looks like I've got a specific Mandrake problem.
Is any one else trying MDK 9.0?
9.0 does not have the aclocal-1.6/automake-1.6 combination so
Makefile.am fails, I'll have to update them.
With 9.2 ./configure works but make barks because tiffiop.h requires
tif_dir.h which is nowhere to be found. Has anyone got a copy of that,
or know which package it is in?
I really want to give this a try because the one thing I haven't got is
a working fax. Thanks for your hard work Steve, you've done the hardest
bit now it's just to sort out Mandrake, comme d'habitude.
--
Dave Cotton <[EMAIL PROTECTED]>
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-21 Thread Florian Overkamp
Hi,

Citeren Steve Underwood <[EMAIL PROTECTED]>:

> I did say this was a first test release :-)  I can't be held responsible 
> for libtiff being empty on your machine, but they other issues are my 
> fault.

I'm not complaining about running experimental software, I'm pointing out my 
experiences in the hopes you may be able to use it for improvements :-)

> This newer tarball also has improvements in the software. The V.29 modem 
> now works at all three speeds - 9600, 7200, and 4800bps. Previously I 
> had only debugged the 9600bps mode. FAX doesn't actually use the 4800bps 
> mode, but I thought I ought to fully implement the spec. (thats another 
> way of saying it was easy to do after getting 9600 and 7200 working :-) 
> ). I also fixed something that could cause crashes if you tried to send 
> a non-existant TIFF file.

Cool. The latest tarball however still does have an issue while compiling the 
apps within asterisk:

gcc -O2 -g  -Iinclude -I../include -I/usr/src/tiff-v3.5.7/libtiff -
I/usr/src/spandsp-20031020/src -c -o  app_rxfax.o app_rxfax.c
In file included from app_rxfax.c:38:
/usr/src/spandsp-20031020/src/t30.h:96: parse error before `t4_state_t'
/usr/src/spandsp-20031020/src/t30.h:96: warning: no semicolon at end of struct 
or union
app_rxfax.c:52: storage size of `fax' isn't known
make[1]: *** [app_rxfax.o] Error 1

Any clue what I can do about that ?


-- 
Met vriendelijke groet,
Florian Overkamp
ObSimRef BV
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] A software FAX modem

2003-10-21 Thread Alex Zarubin
Title: RE: [Asterisk-Users] A software FAX modem





Found tif_dir.h, make and install look OK. Now it's a coredump:


#0  0x4b4ba652 in _TIFFFax3fillruns () from /usr/lib/libtiff.so.3
(gdb) bt
#0  0x4b4ba652 in _TIFFFax3fillruns () from /usr/lib/libtiff.so.3
#1  0x4b4074d4 in t4_rx_end_page () from /usr/lib/asterisk/modules/app_rxfax.so
#2  0x4b40062e in key () from /usr/lib/asterisk/modules/app_rxfax.so
#3  0x4b4055c1 in v29_rx () from /usr/lib/asterisk/modules/app_rxfax.so
#4  0x4b40399b in fax_rx_process () from /usr/lib/asterisk/modules/app_rxfax.so
#5  0x4b400145 in rxfax_exec (chan=0x81b68a8, data="" at app_rxfax.c:183
#6  0x080633ca in pbx_exec (c=0x81b68a8, app=0x81b1580, data="" newstack=1) at pbx.c:396
#7  0x0806a611 in pbx_extension_helper (c=0x81b68a8, context=0x81b69fc "webley_pstn", 
    exten=0x4b8ffb6c "/usr/tmp/asteriskfax.tif", priority=1, callerid=0x80d6d58 "8478106018", 
    action="" at pbx.c:1151
#8  0x0806528c in ast_pbx_run (c=0x81b68a8) at pbx.c:1635
#9  0x0806acd1 in pbx_thread (data="" at pbx.c:1856
#10 0x4003e9b1 in pthread_start_thread () from /lib/i686/libpthread.so.0
(gdb)


Comments are welcome.
Thank you.
Alex Zarubin


-Original Message-
From: Dave Cotton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 21, 2003 11:45 AM
To: Asterisk List
Subject: Re: [Asterisk-Users] A software FAX modem



On Tue, 2003-10-21 at 16:22, Steve Underwood wrote:


> I did say this was a first test release :-)  I can't be held responsible 
> for libtiff being empty on your machine, but they other issues are my 
> fault. I have put a new tarball up, which should need nothing more than 
> libtiff for the library to work. All the other libraries you had issues 
> with are only needed by the test programs. "./configure" will now only 
> set things up to build the library. "./configure --enable-doc 
> --enable-tests --enable-itutests" will set things up to be everything.


Looks like I've got a specific Mandrake problem.
Is any one else trying MDK 9.0?


9.0 does not have the aclocal-1.6/automake-1.6 combination so
Makefile.am fails, I'll have to update them.


With 9.2 ./configure works but make barks because tiffiop.h requires
tif_dir.h which is nowhere to be found. Has anyone got a copy of that,
or know which package it is in?


I really want to give this a try because the one thing I haven't got is
a working fax. Thanks for your hard work Steve, you've done the hardest
bit now it's just to sort out Mandrake, comme d'habitude.
-- 
Dave Cotton <[EMAIL PROTECTED]>


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users





Re: [Asterisk-Users] A software FAX modem

2003-10-21 Thread Brian West
Its still broken... hrm

#0  0x420743da in _int_realloc () from /lib/i686/libc.so.6
#1  0x42073416 in realloc () from /lib/i686/libc.so.6
#2  0x477ea074 in _TIFFrealloc (p=0x477b7d98, s=20) at tif_unix.c:189
#3  0x477b82a7 in t4_rx_start_page () from
/usr/lib/asterisk/modules/app_rxfax.so
#4  0x477b16d0 in key () from /usr/lib/asterisk/modules/app_rxfax.so
#5  0x477b65c1 in v29_rx () from /usr/lib/asterisk/modules/app_rxfax.so
#6  0x477b499b in fax_rx_process () from
/usr/lib/asterisk/modules/app_rxfax.so
#7  0x477b1145 in rxfax_exec (chan=0x816ec10, data=0x47a4125c) at
app_rxfax.c:183
#8  0x08063409 in pbx_exec (c=0x816ec10, app=0x81332e0, data=0x47a4125c,
newstack=1) at pbx.c:396
#9  0x0806a5f0 in pbx_extension_helper (c=0x47a4125c, context=0x816ed68
"default", exten=0x816ee5c "s", priority=1,
callerid=0x80db628 "\"X \" ",
action=135719952) at pbx.c:1151
#10 0x080652fc in ast_pbx_run (c=0x816ec10) at pbx.c:1635
#11 0x41d0eed2 in ss_thread (data=0x816ec10) at chan_zap.c:4386
#12 0x40024941 in pthread_start_thread () from /lib/i686/libpthread.so.0


On Tue, 21 Oct 2003, Dave Cotton wrote:

> On Tue, 2003-10-21 at 16:22, Steve Underwood wrote:
>
> > I did say this was a first test release :-)  I can't be held responsible
> > for libtiff being empty on your machine, but they other issues are my
> > fault. I have put a new tarball up, which should need nothing more than
> > libtiff for the library to work. All the other libraries you had issues
> > with are only needed by the test programs. "./configure" will now only
> > set things up to build the library. "./configure --enable-doc
> > --enable-tests --enable-itutests" will set things up to be everything.
>
> Looks like I've got a specific Mandrake problem.
> Is any one else trying MDK 9.0?
>
> 9.0 does not have the aclocal-1.6/automake-1.6 combination so
> Makefile.am fails, I'll have to update them.
>
> With 9.2 ./configure works but make barks because tiffiop.h requires
> tif_dir.h which is nowhere to be found. Has anyone got a copy of that,
> or know which package it is in?
>
> I really want to give this a try because the one thing I haven't got is
> a working fax. Thanks for your hard work Steve, you've done the hardest
> bit now it's just to sort out Mandrake, comme d'habitude.
> --
> Dave Cotton <[EMAIL PROTECTED]>
>
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] A software FAX modem

2003-10-21 Thread Alex Zarubin
Title: RE: [Asterisk-Users] A software FAX modem





The same problem with tif_dir.h is on RH9, make fails because of that.


Alex Zarubin


-Original Message-
From: Dave Cotton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 21, 2003 11:45 AM
To: Asterisk List
Subject: Re: [Asterisk-Users] A software FAX modem



On Tue, 2003-10-21 at 16:22, Steve Underwood wrote:


> I did say this was a first test release :-)  I can't be held responsible 
> for libtiff being empty on your machine, but they other issues are my 
> fault. I have put a new tarball up, which should need nothing more than 
> libtiff for the library to work. All the other libraries you had issues 
> with are only needed by the test programs. "./configure" will now only 
> set things up to build the library. "./configure --enable-doc 
> --enable-tests --enable-itutests" will set things up to be everything.


Looks like I've got a specific Mandrake problem.
Is any one else trying MDK 9.0?


9.0 does not have the aclocal-1.6/automake-1.6 combination so
Makefile.am fails, I'll have to update them.


With 9.2 ./configure works but make barks because tiffiop.h requires
tif_dir.h which is nowhere to be found. Has anyone got a copy of that,
or know which package it is in?


I really want to give this a try because the one thing I haven't got is
a working fax. Thanks for your hard work Steve, you've done the hardest
bit now it's just to sort out Mandrake, comme d'habitude.
-- 
Dave Cotton <[EMAIL PROTECTED]>


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users





Re: [Asterisk-Users] A software FAX modem

2003-10-21 Thread Brian West
> As this is a separate project, shouldn't it have it's own mailing list and web
> site.   ie. sourceforge.
>
> It's OK to announce it, but if everyone added posts about other software that
> turned into support and maintenance of said software, then this list is going
> to become unusable.
>
> Regards...Martin
>
> PS.  Don't shott the messenger

Once this is stable it will be part of * and in the digium cvs... so the
discussion is valid.

bkw
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-21 Thread Dave Cotton
On Tue, 2003-10-21 at 16:22, Steve Underwood wrote:

> I did say this was a first test release :-)  I can't be held responsible 
> for libtiff being empty on your machine, but they other issues are my 
> fault. I have put a new tarball up, which should need nothing more than 
> libtiff for the library to work. All the other libraries you had issues 
> with are only needed by the test programs. "./configure" will now only 
> set things up to build the library. "./configure --enable-doc 
> --enable-tests --enable-itutests" will set things up to be everything.

Looks like I've got a specific Mandrake problem.
Is any one else trying MDK 9.0?

9.0 does not have the aclocal-1.6/automake-1.6 combination so
Makefile.am fails, I'll have to update them.

With 9.2 ./configure works but make barks because tiffiop.h requires
tif_dir.h which is nowhere to be found. Has anyone got a copy of that,
or know which package it is in?

I really want to give this a try because the one thing I haven't got is
a working fax. Thanks for your hard work Steve, you've done the hardest
bit now it's just to sort out Mandrake, comme d'habitude.
-- 
Dave Cotton <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-21 Thread marrandy
On Tuesday 21 October 2003 12:01 pm, Maik Schmitt wrote:

> We tried to use it witch our AVM Fritz!Card with chan_capi but
> asterisk always crashes after our fax-machines shows the ID of the
> soft-fax (12345678). Here's a backtrace:
> 
> #0  0x417546a4 in TIFFWriteBufferSetup () from /usr/lib/libtiff.so.3
> #1  0x417547fd in TIFFFlushData1 () from /usr/lib/libtiff.so.3


As this is a separate project, shouldn't it have it's own mailing list and web 
site.   ie. sourceforge.

It's OK to announce it, but if everyone added posts about other software that 
turned into support and maintenance of said software, then this list is going 
to become unusable.

Regards...Martin

PS.  Don't shott the messenger

-- 
"Gee, Toto, I don't think we are in Kansas anymore."

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-21 Thread Maik Schmitt
> I did say this was a first test release :-)  I can't be held responsible 
> for libtiff being empty on your machine, but they other issues are my 
> fault. I have put a new tarball up, which should need nothing more than 
> libtiff for the library to work. All the other libraries you had issues 
> with are only needed by the test programs. "./configure" will now only 
> set things up to build the library. "./configure --enable-doc 
> --enable-tests --enable-itutests" will set things up to be everything.
> 
> This newer tarball also has improvements in the software. The V.29 modem 
> now works at all three speeds - 9600, 7200, and 4800bps. Previously I 
> had only debugged the 9600bps mode. FAX doesn't actually use the 4800bps 
> mode, but I thought I ought to fully implement the spec. (thats another 
> way of saying it was easy to do after getting 9600 and 7200 working :-) 
> ). I also fixed something that could cause crashes if you tried to send 
> a non-existant TIFF file.
> 
> I'm sorry if I disappointed the early adopters, but it *will* get better.

We tried to use it witch our AVM Fritz!Card with chan_capi but
asterisk always crashes after our fax-machines shows the ID of the
soft-fax (12345678). Here's a backtrace:

#0  0x417546a4 in TIFFWriteBufferSetup () from /usr/lib/libtiff.so.3
#1  0x417547fd in TIFFFlushData1 () from /usr/lib/libtiff.so.3
#2  0x4174019a in _TIFFFax3fillruns () from /usr/lib/libtiff.so.3
#3  0x417413d1 in _TIFFFax3fillruns () from /usr/lib/libtiff.so.3
#4  0x415f0270 in t4_rx_end_page (s=0x415fa0a4) at t4.c:330
#5  0x415e94e8 in key () from /usr/lib/asterisk/modules/app_rxfax.so
#6  0x415ee062 in v29_rx () from
#/usr/lib/asterisk/modules/app_rxfax.so
#7  0x415ec485 in fax_rx_process () from
#/usr/lib/asterisk/modules/app_rxfax.so
#8  0x415e9068 in rxfax_exec (chan=0x8136550, data=0xbc7ff7b4) at
#app_rxfax.c:183
#9  0x08060af0 in pbx_exec (c=0x8136550, app=0x8119248,
#data=0xbc7ff7b4, newstack=1) at pbx.c:396
#10 0x08062ad3 in pbx_extension_helper (c=0x8136550, context=0x81366a8
#"default", exten=0x813679c "3841", priority=1, callerid=0x80df9f8
#"3843", action=1) at pbx.c:1151
#11 0x0806380d in ast_pbx_run (c=0x8136550) at pbx.c:1635
#12 0x0806988e in pbx_thread (data=0x8136550) at pbx.c:1856
#13 0x400310ba in pthread_start_thread () from /lib/libpthread.so.0

Hope that helps

-- 
Maik Schmitthttp://graphics.cs.uni-sb.de/VoIP

pgp0.pgp
Description: PGP signature


Re: [Asterisk-Users] A software FAX modem

2003-10-21 Thread Steve Underwood
Hi,

I did say this was a first test release :-)  I can't be held responsible 
for libtiff being empty on your machine, but they other issues are my 
fault. I have put a new tarball up, which should need nothing more than 
libtiff for the library to work. All the other libraries you had issues 
with are only needed by the test programs. "./configure" will now only 
set things up to build the library. "./configure --enable-doc 
--enable-tests --enable-itutests" will set things up to be everything.

This newer tarball also has improvements in the software. The V.29 modem 
now works at all three speeds - 9600, 7200, and 4800bps. Previously I 
had only debugged the 9600bps mode. FAX doesn't actually use the 4800bps 
mode, but I thought I ought to fully implement the spec. (thats another 
way of saying it was easy to do after getting 9600 and 7200 working :-) 
). I also fixed something that could cause crashes if you tried to send 
a non-existant TIFF file.

I'm sorry if I disappointed the early adopters, but it *will* get better.

Regards,
Steve
Florian Overkamp wrote:

Hi,

Citeren Steve Underwood <[EMAIL PROTECTED]>:
 

If it doesn't work for you, don't be too surprised. Feed back anything 
you find, and lets try to make things better. I suspect, from experience 
and things I have read on the web, that a lot of fax machines do not 
follow the standards very well. In that case, a number of tweaks are 
probably needed before this new software is adequately tolerant of the 
behaviour of real world machines.
   

First off, let me start by saying I think this is a great new step that is 
greatly appreciated (at least by me) toward a complete telephony platform. 

Second off, I just tried to build and install. Some comments up till now:

- The compilation process asks for libaudiofile headerfiles (-dev package) - 
this was not default on my box. Should be added to documentation I guess :)

- On my Debian box libtiff is an empty package (sucks) so I downloaded the 
tiff package source code. Installation here sucks once more: the mentioned 
tiffiop.h is not installed in /usr/local/include as I suppose it should, same 
goes for several other header files. Easiest was to just point the Makefile in 
your src/ tree toward the libtiff source.

- The linker tries to access fftw (Fourier libraries). Not default installed 
on my system, should probably be added to documentation

- The linker tries to access unicall. What is this ? Not installed on my 
system and no candidates on my searchlist (apt-get and a quick google search). 
How to continue ?

Thanks, and I hope to continue this adventure soon :-)
 



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-20 Thread Steve Underwood
Hi Florian,

Florian Overkamp wrote:

Hi,

Citeren Steve Underwood <[EMAIL PROTECTED]>:
 

If it doesn't work for you, don't be too surprised. Feed back anything 
you find, and lets try to make things better. I suspect, from experience 
and things I have read on the web, that a lot of fax machines do not 
follow the standards very well. In that case, a number of tweaks are 
probably needed before this new software is adequately tolerant of the 
behaviour of real world machines.
   

First off, let me start by saying I think this is a great new step that is 
greatly appreciated (at least by me) toward a complete telephony platform. 

Second off, I just tried to build and install. Some comments up till now:

- The compilation process asks for libaudiofile headerfiles (-dev package) - 
this was not default on my box. Should be added to documentation I guess :)

- On my Debian box libtiff is an empty package (sucks) so I downloaded the 
tiff package source code. Installation here sucks once more: the mentioned 
tiffiop.h is not installed in /usr/local/include as I suppose it should, same 
goes for several other header files. Easiest was to just point the Makefile in 
your src/ tree toward the libtiff source.

- The linker tries to access fftw (Fourier libraries). Not default installed 
on my system, should probably be added to documentation

- The linker tries to access unicall. What is this ? Not installed on my 
system and no candidates on my searchlist (apt-get and a quick google search). 
How to continue ?

Thanks, and I hope to continue this adventure soon :-)
 

libtiff is needed for the FAX facility. The other things you had trouble 
with are actually dependancies for building the test programs. These 
test various things, not just the FAX facility. You should actually have 
had the library, and therefore the FAX facility, built by the time the 
build got to needing audiofile, fftw, etc. I went through the library 
dependancies properly before releasing the code, but obviously didn't go 
through the test suite dependancies properly. I'll clean that up, and 
make a new tarball. I definitely shouldn't have left dependancies on 
libunicall or libmfcr2, as I'm not releasing those at this time :-)

Regards,
Steve
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-20 Thread Jon Pounder


Once the dust settles here and there is more of a reliable build/install 
recipe available, I'll have a closer look, but so far this sounds great !

I am not sure how the faxing standards interfaces are exposed right now to 
asterisk, but I think rather than reinvent the wheel as far as the managing 
of inbound and outbound faxing, the software fax itself should be exposed 
as one of the "standard" modem types derived from the original Hayes 
command set. While this may not be the most efficient way to interact with 
the driver, it has the benefit of working with a wide selection of software 
that is already mature. (Hylafax being one of them).

At 05:15 PM 10/20/2003, you wrote:
On Mon, 2003-10-20 at 14:19, Florian Overkamp wrote:
> Hi,
>
> Citeren Steve Underwood <[EMAIL PROTECTED]>:
> > If it doesn't work for you, don't be too surprised. Feed back anything
> > you find, and lets try to make things better. I suspect, from experience
> > and things I have read on the web, that a lot of fax machines do not
> > follow the standards very well. In that case, a number of tweaks are
> > probably needed before this new software is adequately tolerant of the
> > behaviour of real world machines.
>
> First off, let me start by saying I think this is a great new step that is
> greatly appreciated (at least by me) toward a complete telephony platform.
>
> Second off, I just tried to build and install. Some comments up till now:
>
> - The compilation process asks for libaudiofile headerfiles (-dev 
package) -
> this was not default on my box. Should be added to documentation I guess :)
>
> - On my Debian box libtiff is an empty package (sucks) so I downloaded the
> tiff package source code. Installation here sucks once more: the mentioned
> tiffiop.h is not installed in /usr/local/include as I suppose it 
should, same
> goes for several other header files. Easiest was to just point the 
Makefile in
> your src/ tree toward the libtiff source.

Wasn't empty on my machine, but also the headers didn't get installed. I
apt-get source the package, and then copied the files into places where
they could be used.
> - The linker tries to access fftw (Fourier libraries). Not default 
installed
> on my system, should probably be added to documentation

Noticed bug in package where libfftw.so wasn't linked to the
libfftw.so.2 file. This caused me a few moments of grief, but is a
package maintainers fault not Steve's.
> - The linker tries to access unicall. What is this ? Not installed on my
> system and no candidates on my searchlist (apt-get and a quick google 
search).
> How to continue ?

Same here. add to that no libmfcr2. Only link I noticed for it is
discussion of the R2 protocol. Makes me wonder why it is being used at
all. I ended up removing these 2 from the LIBS line in the tests
Makefile and it doesn't seem to be a problem yet. Still building.
> Thanks, and I hope to continue this adventure soon :-)
--
Steven Critchfield  <[EMAIL PROTECTED]>
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-20 Thread Steven Critchfield
On Mon, 2003-10-20 at 14:19, Florian Overkamp wrote:
> Hi,
> 
> Citeren Steve Underwood <[EMAIL PROTECTED]>:
> > If it doesn't work for you, don't be too surprised. Feed back anything 
> > you find, and lets try to make things better. I suspect, from experience 
> > and things I have read on the web, that a lot of fax machines do not 
> > follow the standards very well. In that case, a number of tweaks are 
> > probably needed before this new software is adequately tolerant of the 
> > behaviour of real world machines.
> 
> First off, let me start by saying I think this is a great new step that is 
> greatly appreciated (at least by me) toward a complete telephony platform. 
> 
> Second off, I just tried to build and install. Some comments up till now:
> 
> - The compilation process asks for libaudiofile headerfiles (-dev package) - 
> this was not default on my box. Should be added to documentation I guess :)
> 
> - On my Debian box libtiff is an empty package (sucks) so I downloaded the 
> tiff package source code. Installation here sucks once more: the mentioned 
> tiffiop.h is not installed in /usr/local/include as I suppose it should, same 
> goes for several other header files. Easiest was to just point the Makefile in 
> your src/ tree toward the libtiff source.

Wasn't empty on my machine, but also the headers didn't get installed. I
apt-get source the package, and then copied the files into places where
they could be used.

> - The linker tries to access fftw (Fourier libraries). Not default installed 
> on my system, should probably be added to documentation

Noticed bug in package where libfftw.so wasn't linked to the
libfftw.so.2 file. This caused me a few moments of grief, but is a
package maintainers fault not Steve's.

> - The linker tries to access unicall. What is this ? Not installed on my 
> system and no candidates on my searchlist (apt-get and a quick google search). 
> How to continue ?

Same here. add to that no libmfcr2. Only link I noticed for it is
discussion of the R2 protocol. Makes me wonder why it is being used at
all. I ended up removing these 2 from the LIBS line in the tests
Makefile and it doesn't seem to be a problem yet. Still building.

> Thanks, and I hope to continue this adventure soon :-)
-- 
Steven Critchfield  <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-20 Thread Florian Overkamp
Hi,

well, following on my first post, another couple of things :-)

Citeren Florian Overkamp <[EMAIL PROTECTED]>:
> - The linker tries to access unicall. What is this ? Not installed on my 
> system and no candidates on my searchlist (apt-get and a quick google
> search). 

- unicall and another library called mfcr2 are needed by the tests directory. 
I decided to skip that. 

- the doc directory requires doxygen. No thanks :-) I skipped that.

- I patched the makefile and added the apps to my source tree. After running a 
compile, the following error occurs:

make[1]: Entering directory `/usr/src/cvs/asterisk/apps'
gcc -O2 -g  -Iinclude -I../include -I/usr/src/tiff-v3.5.7/libtiff -
I/usr/src/spandsp-20031020/src -c -o  app_rxfax.o app_rxfax.c
In file included from app_rxfax.c:38:
/usr/src/spandsp-20031020/src/t30.h:96: parse error before `t4_state_t'
/usr/src/spandsp-20031020/src/t30.h:96: warning: no semicolon at end of struct 
or union
app_rxfax.c:52: storage size of `fax' isn't known
make[1]: *** [app_rxfax.o] Error 1
make[1]: Leaving directory `/usr/src/cvs/asterisk/apps'
make: *** [subdirs] Error 1

Now, this is seriously beyond me :-) I'm calling it a day. I hope to be able 
to continue soon :-))


-- 
Met vriendelijke groet,
Florian Overkamp
ObSimRef BV
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-20 Thread Florian Overkamp
Hi,

Citeren Steve Underwood <[EMAIL PROTECTED]>:
> If it doesn't work for you, don't be too surprised. Feed back anything 
> you find, and lets try to make things better. I suspect, from experience 
> and things I have read on the web, that a lot of fax machines do not 
> follow the standards very well. In that case, a number of tweaks are 
> probably needed before this new software is adequately tolerant of the 
> behaviour of real world machines.

First off, let me start by saying I think this is a great new step that is 
greatly appreciated (at least by me) toward a complete telephony platform. 

Second off, I just tried to build and install. Some comments up till now:

- The compilation process asks for libaudiofile headerfiles (-dev package) - 
this was not default on my box. Should be added to documentation I guess :)

- On my Debian box libtiff is an empty package (sucks) so I downloaded the 
tiff package source code. Installation here sucks once more: the mentioned 
tiffiop.h is not installed in /usr/local/include as I suppose it should, same 
goes for several other header files. Easiest was to just point the Makefile in 
your src/ tree toward the libtiff source.

- The linker tries to access fftw (Fourier libraries). Not default installed 
on my system, should probably be added to documentation

- The linker tries to access unicall. What is this ? Not installed on my 
system and no candidates on my searchlist (apt-get and a quick google search). 
How to continue ?

Thanks, and I hope to continue this adventure soon :-)
-- 
Met vriendelijke groet,
Florian Overkamp
ObSimRef BV
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-20 Thread Dave Cotton
On Mon, 2003-10-20 at 16:36, Steve Underwood wrote:

> If it doesn't work for you, don't be too surprised. Feed back anything 
> you find, and lets try to make things better.

At the moment I'm having the devils own job to get it compiled on MDK
9.0. or 9.2

-- 
Dave Cotton <[EMAIL PROTECTED]>

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-20 Thread Brian West
Good job.. now that the cat is out of the bag i'm sure you will get alot
of requests or ideas and maybe code!

bkw

On Mon, 20 Oct 2003, Steve Underwood wrote:

> Hi all,
>
> I would like to announce the availability of an initial test version of
> a totally software FAX facility, suitable for use with Asterisk. This is
> a first public test release, so don't expect a solid polished product
> just yet. People have shown interest in what I am doing, and here is the
> evidence that it is not vapourware.
>
> If the notion of a software FAX machine is new to you, what I have
> basically implemented is this. Asterisk contains software to transcode
> GSM to A-law, A-law to u-law, and so on. These are DSP functions
> implemented on the server's main CPU(s), with no hardware support from
> special DSP processors or cards. What I have done is similar. I have
> implemented the DSP for the key FAX modem standards in software for the
> server. Without any special DSP hardware, this can send and receive
> faxes through the PSTN interfaces. It has been tested with an E400P card
> so far. However, it should work for calls passing through the T100P,
> T400P, E100P, E400P, TE410P, X100P, or TDM40P cards, using any of the
> available signalling methods. Don't expect it to work for calls received
> by VoIP - its a modem, not a miracle worker.
>
> You can find the software at . It currently
> consists of two parts:
>
> The main part is spandsp, a DSP library for telephony at 8000 samples
> per second. This contains a number of functions. Some are complete, and
> some are works in progress. The FAX facility is part of this library.
> The FAX facility consists of implementations of V.21 (complete, but not
> optimised for speed), V.29 (functional, but not optimised for speed or
> bad lines), V.27ter (only the tx side is anything like complete), T.30 -
> the fax protocol (somewhat messy, and still in need of work to make it
> robust), and T.4 (fax compression). The T.4 handling makes use of
> libtiff, so you will need libtiff installed on a machine to use spandsp.
> You will also need libxml2 - the FAX facility doesn't use it, but some
> other parts of spandsp do.
>
> The other part is a pair of very elementary demonstration apps for
> Asterisk, similar to the record and play apps, but for fax TIFF files.
> Why TIFF? TIFF is *the* standard for computer fax. Few other graphics
> file formats allow for multi-page documents. Apart from some dumb
> proprietary file formats (e.g. WinFAX) from the early 90s, I've never
> seen computer fax handled in any other way. If someone would like to
> adapt the Asterisk voicemail2 app to turn received faxes into attached
> e-mails, this would be a good thing. :-)
>
> I have only implemented the early features of the FAX standards, where
> any patents have long since expired. If you look at the ITU's patent
> declaration database you will see a long list of patent claims against
> the fax standards. Note these apply to features added during the life of
> the standards, and most apply to things like colour fax, which few
> people use. The basic 9600bps V.29 fax spec. is more than 20 years old,
> so no patents can still be in force for these original features. Is this
> limiting? Not really. Only a small percentage of fax machines seem to
> support many of the newer features. Only a few simple to implement
> things, like super-fine mode, have been added to most machines.
>
> The files for spandsp all say GPL. I have given an additional disclaimer
> to Digium, so the code can be merged into Asterisk, once it is a bit
> more polished and stable. In the meantime it is easy to use as an
> external library.
>
> If it doesn't work for you, don't be too surprised. Feed back anything
> you find, and lets try to make things better. I suspect, from experience
> and things I have read on the web, that a lot of fax machines do not
> follow the standards very well. In that case, a number of tweaks are
> probably needed before this new software is adequately tolerant of the
> behaviour of real world machines.
>
> Enjoy,
> Steve
>
>
> ___
> Asterisk-Users mailing list
> [EMAIL PROTECTED]
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] A software FAX modem

2003-10-20 Thread Jared Smith
On Mon, 2003-10-20 at 08:36, Steve Underwood wrote:
> Hi all,
> 
> I would like to announce the availability of an initial test version of 
> a totally software FAX facility, suitable for use with Asterisk. This is 
> a first public test release, so don't expect a solid polished product 
> just yet. People have shown interest in what I am doing, and here is the 
> evidence that it is not vapourware.
> 
[snip]

Thanks Steve!  I know a lot of us have been anxiously waiting for
something like this, and I just wanted to publicly thank you for your
time and effort.

Jared Smith

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users