Re: [Asterisk-Users] SpanDSP - Still can't send

2005-03-07 Thread Rod Bacon
To all those still struggling with faxing
I don't know exactly _what_ fixed the problem, but I tried faxing again on a 
later version of libpri, zaptel and asterisk (all CVS HEAD as of 1st March) 
with spandsp-0.0.2pre10, and now everything works perfectly. Faxing in both 
directions, different resolutions (STD and FINE), single and multiple pages, 
originated from both the dialplan (inbound call to extension configured with 
txfax|caller) and sample.call file.

I am running Debian Testing (Sarge) with libtiff 3.7.1
A special thanks to Mindaugas who sent me a test file, and some 
scripty-bits...

- Original Message - 
From: "Rod Bacon" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, February 23, 2005 2:55 PM
Subject: [Asterisk-Users] SpanDSP - Still can't send


I have googled until blie in the face, WiKi'd until physically exhausted 
and searched through every Asterisk repository that I can find, all to no 
avail...

No matter which version of SpanDSP I use, with which version of libtiff, 
Asterisk, ... I simply cannot send faxes.

I can receive faxes *perfectly* (sending from standard fax macine on POTS) 
into tiff file (via Digium analogue card), but when I try to send the same 
file back, to the same fax machine, nothing happens.

The fax rings, answers, then disconnects shortly after (fails 
negotiation?). I would love to enable logging in detail, but am unsure 
where to enable logging for SpanDSP.

Can anyone point me in the most logical direction, please?
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] SpanDSP - Still can't send

2005-02-24 Thread Rod Bacon
Thanks Steve, and please don't think I am criticising you or anyone else. 
Everyone who is working on Asterisk and related products are pure legends as 
far as I'm concerned... I wish I could help in some way (I'm not a 
programmer's backside!).


- Original Message - 
From: "Steve Underwood" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 

Sent: Thursday, February 24, 2005 7:25 PM
Subject: Re: [Asterisk-Users] SpanDSP - Still can't send


Fair point. The FAX apps used to display a note about this when you 
checked their parameters. That seems to have disappeared from the source 
code of both rxfax and txfax. I just put it back in.

Regards,
Steve
Rod Bacon wrote:
From my personal experience, the 'weird ideas' come from a lack of
consistent documentation. The caller option, and the use thereof is not 
clearly explained anywhere that I can find, and examples of spandsp that 
are floating around the WiKi (among other places) erroneously leave this 
option out.

In any case, I still can't send faxes... with or without the option.
- Original Message - From: "Steve Underwood" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 

Sent: Thursday, February 24, 2005 11:02 AM
Subject: Re: [Asterisk-Users] SpanDSP - Still can't send


Where do these weird ideas come from? :-) Why on earth would it relate 
to the dial plan? What difference can you imagine the dial plan might 
make?

If you want txfax to behave as the calling, rather than the answering, 
side you need to specify the "caller" option. Don't confuse caller with 
sender. The machine which makes a call can be either the one sending a 
FAX, or one picking up a FAX by polling. That is the reason the "caller" 
option exists.

Regards,
Steve
Rod Bacon wrote:
My understanding is that this is only required when using it inside a 
dialplan. Eg, the extension answers, then switches to fax originator 
mode.

For testing, I am using txfax within a sample.call file which I drop 
into /var/spool/asterisk/outgoing, as per latest docs.

Listening at the receiving fax, the tones "sound" right, although I 
must confess that I don't actually speak "fax".

Does anyone have any ideas about debugging SpanDSP?
- Original Message - From: "Peter Svensson" 
<[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 

Sent: Wednesday, February 23, 2005 6:28 PM
Subject: Re: [Asterisk-Users] SpanDSP - Still can't send


On Wed, 23 Feb 2005, Rod Bacon wrote:
No matter which version of SpanDSP I use, with which version of 
libtiff,
Asterisk, ... I simply cannot send faxes.

Did you remember to add the "caller" option to txfax?
Peter

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] SpanDSP - Still can't send

2005-02-24 Thread Mindaugas Kezys
Hello,

I had a major headache trying to send faxes for 2 weeks now. 

Two things helped me:
1. Correct TIF files (received file not always worked for me)
2. Time synchronization e.g. 'ntpdate time.windows.com'.

Now %90 of faxes come nice and clean. (10% - incomplete).

If you want test TIF file which works - email me directly.

Some people stated that 'echotraining=no' in zapata.conf helps. I haven't
noticed. Also "|caller" had no impact on my fax tests. Strange.

I have another problem - I can't send multipage TIF files - only first page
arrives. Nothing helps - no info in Google. 

Sincerely,
Mindaugas Kezys


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:asterisk-users-
> [EMAIL PROTECTED] On Behalf Of Steve Underwood
> Sent: Thursday, February 24, 2005 10:26 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] SpanDSP - Still can't send
> 
> Fair point. The FAX apps used to display a note about this when you
> checked their parameters. That seems to have disappeared from the source
> code of both rxfax and txfax. I just put it back in.
> 
> Regards,
> Steve
> 
> 
> Rod Bacon wrote:
> 
> >> From my personal experience, the 'weird ideas' come from a lack of
> >
> > consistent documentation. The caller option, and the use thereof is
> > not clearly explained anywhere that I can find, and examples of
> > spandsp that are floating around the WiKi (among other places)
> > erroneously leave this option out.
> >
> > In any case, I still can't send faxes... with or without the option.
> >
> >
> > - Original Message - From: "Steve Underwood"
> <[EMAIL PROTECTED]>
> > To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> > 
> > Sent: Thursday, February 24, 2005 11:02 AM
> > Subject: Re: [Asterisk-Users] SpanDSP - Still can't send
> >
> >
> >> Where do these weird ideas come from? :-) Why on earth would it
> >> relate to the dial plan? What difference can you imagine the dial
> >> plan might make?
> >>
> >> If you want txfax to behave as the calling, rather than the
> >> answering, side you need to specify the "caller" option. Don't
> >> confuse caller with sender. The machine which makes a call can be
> >> either the one sending a FAX, or one picking up a FAX by polling.
> >> That is the reason the "caller" option exists.
> >>
> >> Regards,
> >> Steve
> >>
> >>
> >> Rod Bacon wrote:
> >>
> >>> My understanding is that this is only required when using it inside
> >>> a dialplan. Eg, the extension answers, then switches to fax
> >>> originator mode.
> >>>
> >>> For testing, I am using txfax within a sample.call file which I drop
> >>> into /var/spool/asterisk/outgoing, as per latest docs.
> >>>
> >>> Listening at the receiving fax, the tones "sound" right, although I
> >>> must confess that I don't actually speak "fax".
> >>>
> >>> Does anyone have any ideas about debugging SpanDSP?
> >>>
> >>>
> >>> - Original Message - From: "Peter Svensson"
> >>> <[EMAIL PROTECTED]>
> >>> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> >>> 
> >>> Sent: Wednesday, February 23, 2005 6:28 PM
> >>> Subject: Re: [Asterisk-Users] SpanDSP - Still can't send
> >>>
> >>>
> >>>> On Wed, 23 Feb 2005, Rod Bacon wrote:
> >>>>
> >>>>> No matter which version of SpanDSP I use, with which version of
> >>>>> libtiff,
> >>>>> Asterisk, ... I simply cannot send faxes.
> >>>>
> >>>>
> >>>>
> >>>> Did you remember to add the "caller" option to txfax?
> >>>>
> >>>> Peter
> >>>
> 
> ___
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] SpanDSP - Still can't send

2005-02-24 Thread Steve Underwood
Fair point. The FAX apps used to display a note about this when you 
checked their parameters. That seems to have disappeared from the source 
code of both rxfax and txfax. I just put it back in.

Regards,
Steve
Rod Bacon wrote:
From my personal experience, the 'weird ideas' come from a lack of 
consistent documentation. The caller option, and the use thereof is 
not clearly explained anywhere that I can find, and examples of 
spandsp that are floating around the WiKi (among other places) 
erroneously leave this option out.

In any case, I still can't send faxes... with or without the option.
- Original Message - From: "Steve Underwood" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 

Sent: Thursday, February 24, 2005 11:02 AM
Subject: Re: [Asterisk-Users] SpanDSP - Still can't send


Where do these weird ideas come from? :-) Why on earth would it 
relate to the dial plan? What difference can you imagine the dial 
plan might make?

If you want txfax to behave as the calling, rather than the 
answering, side you need to specify the "caller" option. Don't 
confuse caller with sender. The machine which makes a call can be 
either the one sending a FAX, or one picking up a FAX by polling. 
That is the reason the "caller" option exists.

Regards,
Steve
Rod Bacon wrote:
My understanding is that this is only required when using it inside 
a dialplan. Eg, the extension answers, then switches to fax 
originator mode.

For testing, I am using txfax within a sample.call file which I drop 
into /var/spool/asterisk/outgoing, as per latest docs.

Listening at the receiving fax, the tones "sound" right, although I 
must confess that I don't actually speak "fax".

Does anyone have any ideas about debugging SpanDSP?
- Original Message - From: "Peter Svensson" 
<[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 

Sent: Wednesday, February 23, 2005 6:28 PM
Subject: Re: [Asterisk-Users] SpanDSP - Still can't send


On Wed, 23 Feb 2005, Rod Bacon wrote:
No matter which version of SpanDSP I use, with which version of 
libtiff,
Asterisk, ... I simply cannot send faxes.

Did you remember to add the "caller" option to txfax?
Peter

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] SpanDSP - Still can't send

2005-02-23 Thread Rod Bacon
From my personal experience, the 'weird ideas' come from a lack of 
consistent documentation. The caller option, and the use thereof is not 
clearly explained anywhere that I can find, and examples of spandsp that are 
floating around the WiKi (among other places) erroneously leave this option 
out.

In any case, I still can't send faxes... with or without the option.
- Original Message - 
From: "Steve Underwood" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 

Sent: Thursday, February 24, 2005 11:02 AM
Subject: Re: [Asterisk-Users] SpanDSP - Still can't send


Where do these weird ideas come from? :-) Why on earth would it relate to 
the dial plan? What difference can you imagine the dial plan might make?

If you want txfax to behave as the calling, rather than the answering, 
side you need to specify the "caller" option. Don't confuse caller with 
sender. The machine which makes a call can be either the one sending a 
FAX, or one picking up a FAX by polling. That is the reason the "caller" 
option exists.

Regards,
Steve
Rod Bacon wrote:
My understanding is that this is only required when using it inside a 
dialplan. Eg, the extension answers, then switches to fax originator 
mode.

For testing, I am using txfax within a sample.call file which I drop into 
/var/spool/asterisk/outgoing, as per latest docs.

Listening at the receiving fax, the tones "sound" right, although I must 
confess that I don't actually speak "fax".

Does anyone have any ideas about debugging SpanDSP?
- Original Message - From: "Peter Svensson" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 

Sent: Wednesday, February 23, 2005 6:28 PM
Subject: Re: [Asterisk-Users] SpanDSP - Still can't send


On Wed, 23 Feb 2005, Rod Bacon wrote:
No matter which version of SpanDSP I use, with which version of 
libtiff,
Asterisk, ... I simply cannot send faxes.

Did you remember to add the "caller" option to txfax?
Peter

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] SpanDSP - Still can't send

2005-02-23 Thread Steve Underwood
Where do these weird ideas come from? :-) Why on earth would it relate 
to the dial plan? What difference can you imagine the dial plan might make?

If you want txfax to behave as the calling, rather than the answering, 
side you need to specify the "caller" option. Don't confuse caller with 
sender. The machine which makes a call can be either the one sending a 
FAX, or one picking up a FAX by polling. That is the reason the "caller" 
option exists.

Regards,
Steve
Rod Bacon wrote:
My understanding is that this is only required when using it inside a 
dialplan. Eg, the extension answers, then switches to fax originator 
mode.

For testing, I am using txfax within a sample.call file which I drop 
into /var/spool/asterisk/outgoing, as per latest docs.

Listening at the receiving fax, the tones "sound" right, although I 
must confess that I don't actually speak "fax".

Does anyone have any ideas about debugging SpanDSP?
- Original Message - From: "Peter Svensson" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 

Sent: Wednesday, February 23, 2005 6:28 PM
Subject: Re: [Asterisk-Users] SpanDSP - Still can't send


On Wed, 23 Feb 2005, Rod Bacon wrote:
No matter which version of SpanDSP I use, with which version of 
libtiff,
Asterisk, ... I simply cannot send faxes.

Did you remember to add the "caller" option to txfax?
Peter

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] SpanDSP - Still can't send

2005-02-23 Thread Rod Bacon
I did. No joy. Output from Asterisk console below. The parameter is getting 
through OK, but same result.

-- Attempting call on Zap/1/650 for application txfax(/tmp/test.fax|caller) 
(Retry 1)
  > Channel Zap/1-1 was answered.
  > Lauching txfax(/tmp/test.fax|caller) on Zap/1-1
   -- Hungup 'Zap/1-1'


- Original Message - 
From: "Peter Svensson" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 

Sent: Thursday, February 24, 2005 8:38 AM
Subject: Re: [Asterisk-Users] SpanDSP - Still can't send


On Thu, 24 Feb 2005, Rod Bacon wrote:
My understanding is that this is only required when using it inside a
dialplan. Eg, the extension answers, then switches to fax originator 
mode.
No. To quote the mail from Steve Underwood:
"Many people have it working that way. Very few people use it for fax
pickup. To change it from answerer to originator mode you just need to
add the "caller" option when you call txfax."
You need to tell txfax that it is to act as the initiative-taker
(originator) of the fax conversation. This is orthogonal to the direction
of the transfer (that is selected by choosing txfax or rxfax). SpanDSP
defaults to being the terminator and not the originator unless given the
"caller" parameter.
Have you tried adding the "caller" option to txfax?
For testing, I am using txfax within a sample.call file which I drop into
/var/spool/asterisk/outgoing, as per latest docs.
Listening at the receiving fax, the tones "sound" right, although I must
confess that I don't actually speak "fax".

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] SpanDSP - Still can't send

2005-02-23 Thread Peter Svensson
On Thu, 24 Feb 2005, Rod Bacon wrote:

> My understanding is that this is only required when using it inside a 
> dialplan. Eg, the extension answers, then switches to fax originator mode.

No. To quote the mail from Steve Underwood:

"Many people have it working that way. Very few people use it for fax 
pickup. To change it from answerer to originator mode you just need to 
add the "caller" option when you call txfax."

You need to tell txfax that it is to act as the initiative-taker
(originator) of the fax conversation. This is orthogonal to the direction
of the transfer (that is selected by choosing txfax or rxfax). SpanDSP 
defaults to being the terminator and not the originator unless given the 
"caller" parameter.

Have you tried adding the "caller" option to txfax?

> For testing, I am using txfax within a sample.call file which I drop into 
> /var/spool/asterisk/outgoing, as per latest docs.
> 
> Listening at the receiving fax, the tones "sound" right, although I must 
> confess that I don't actually speak "fax".


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] SpanDSP - Still can't send

2005-02-23 Thread Rod Bacon
My understanding is that this is only required when using it inside a 
dialplan. Eg, the extension answers, then switches to fax originator mode.

For testing, I am using txfax within a sample.call file which I drop into 
/var/spool/asterisk/outgoing, as per latest docs.

Listening at the receiving fax, the tones "sound" right, although I must 
confess that I don't actually speak "fax".

Does anyone have any ideas about debugging SpanDSP?
- Original Message - 
From: "Peter Svensson" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion" 

Sent: Wednesday, February 23, 2005 6:28 PM
Subject: Re: [Asterisk-Users] SpanDSP - Still can't send


On Wed, 23 Feb 2005, Rod Bacon wrote:
No matter which version of SpanDSP I use, with which version of libtiff,
Asterisk, ... I simply cannot send faxes.
Did you remember to add the "caller" option to txfax?
Peter
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] SpanDSP - Still can't send

2005-02-23 Thread Matthew Boehm
Neither can I. Check out my bug for my list of versions:

http://www.opencall.org/mantis/bug_view_page.php?bug_id=029

-Matthew

- Original Message - 
From: "Giovanni Powell" <[EMAIL PROTECTED]>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"

Sent: Wednesday, February 23, 2005 8:28 AM
Subject: Re: [Asterisk-Users] SpanDSP - Still can't send


> BTW what versions of libtiff & spandsp u using, cuz i can't recieve
> faxes at all.
> ___
> Asterisk-Users mailing list
> Asterisk-Users@lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] SpanDSP - Still can't send

2005-02-23 Thread Giovanni Powell
BTW what versions of libtiff & spandsp u using, cuz i can't recieve
faxes at all.
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] SpanDSP - Still can't send

2005-02-22 Thread Peter Svensson
On Wed, 23 Feb 2005, Rod Bacon wrote:

> No matter which version of SpanDSP I use, with which version of libtiff, 
> Asterisk, ... I simply cannot send faxes.

Did you remember to add the "caller" option to txfax?

Peter


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] SpanDSP - Still can't send

2005-02-22 Thread Rod Bacon
I have googled until blie in the face, WiKi'd until physically exhausted 
and searched through every Asterisk repository that I can find, all to 
no avail...

No matter which version of SpanDSP I use, with which version of libtiff, 
Asterisk, ... I simply cannot send faxes.

I can receive faxes *perfectly* (sending from standard fax macine on 
POTS) into tiff file (via Digium analogue card), but when I try to send 
the same file back, to the same fax machine, nothing happens.

The fax rings, answers, then disconnects shortly after (fails 
negotiation?). I would love to enable logging in detail, but am unsure 
where to enable logging for SpanDSP.

Can anyone point me in the most logical direction, please?
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users